Information Theory and Coding Basics
Which of the following is closest to the code rate of the Hamming (7, 4) code, which adds 3 check bits to 4 bits of data to form a 7-bit codeword?
- AAbout 0.43
- BAbout 0.57
- C1.75
Show answer and explanation
Answer: B. About 0.57
The code rate is k/n, the fraction of the codeword length n taken up by the k data bits. For the Hamming (7, 4) code it is 4/7 ≈ 0.57, so about 57% of the bits sent are data. A lower code rate means more check bits and makes it easier to resist errors, but lowers the efficiency of sending data.
- A. About 0.43 is 3/7, the fraction of the codeword taken up by check bits.
- B. Correct. 4/7 ≈ 0.57.
- C. 1.75 is 7/4, with the numerator and denominator swapped. A code rate is 1 or less.
Continue: 9 more Information Theory and Coding Basics questions