CS FundamentalsHardProduct company interview · GATE level

How many parity bits does a single-error-correcting Hamming code need to protect 9 data bits?

  1. A. 3
  2. B. 5
  3. C. 4~1
  4. D. 4

Correct answer: D. 4

The smallest r with 2^r ≥ m + r + 1 is used. For m = 9, r = 3 gives 2^3 = 8 < 13, but r = 4 gives 2^4 = 16 ≥ 14.

More Computer Networks questions

Exams that ask this topic