CS FundamentalsHardGATE CS

A single-error-correcting Hamming code uses 5 check bits. What is the maximum number of data bits it can protect, and what is its code rate?

  1. A. 26 data bits; rate 26/31
  2. B. 31 data bits; rate 31/36
  3. C. 25 data bits; rate 25/30
  4. D. 16 data bits; rate 16/21

Correct answer: A. 26 data bits; rate 26/31

The check bits must label every single-bit error plus 'no error': 2ʳ ≥ m + r + 1, so m ≤ 32 − 6 = 26. That is the (31, 26) code with rate 26/31 ≈ 0.84; larger codes have higher rates.

More Computer Networks questions

Exams that ask this topic