CS FundamentalsHardGATE CS

A single-error-correcting Hamming code protects m data bits with r check bits satisfying 2^r >= m + r + 1. How many check bits are needed for m = 120 and for m = 121 data bits respectively?

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

Correct answer: A. 7 and 8

For m = 120, r = 7 works because 128 >= 120 + 7 + 1 = 128. For m = 121 the same r fails (128 < 129), so 8 check bits are required.

More Computer Networks questions

Exams that ask this topic