GATE CS 2017, set 2 · Question 34 · Computer Networks · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider a binary code that consists of only four valid codewords as given below:
00000, 01011, 10101, 11110
Let the minimum Hamming distance of the code be p and the maximum number of erroneous bits that can be corrected by the code be q. Then the values of p and q are

  1. (A) p=3 and q=1
  2. (B) p=3 and q=2
  3. (C) p=4 and q=1
  4. (D) p=4 and q=2
Answer

Answer (A)

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes