Skip to content

GATE CS 2017 Set 2 Q34 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI

Consider the binary code that consists of only four valid codewords as given below:

00000,01011,10101,1111000000, 01011, 10101, 11110

Let the minimum Hamming distance of the code pp and the maximum number of erroneous bits that can be corrected by the code be qq. Then the values of pp and qq are

Choose one option
View worked solution

Answer: A

To find the minimum Hamming distance pp and the error-correcting capability qq of the given binary code, we analyze the set of valid codewords:

  • C1=00000C_1 = 00000
  • C2=01011C_2 = 01011
  • C3=10101C_3 = 10101
  • C4=11110C_4 = 11110

Step 1: Find the Minimum Hamming Distance (pp)

The Hamming distance between two codewords is the number of positions at which the corresponding bits differ. Let's compute the pairwise Hamming distances:

  • d(C1,C2)=weight(01011)=3d(C_1, C_2) = \text{weight}(01011) = 3
  • d(C1,C3)=weight(10101)=3d(C_1, C_3) = \text{weight}(10101) = 3
  • d(C1,C4)=weight(11110)=4d(C_1, C_4) = \text{weight}(11110) = 4
  • d(C2,C3)=weight(01011⊕10101)=weight(11110)=4d(C_2, C_3) = \text{weight}(01011 \oplus 10101) = \text{weight}(11110) = 4
  • d(C2,C4)=weight(01011⊕11110)=weight(10101)=3d(C_2, C_4) = \text{weight}(01011 \oplus 11110) = \text{weight}(10101) = 3
  • d(C3,C4)=weight(10101⊕11110)=weight(01011)=3d(C_3, C_4) = \text{weight}(10101 \oplus 11110) = \text{weight}(01011) = 3

The minimum Hamming distance pp is the minimum of all pairwise distances:

p=min⁡(3,3,4,4,3,3)=3p = \min(3, 3, 4, 4, 3, 3) = 3

Step 2: Find the Error-Correction Capability (qq)

To correct up to qq errors, the minimum Hamming distance dmind_{\text{min}} of the code must satisfy the following relation:

dmin≥2q+1d_{\text{min}} \ge 2q + 1

Substituting dmin=p=3d_{\text{min}} = p = 3 into the inequality:

3≥2q+1  ⟹  2q≤2  ⟹  q≤13 \ge 2q + 1 \implies 2q \le 2 \implies q \le 1

Thus, the maximum number of erroneous bits that can be corrected is q=1q = 1.

Therefore, p=3p = 3 and q=1q = 1, which corresponds to Option A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions