Information Theory and Coding Basics
Which of the following correctly pairs the minimum Hamming distance of the code consisting of the four codewords 00000, 01011, 10101 and 11110 with the number of bit errors it can always correct?
- AMinimum Hamming distance 4; corrects up to 1 bit
- BMinimum Hamming distance 3; corrects up to 2 bits
- CMinimum Hamming distance 3; corrects up to 1 bit
Show answer and explanation
Answer: C. Minimum Hamming distance 3; corrects up to 1 bit
Of the six pairs, 00000 and 11110, and 01011 and 10101, are at Hamming distance 4, and the other four pairs are at distance 3, so the minimum Hamming distance is 3. It can correct up to (3 − 1) ÷ 2 = 1 bit. This code is a linear code, in which the exclusive OR of any two codewords is also a codeword, so the value 3 can also be found as the smallest number of 1s in a nonzero codeword.
- A. 4 is the largest distance. The number of errors that can be corrected is set by the distance between the two nearest codewords, that is, the minimum.
- B. 2 is d − 1, the value for detection only. Correction works only up to (d − 1) ÷ 2 rounded down.
- C. Correct. The minimum Hamming distance is 3, so errors of up to 1 bit can be corrected.
Continue: 9 more Information Theory and Coding Basics questions