CS FundamentalsHardAccenture · Tech Mahindra pattern

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

  1. A. 6
  2. B. 8
  3. C. 7~1
  4. D. 7

Correct answer: D. 7

The smallest r with 2^r ≥ m + r + 1 is used. For m = 61, r = 6 gives 2^6 = 64 < 68, but r = 7 gives 2^7 = 128 ≥ 69.

More Computer Networks questions

Exams that ask this topic