Q12. For a 7-bit Hamming (7,4) code, a received codeword is 1100111. What is the original 4-bit data, and was there an error? Show your calculation. Answer: Positions: 1(P1), 2(P2), 3(D1), 4(P3), 5(D2), 6(D3), 7(D4) Received: 1 1 0 0 1 1 1 Calculate syndrome bits (even parity): S1 = positions 1,3,5,7 → 1,0,1,1 → 1+0+1+1=3 (odd) → S1=1 S2 = positions 2,3,6,7 → 1,0,1,1=1+0+1+1=3 (odd) → S2=1 S3 = positions 4,5,6,7 → 0,1,1,1=0+1+1+1=3 (odd) → S3=1 Syndrome: S3 S2 S1 = 1 1 1 = 7 (binary) So, error in position 7. Correct bit 7 (from 1 to 0): new codeword = 1100110 Original data bits: D1,D2,D3,D4 = positions 3,5,6,7 = 0 1 1 0 Final answer: Data bits sent: 0 1 1 0 Single-bit error detected and corrected at bit 7.