GATE / CS ARCHIVE

GATE CSE 1994 / QUESTION 9

Hamming (7,4) syndrome

Digital Logic · Binary Codes & Error Detection · Full GATE CSE 1994 paper

GATE 1994, Q9 5 marks · Descriptive
Report issue

Binary Codes & Error Detection

Question 9, GATE 1994: A received seven-bit single-error-correcting Hamming word has positions 7,6,5,4,3,2,1 containing 1,0,0,0,1,1,0 respectively. Assuming at most one corrupted bit, determine correctness and, if needed, correct it.
Tap to enlarge
Answer & solution

Answer: Even parity: bit 6 is wrong, corrected word 1100110. Odd parity: bit 1 is wrong, corrected word 1000111. (no official key was published)

1. Parity checks cover positions {1,3,5,7}, {2,3,6,7}, {4,5,6,7}. Their received XORs are 0,1,1.

2. For even parity each expected XOR is zero. The failure vector (s4,s2,s1)=110₂=6 locates bit 6; flip its 0 to 1 to obtain 1100110 in position order 7 through 1. All three checks then equal zero.

3. For odd parity each expected XOR is one. The failure vector is 001₂=1, so flip bit 1 from 0 to 1 to obtain 1000111 in position order 7 through 1. All three checks then equal one.

4. Because the source does not specify the parity convention, one cannot select a unique corrected word without stating an assumption.

Diagram / structural description

Position: 7 6 5 4 3 2 1
Received: 1 0 0 0 1 1 0

  • Neither the paper explicitly specifies even or odd parity.

Original paper, page 5