GATE Computer ScienceEasyGATE CS (PYQ pattern)

A designer has 6 check bits per word. What is the largest number of data bits that can be protected by (i) a single-error-correcting Hamming code using all 6 check bits, and (ii) a SEC-DED code (Hamming code plus an overall parity bit) using the same 6 check bits?

  1. A. 57 and 56
  2. B. 58 and 26
  3. C. 57 and 26
  4. D. 63 and 57

Correct answer: C. 57 and 26

SEC needs 2^r ≥ k + r + 1: 64 ≥ k + 7, so k ≤ 57. SEC-DED spends one bit on overall parity, leaving r = 5 Hamming bits: 32 ≥ k + 6, so k ≤ 26.

More Digital Logic questions

Exams that ask this topic