GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 29

GATE CSE 2021 Set 1 Q29

Digital Logic · Binary Codes & Error Detection · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q29 2 marks · MCQ
Report issue

Binary Codes & Error Detection

Question 29, GATE 2021: A 12-bit Hamming codeword is d8 d7 d6 d5 c8 d4 d3 d2 c4 d1 c2 c1, listed from left to right. Data d8...d1 are 1,1,0,x,0,1,0,1; check bits c8,c4,c2,c1 are y,0,1,0. Find x,y. A 0,0; B 0,1; C 1,0; D 1,1.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (5 steps)

Number codeword positions from the right. The c2 parity group at positions 2, 3, 6, 7, 10, 11 already has four ones, establishing even parity. The c1 group at 1, 3, 5, 7, 9, 11 has 2+x ones, so x=0. The c8 group at 8, 9, 10, 11, 12 then has y+2 ones, so y=0. Thus A. This uses the parity convention inferred from the supplied known check group, not an unprovided arbitrary choice.

The positions from right to left are 1:c1=0,2:c2=1,3:d1=1,4:c4=0,5:d2=0,6:d3=1,7:d4=0,8:c8=y,9:d5=x,10:d6=0,11:d7=1,12:d8=1. Each parity check includes positions whose binary index has its corresponding bit set. After x=y=0, c4's group {4,5,6,7,12} also has two ones, verifying consistency with the parity convention inferred from c2.

Original paper, page 25 · Answer key