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?
- A. 7 codewords; distance 4
- B. 14 codewords; distance 4
- C. 14 codewords; distance 3
- 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
- A 4 × 4 block of data bits is protected by two-dimensional even parity: a parity bit per row, a parity bit per column and a corner bit…
- Which of the following are true? (Python-style double precision for I, III, IV; single precision rounding for II.) I. adding 0.1 to a…
- A 5-bit asynchronous up-counter Q4..Q0 (Q4 the MSB) has its active-low asynchronous clear driven by a 3-input NAND of Q4, Q1 and Q0. The…
- A 3-bit register Q2Q1Q0 shifts right every clock, and the new Q2 is the XNOR of the old Q2 and old Q0. What is the behaviour of this…
- A 6-bit Johnson counter Q5…Q0 shifts right on each clock (Q4 ← Q5, …, Q0 ← Q1) and loads Q5 ← Q0' (old Q0). Because of noise it starts in…
- A combinational datapath with stage delays of 3 ns, 5 ns and 4 ns is split into three pipeline stages by registers, each register adding…