Assgn2 Soln PDF
Assgn2 Soln PDF
Assgn2 Soln PDF
Assignment-2 Solutions
February 8, 2017
Solution 1: (b) Minimum distance of a linear block code dmin is equal to the minimum number of columns of parity
check matrix H that add up to a zero vector. The generator matrix given in the problem is in systematic form, i.e.,
G = [P : In ]. Therefore, the parity check matrix H in systematic form [In−k : PT ]. The parity check matrix is given
by
1 0 0 1 1 0
H= 0 1 0 1 1 1
0 0 1 0 1 1
In this matrix, E.g. columns 3, 4, 5 add up to a zero vector. Hence, the minimum distance of the code is 3.
Solution 2: (b) A code with minimum distance dmin can detect dmin − 1 errors. Here, dmin = 3 and there-
fore, this code can detect 2 bit errors.
Solution 3: (a) The code has a minimum distance of 3. Therefore it can only correct b dmin2 −1 c = 1 bit er-
ror.
Solution 4: (a) A code with minimum distance dmin can simultaneously detect λ errors and correct l errors if
and only in dmin ≥ λ + l + 1. In this problem, we have dmin = 3, λ = 1 and l = 1. Therefore, the statement is true.
Solution 5: (b) A code with minimum distance dmin can simultaneously correct ν errors and e erasures if and
only if dmin ≥ 2ν + e + 1. In this problem we have dmin = 3, ν = 1, and e = 1. Therefore, the statement is false.
u2 u1 u0 v5 v4 v3 v2 v1 v0 Weight
000 000000 0
001 011001 3
010 111010 4
011 100011 3
100 110100 3
101 101101 4
110 001110 3
111 010111 4
1
Solution 7: (b) If two error patterns belong to same coset, they would have same syndrome s = eHT . In this
problem, the syndromes corresponding to 010000 and 110000 are 001 and 011 respectively. Therefore, they do not
belong to same coset.
Solution 8: (c) For a received codeword r, the syndrome s can be calculated by s = rHT . For r = (1 0 0 0 0 1), we
will have s = (1 0 0).
Solution 9: (c) Equivalent parity check matrix H in the systematic form [PT : In−k ] can be obtained by ele-
mentary row operations.
0 0 0 1 0 1 1 0 1 1 0 0 1 0 1 1 0 0
R1 :=R1 +R2 exchange R2 , R3
H = 1 0 1 0 0 1 −−−−−−−−→ 1 0 1 0 0 1 −−−−−−−−−−→ 0 1 0 1 1 0
0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1
1 0 1 1 0 0
R :=R2 +R1
−−2−−−− −−→ 1 1 1 0 1 0 = [PT : In−k ]
1 0 1 0 0 1