What is the distance of the following code , , , , ?
View worked solution
Answer: A
The distance of a code (also known as the minimum Hamming distance, ) is defined as the minimum Hamming distance between any pair of distinct codewords in the code.
The Hamming distance between two codewords is the number of positions at which the corresponding bits differ.
Let the given codewords be:
Let us calculate the Hamming distance for some pairs:
Since the minimum possible Hamming distance between any two distinct codewords in this set is , the distance of the code is .
Therefore, the correct option is A.
Free practice · Your answers on this page are not saved.
