CS FundamentalsHardGATE CS

A block code must correct every pattern of up to 2 bit errors and, at the same time, detect (without miscorrecting) every pattern of up to 4 bit errors. What is the minimum Hamming distance it needs?

  1. A. 5
  2. B. 7
  3. C. 9
  4. D. 11

Correct answer: B. 7

To correct t errors and also detect d > t errors you need d_min ≥ t + d + 1 = 2 + 4 + 1 = 7, so a 4-error word stays outside the radius-2 sphere of every other codeword. 5 handles only the correction, and 9 adds the separate requirements 2t + 1 and d + 1.

More Computer Networks questions

Exams that ask this topic