CS FundamentalsModerateHCL · Tech Mahindra pattern

A code must be able to correct any 2-bit error in a codeword. What is the minimum Hamming distance it needs?

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

Correct answer: D. 5

To correct t errors the minimum distance must be 2t + 1 = 2(2) + 1 = 5. A distance of 3 corrects only single-bit errors; 4 corrects 1 and detects 3.

More Computer Networks questions

Exams that ask this topic