Beruflich Dokumente
Kultur Dokumente
Overview
Codes?
Digital Communication
jaj
Linear Block Codes Signal Detection
Channel
Hamming Codes
Nikesh Bajaj Shannon Theorem
nikesh.14730@lpu.co.in
Digital Signal Processing
Lovely Professional University 2 By Nikesh Bajaj
Channel Coding Ba
Block Codes
Words, Codeword
Code rate
Hamming distance/Min d*
sh
Non binary
Hamming weight/ Min w*
d(c1,c2)=w(c1-c2)
Block length (n)
Code(n,k) M=qk
3 By Nikesh Bajaj 4 By Nikesh Bajaj
ke
1
9/24/2013
1 0 1 Encoding
G
jaj
0 1 0
Generator Matrix (Properties)
Size kxn,
rank k
Ba
Rows are linearly independent and basis vector
Find linear code
Q: S={1100 0100 0011} over GF(2)
Q: S={12 21} over GF(3)
sh
Any set of basis vector can be used to generate code span
Generator matrix is not unique for given linear code
Saves memory space
Sufficiency
2
9/24/2013
jaj
Uniqueness
Check matrix or Parity Check Matrix H Sufficiency
G =[I | P] or G = [P | I] d* =min rows in HT or column of H whose sum is
H = [-PT | I ] or H = [ I | -PT ] zero (in linear code) and binary
Hamming Code
1
0
G
0
0
0 0 0 1 0 1
0 1 0 0 1 0
0 0 1 0 1 0
Ba
1 0 0 1 1 1
Parity check matrix H
Q: find for H
. 0 1 2 1
G= 1 0 1 0
1 2 2 1
sh
15 By Nikesh Bajaj 16 By Nikesh Bajaj
ke
3
9/24/2013
jaj
d* =n-k+1
Decoding
Spheres of t radius, t errors
Vector space, q-ary, n-tuples
d* 2t+1
Ba Decoding
Coders
sh
Worst case Incomplete Coder
Nearest neighborhood decoding Complete Coder
C={00000 01010 10101 11111}
Tx=11111--- Rx =11110
Tx=00000 --- Rx =01000
Coset Coset
Ni
For C (n, k) over GF(q) and a be any vector of Coset Leader: Vector of minimum weight
length n then the set If two, choose any one
Coset a + C ={c1+a, c2+a } c1, c2 C Find Cosets for G=[1 0 1; 0 1 0]
Theorems (Prove) Ref: 106 in RB GF(qn) = C (a1+C) (a2+C) (at+C)
Every vector b of length n is in some Coset t =qn-k -1
Each Coset contain exactly qk vector
Two Cosets are either disjoint or Concide
If a+C is Coset of C and b a+C then b+C =a+C
a and b are said to be in same Coset if (a-b) C
4
9/24/2013
jaj
If Rx v = 1101
c= v - e
Why syndrome?
5
9/24/2013
jaj
Perfect Code
Hamming Code
Optimal Code
MDS Code
Sphere and # vector
A sphere of radius t (0<=t<=n) contains vectors
Ba
Perfect Codes
Perfect Code is one which achieves the Hamming
Bound
MV = qn
sh
Example: # of vector of distance 2 from a vector of length
4 in GF(2)
Hamming Bound
MV <= qn
Two q-ary codes are called equivalent codes if one Two Linear q-ary codes are called equivalent codes
can be obtained from other by one or both if one can be obtained from other by one or both
Permutation of components Multiplication of components by any non-zero scalar
Permutation of position of codewords Permutation of position of codewords
2 0 1 2 2 2
C 1 2 0 C 1 1 1
0 1 2 0 0 0
6
9/24/2013
jaj
(n, k) =(2m 1, 2m m 1) (n+1, k+1, d*) or
(n+1, k, d*+1) exist
1 0 0 0 1 0 1
(24, 12, 8)
0 1 0 0 1 1 1
G 23, 12, 8 X 23 12 7
0 0 1 0 0 1 0
0 0 0 1 0 1 0 25, 13, 8 X
25, `12, 9 X
37 By Nikesh Bajaj 38 By Nikesh Bajaj
MDS Codes
Ba
(n, n-r, d*) code satisfy d* =r+1
Set S,
Extended field GF(qn ) linear span <S>
linear span <S> is sub space of GF(qn )
sh
Channel Coding
Ni
7
9/24/2013
jaj
Code rate =1/n
Example 2.4 from Ranjan boss
Channel Coding
Words and Codeword
Ba
Code(n,k) or code(n,k,d)
Code rate k/n
Code C = {000 111 }
sh
Hamming distance d
Hamming weight w
Error detection capability ed
Error Correction Capability ec
47 By Nikesh Bajaj