IAE Academy

GATE 2025 EC Q.33: solution and answer

GATE 2025 · ECQ.33 · 1 mark · NAT

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).

See the question in the paper

Answer and solution

ANSWER

Official answer: 3Source: Official answer key, GATE 2025 EC (IIT Roorkee)

  1. 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.

  2. The rows of , with all arithmetic over GF(2), are , , .

  3. Single-row codewords: , , .

  4. Sums of two rows: with weight ; with weight ; with weight .

  5. Sum of all three rows: with weight .

  6. The weights of the seven nonzero codewords are , so the smallest is .

  7. 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

More Error control questions