Information Theory and Coding Basics
The minimum Hamming distance of a code (the smallest Hamming distance between any two codewords) is 5. Consider using it only for error detection, or only for error correction. Which of the following correctly pairs the number of bit errors that can always be detected with the number that can always be corrected?
- ADetection up to 4 bits, correction up to 2 bits
- BDetection up to 5 bits, correction up to 2 bits
- CDetection up to 4 bits, correction up to 4 bits
Show answer and explanation
Answer: A. Detection up to 4 bits, correction up to 2 bits
In a code with minimum Hamming distance d, an error of up to d − 1 bits never turns a codeword into another codeword, so it can be detected. Correction changes the received bit string to the nearest codeword, so if the number of errors is at most (d − 1) ÷ 2 rounded down, the original codeword remains the nearest. For d = 5, detection works up to 4 bits and correction up to 2 bits.
- A. Correct. Detection up to d − 1 = 4 bits and correction up to (5 − 1) ÷ 2 = 2 bits.
- B. A 5-bit error can turn a codeword exactly into another codeword, in which case it is not detected.
- C. With 3 or more bit errors, another codeword can be nearer than the original, and the word is corrected to the wrong codeword.
Continue: 9 more Information Theory and Coding Basics questions