The generator matrix of a (6,3) binary linear block code is given by G = [[1,0,0,1,0,1],[0,1,0,0,1,1],[0,0,1,1,1,0]]. The minimum Hamming distance d_min between codewords equals _____ (answer in integer).
GATE 2025 EC Q.33: solution and answer
Answer and solution
ANSWER
Official answer: 3Source: Official answer key, GATE 2025 EC (IIT Roorkee)
For a linear block code the minimum Hamming distance equals the minimum weight of a nonzero codeword, because the distance between two codewords is the weight of their sum, and that sum is itself a codeword. The code has codewords, so there are 7 nonzero ones to check.
The rows of , with all arithmetic over GF(2), are , , .
Single-row codewords: , , .
Sums of two rows: with weight ; with weight ; with weight .
Sum of all three rows: with weight .
The weights of the seven nonzero codewords are , so the smallest is .
Hence .
KEY IDEA
In a linear block code, is the minimum weight among the nonzero codewords. Enumerate the nonzero combinations of the rows of over GF(2).
WATCH OUT FOR
Checking only the rows of (all weight 3) and not the sums of rows. The sums can have a lower weight, so every combination must be checked. Here the three-row sum happens to have weight 3 again, so the answer stays 3. A second mistake is adding rows with ordinary arithmetic instead of mod 2.
From the GATE 2025 EC paper. Every question of this paper · Download the full paper · All 5 Error control questions, with notes
