CS FundamentalsHardGATE CS

A memory word holds 57 data bits protected by a SEC-DED code (single-error correcting, double-error detecting) built as a Hamming code plus one overall parity bit. How many check bits are needed in total?

  1. A. 6
  2. B. 7
  3. C. 8
  4. D. 5

Correct answer: B. 7

Hamming SEC needs 2ʳ ≥ m + r + 1: r = 6 gives 64 ≥ 57 + 6 + 1 = 64, just enough, and one overall parity bit adds double-error detection: 7 check bits, a (64, 57) code. Stopping at SEC gives 6, taking r = 7 before adding parity gives 8, and ⌈log₂ 57⌉ − 1 = 5 ignores the m + r + 1 term.

More Computer Networks questions

Exams that ask this topic