GATE Computer ScienceModerateGATE CS (PYQ pattern)

The (8, 4) extended Hamming code is the (7, 4) Hamming code with an overall even-parity bit appended. How many of its 16 codewords have Hamming weight exactly 4, and what is its minimum distance?

  1. A. 7 codewords; distance 4
  2. B. 14 codewords; distance 4
  3. C. 14 codewords; distance 3
  4. D. 8 codewords; distance 4

Correct answer: B. 14 codewords; distance 4

The (7, 4) code has weight distribution 1, 7, 7, 1 (weights 0, 3, 4, 7). The parity bit raises each weight-3 word to 4 and each weight-7 word to 8, leaving the weight-4 words at 4. So the (8, 4) code has 1 + 14 + 1 words of weights 0, 4, 8: 14 of weight 4, and minimum distance 4.

More Digital Logic questions

Exams that ask this topic