Various Linear Block Codes
Various Linear Block Codes
CODES –PART 1
Information Theory and Coding
Prof. Deron Ray Rodrigues
Unit 3
Channel coding Asst. Prof.
ETC Dept., DBCE
CONTENTS:
For even parity, p = 0 if the number of 1’s in the data Message bits Parity bit Codeword bits Weight
word (message) are even, else p=1 m1 m 2 m3 p c1 c2 c3 c4 w
For odd parity, p=0, if the number of 1’s in the data 000 0 0000 0
word are odd, else p = 1 001 1 0011 2
The single even parity check bit has the equation, 010 1 0101 2
• Parity check matrix for non-systematic (7,4) In case of non-systematic (7,4) Hamming code, the
Hamming code columns are re-arranged so that the decimal
numbers are in descending order.
0 0 0 1 1 1 1
H= 0 1 1 0 0 1 1 But the coefficient sub-matrix and identity matrix
1 0 1 0 1 0 1 are not separate. Hence it is non-systematic code.
1 2 3 4 5 6 7
Perfect Codes:
A code which achieves the Hamming bound with equality.
It is also defined as a code, where it is possible to form a
standard array with all patterns of t-or less errors and no
others, as the coset leaders.
[i.e. 2n-k = nC1+ nC2+….+ nCt ]
SHORTENED CODES:
An (n, k) linear code can be shortened to an (n-i, k-i) shortened linear code
by setting the first (left-hand side) ‘i' information bits to zero.
Generator matrix of shortened code is obtained by omitting first ‘i’ rows
and ‘i’ columns of G.
And parity-check matrix is obtained by omitting first ‘i’ columns of H.
Codewords bits are then ‘n-i’
But parity bits, r = (n – i ) – ( k – i) = n – k same as the original code.
Note: Shortening the code doesn’t reduce its error control capability.