Information Theory and Coding Basics
A single even parity bit is added to a bit string of data so that the number of 1s is even, and the receiver checks the number of 1s. Which of the following correctly describes this check?
- AIt detects a 1-bit error and also shows which bit is wrong, so the receiver can correct it
- BIt detects an error when 2 bits are wrong at the same time, just as it does for a 1-bit error
- CIt detects an odd number of bit errors but cannot detect an even number of bit errors
Show answer and explanation
Answer: C. It detects an odd number of bit errors but cannot detect an even number of bit errors
If one bit flips, the parity (oddness or evenness) of the number of 1s changes, so the check reveals the error. If two bits flip, the parity returns to what it was, so the error goes unnoticed. In general, an odd number of errors is detected and an even number is not. Moreover, the check does not show which bit is wrong, so it cannot correct the error, and a response such as asking for retransmission is needed.
- A. It shows that there is an error, but not which bit. Correction needs a Hamming code or similar.
- B. When two bits flip, the parity of the number of 1s returns to what it was, so the error is not detected.
- C. Correct. The parity of the number of 1s changes only when an odd number of bits are wrong.
Continue: 9 more Information Theory and Coding Basics questions