Question
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 and the maximum number of erroneous bits that can be corrected by the code be . Then the values of and are
Official answer and solution
- Official answer
- A
- From
- Official GATE 2017 answer key
Solution
Compute pairwise Hamming distances between all four codewords to find the minimum distance , then use the error-correction bound .
Compute the pairwise Hamming distance (number of bit positions where codewords differ) for all pairs from :
The minimum Hamming distance of the code is .
A code with minimum Hamming distance can correct up to errors, where:
Therefore, and , which matches option A.
A
Confusing error detection capability () with error correction capability ().
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 2
- Question
- 34 of 65, printed as CS Q.34
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.