CS FundamentalsVery hardGATE CS

A (15, 11) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8 (positions numbered 1–15 from the left). The word 111101100011001 is received. Assuming at most one bit is wrong, which position is in error?

  1. A. Position 5
  2. B. Position 13
  3. C. Position 11
  4. D. No error

Correct answer: B. Position 13

Recompute each check over the positions whose index has that bit set: the failing checks are the ones for 1, 4 and 8, and 1 + 4 + 8 = 13. Reading the syndrome bits in reverse (1011 = 11) or missing the check for 8 (giving 5) are the usual slips.

More Computer Networks questions

Exams that ask this topic