GATE Computer ScienceVery hardGATE CS (PYQ pattern)

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, giving a 5 × 5 array (errors can hit parity bits too). What is the smallest number of bit errors that can go undetected, and how many error patterns of that size are undetected?

  1. A. 4 errors; 36 patterns
  2. B. 3 errors; 100 patterns
  3. C. 4 errors; 100 patterns
  4. D. 4 errors; 225 patterns

Correct answer: C. 4 errors; 100 patterns

In the full 5 × 5 array every row and every column has even parity (the corner makes the parity row and column consistent). An error pattern is undetected iff it flips an even number of bits in every row and column. Weight 2 or 3 cannot do that; weight 4 can only as the corners of a rectangle: choose 2 of 5 rows and 2 of 5 columns, C(5,2)² = 100. Using only the 4 × 4 data area gives C(4,2)² = 36.

More Digital Logic questions

Exams that ask this topic