CS FundamentalsHardHCL · Tech Mahindra pattern

A code has exactly four codewords: 00000, 01011, 10101 and 11110. Which statement about its error handling is correct?

  1. A. It can detect up to 4-bit errors and correct 2-bit errors
  2. B. It can detect up to 3-bit errors and correct 2-bit errors
  3. C. It can detect 1-bit errors but correct none
  4. D. It can detect up to 2-bit errors and correct 1-bit errors

Correct answer: D. It can detect up to 2-bit errors and correct 1-bit errors

Pairwise distances are 3, 3, 4, 4, 3, 3, so d_min = 3 (take the minimum, not the largest 4). Detect d_min − 1 = 2 errors; correct ⌊(d_min − 1)/2⌋ = 1 error.

More Computer Networks questions

Exams that ask this topic