CS FundamentalsVery hardGATE CS

A (7, 4) Hamming code uses ODD parity, with bit layout p1 p2 d3 p4 d5 d6 d7 (positions 1–7 from the left); each check bit makes its group (positions containing that power of two) have an odd number of 1s. The word 1101100 is received, with at most one bit in error. What are the corrected data bits d3 d5 d6 d7?

  1. A. 0100
  2. B. 0000
  3. C. 0101
  4. D. 1011

Correct answer: B. 0000

Group 1 (positions 1, 3, 5, 7), group 2 (2, 3, 6, 7) and group 4 (4, 5, 6, 7) are checked for ODD parity; the failing groups sum to position 5. Flipping it gives 1101000, whose data bits are 0000. Checking for even parity instead would point to a different bit.

More Computer Networks questions

Exams that ask this topic