CS FundamentalsHardWipro · Accenture pattern

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

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

Correct answer: A. 4

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

More Computer Networks questions

Exams that ask this topic