5CS3-01: Information Theory & Coding: Unit-3 Linear Block Code
5CS3-01: Information Theory & Coding: Unit-3 Linear Block Code
& Coding
Unit-3
Linear Block Code
Linear Block Code
Introduction to error connecting codes
Air
Antenna
Information
received
Source Channel
decoding decoding Demodulation Receiver
Forward Error Correction (FEC)
The key idea of FEC is to transmit enough
redundant data to allow receiver to recover from
errors all by itself. No sender retransmission
required.
c1 m1
c2 m2
...
ck mk
c m p
1 1( k 1) m2 p2 ( k 1) ... mk pk ( k 1)
k 1
...
cn m1 p1n m2 p2 n ... mk pkn
Linear Block Codes: Example
Example: Find linear block code encoder G if code generator
polynomial g(x)=1+x+x3 for a (7, 4) code; n = total number
of bits = 7, k = number of information bits = 4, r = number
of parity bits = n - k = 3
x3
p1 Re 3
1 x 110
1 x x
1000 | 110
x4 0100 | 011
p2 Re x x 2
011
1 x x
3
G [ I | P]
0010 | 111
x5
p 3 Re 1 x x 2
111 0001 | 101
1 x x
3
1000110
0100011
c m.G [1011] [1011 | 100]
0010111
0001101
P
T
cH m | c p
I
n k
mP c p c p c p 0
Block Codes: Linear Block Codes
The transpose of matrix HT is
H P T I nk
Where In-k is a n-k by n-k unit matrix and PT is the
transpose of parity matrix P.
1000 | 111
0100 1110 | 100
| 110
G
H 1101 | 010
0010 | 101
0001 | 011 1011 | 001
Solution
We first find all Hamming distances.
Solution
We first find all the Hamming distances.
Solution
This code guarantees the detection of up to three
errors
(s = 3), but it can correct up to one error. In other
words,
if this code is used for error correction, part of its
capability is wasted. Error correction codes need to
have an odd minimum distance (3, 5, 7, . . . ).
LINEAR BLOCK CODES