GATE Computer ScienceVery hardGATE CS (PYQ pattern)

An (8, 4) SEC-DED code uses even-parity Hamming bits at positions 1, 2, 4, data bits d1..d4 at positions 3, 5, 6, 7 (positions numbered 1-8 from the left) and an overall even-parity bit at position 8 covering bits 1-7. Two words are received: W1 = 01100111 and W2 = 11101000. What does the decoder conclude?

  1. A. W1: only the overall parity bit is wrong, data accepted; W2: double error detected
  2. B. W1: bit 8 is wrong and so is one data bit; W2: single error corrected
  3. C. W1: double error detected; W2: single error corrected
  4. D. W1: only the overall parity bit is wrong, data accepted; W2: single error corrected

Correct answer: A. W1: only the overall parity bit is wrong, data accepted; W2: double error detected

W1: the Hamming syndrome over bits 1-7 is 000 but the overall parity fails, so the error is in bit 8 itself and the data 1011 is fine. W2: the syndrome is 101 (non-zero) while the overall parity checks, which is the signature of two errors: uncorrectable, detected. Trusting the syndrome alone would 'correct' bit 5 and corrupt the data.

More Digital Logic questions

Exams that ask this topic