GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A binary (n, k) code correcting t errors is perfect if the radius-t spheres around its 2^k codewords exactly fill all 2^n words. Which of the following codes exist AND are perfect? I. a (7, 4) code with t = 1 II. a (23, 12) code with t = 3 III. a (15, 7) code with t = 2 IV. a (31, 26) code with t = 1 V. a (90, 78) code with t = 2

  1. A. I, II and IV only
  2. B. I, II, IV and V only
  3. C. I and IV only
  4. D. I, II, III and IV only

Correct answer: A. I, II and IV only

Sphere volumes: 1 + 7 = 2³ (Hamming), 1 + 23 + 253 + 1771 = 2048 = 2¹¹ (binary Golay code), 1 + 31 = 2⁵ (Hamming): perfect. For (15, 7, t = 2), 1 + 15 + 105 = 121 ≠ 2⁸. (90, 78, t = 2) satisfies the count 1 + 90 + 4005 = 4096 = 2¹², but it is known (Golay; Tietäväinen–van Lint) that no such code exists: the only nontrivial perfect binary codes are Hamming and Golay codes.

More Digital Logic questions

Exams that ask this topic