Properties of Linear Block Codes
Properties of Linear Block Codes
Saravanan Vijayakumaran
sarva@ee.iitb.ac.in
Department of Electrical Engineering
Indian Institute of Technology Bombay
1 / 17
min
x,yC,x6=y
d(x, y)
Theorem
The minimum distance of a linear block code is equal to the
minimum weight of its nonzero codewords
Proof.
= min wt(x + y)x, y C, x 6= y
= min wt(v)v C, v 6= 0
dmin
2 / 17
Example
Find the minimum distance of a linear block with parity check
matrix
1 0 0 1 0 1 1
H = 0 1 0 1 1 1 0
0 0 1 0 1 1 1
Theorem
Let C be a binary linear block code with parity check matrix H.
There exists a codeword of weight w in C there exist w
columns in H which sum to the zero vector.
Corollary
If no w 1 or fewer columns of H sum to 0, the code has
minimum distance at least w.
Corollary
The minimum distance of C is the equal to the smallest number
of columns of H which sum to 0.
3 / 17
Singleton Bound
Let C be an (n, k ) binary block code with minimum distance
dmin .
dmin n k + 1
Proof.
Suppose C is a linear block code.
What is the rank of H?
4 / 17
error detection
Let x be the transmitted codeword and y is the received
vector
y=x+e
n
X
Ai pi (1 p)ni
i=1
5 / 17
Example
Find the weight distribution of a linear block with parity check
matrix
1 0 0 1 0 1 1
H = 0 1 0 1 1 1 0
0 0 1 0 1 1 1
A0 = 1, A7 = 1, A1 = 0, A2 = 0, A3 = 7, A4 = 7, A5 = 0, A6 = 0
Pue = 7p3 (1 p)4 + 7p4 (1 p)3 + p7
6 / 17
107
108 3
10
102
p
101
7 / 17
1 1 0 0
Example: G =
0 0 1 1
0000
1000
0010
0110
1100
0100
1110
1010
0011
1011
0001
0101
1111
0111
1101
1001
8 / 17
patterns
9 / 17
Example
0 1 1 1 0 0
G = 1 0 1 0 1 0
1 1 0 0 0 1
000000
100000
010000
001000
000100
000010
000001
100100
011100
111100
001100
010100
011000
011110
011101
111000
101010
001010
111010
100010
101110
101000
101011
001110
110001
010001
100001
111001
110101
110011
110000
010101
110110
010110
100110
111110
110010
110100
110111
010010
101101
001101
111101
100101
101001
101111
101100
001001
011011
111011
001011
010011
011111
011001
011010
111111
000111
100111
010111
001111
000011
000101
000110
100011
10 / 17
Syndrome Decoding
All vectors in the same row of the standard array have the
same syndrome
Vectors in different rows have different syndromes
Steps in syndrome decoding
Compute the syndrome y H T of the received vector y
Find the coset leader ei whose syndrome equals y H T
= y + ei
Decode y into the codeword v
Let i be the number of coset leaders of weight i for C
Probability of decoding error over a BSC is given by
Pe = 1
n
X
i pi (1 p)ni
i=0
11 / 17
0 1 1 1 0 0
G = 1 0 1 0 1 0
1 1 0 0 0 1
Pe = 1 (1 p)6 6p(1 p)5 p2 (1 p)4
101
102
103
104
Pe
105 3
10
102
p
101
12 / 17
Hamming Bound
Let C be an (n, k ) binary linear block code with minimum
distance dmin 2t + 1.
n
n
n
nk
2
1+
+
+ +
1
2
t
Proof.
Does dmin 2t + 1 imply that all vectors of weight t or less are
coset leaders?
Suppose wt(x) t and wt(y) t. Can x and y be in the same
coset?
13 / 17
MacWilliams Identity
Let C be an (n, k ) binary linear block code
Let A0 , A1 , . . . , An be the weight distribution of C
Let B0 , B1 , . . . , Bn be the weight distribution of C
The corresponding weight enumerators are given by
A(z) = A0 + A1 z + An z n
B(z) = B0 + B1 z + Bn z n
The MacWilliams identity states that
(nk )
A(z) = 2
(1 + z) B
1z
1+z
14 / 17
Example
1 0 0 1 0 1 1
H = 0 1 0 1 1 1 0
0 0 1 0 1 1 1
A(z) = 1 + 7z 3 + 7z 4 + z 7
B(z) = 1 + 7z 4
"
#
1z
1z 4
3
7
3
7
2 (1 + z) B
= 2 (1 + z) 1 + 7
1+z
1+z
15 / 17
n
X
Ai pi (1 p)ni
i=1
n
X
i
p
= (1 p)
Ai
1p
i=1
"
i #
n
X
p
n
Ai
= (1 p) 1 +
1p
i=0
p
n
= (1 p) A
1
1p
n
16 / 17
Questions?
17 / 17