Lecture 03 PDF
Lecture 03 PDF
Lecture 03 PDF
02 Fall 2012
Lecture #4
0 000
000 010
010
6.02 Fall 2012 Lecture 4, Slide #3
Minimum Hamming Distance of Code vs.
Detection & Correction Capabilities
If d is the minimum Hamming distance between
codewords, we can:
e.g.: d=4,
6.02 Fall 2012
tC=1, t =2
Lecture 4,DSlide #4
Linear Block Codes
Block code: k message bits encoded to n code bits
i.e., each of 2k messages encoded into a unique n-bit
codeword via a linear transformation.
C=D.G
k n-k
n
• Every linear code can be represented by an equivalent
systematic form --- ordering is not significant, direct
inclusion of k message bits in n-bit codeword is.
• Corresponds to using invertible transformations on
rows and permutations on columns of G to get
• G = [I | A] --- identity matrix in the first k columns
6.02 Fall 2012 Lecture 4, Slide #7
Example: Rectangular Parity Codes
P1 is parity bit
for row #1
Idea: start with rectangular
array of data bits, add parity
D1 D2 P1
checks for each row and
column. Single-bit error in
data will show up as parity D3 D4 P2 (n,k,d)=?
errors in a particular row
and column, pinpointing the P3 P4 P4 is parity bit
bit that has the error. for column #2
Parity for each row Parity check fails for Parity check only fails
and column is row #2 and column #2 for row #2
correct ⇒ no errors ⇒ bit D4 is incorrect ⇒ bit P2 is incorrect
⎡ I Ak×(n−k ) ⎤
The generator matrix, Gkxn = ⎢⎣ k×k ⎥⎦
6.02 Fall 2012 Lecture 4, Slide #10
Decoding Rectangular Parity Codes
Receiver gets possibly corrupted word, w.
1 0 1 P3 P4
0 1 0
0 1 1. Decoder action: ________________
0 0 0
1 1 1
1 1 2. Decoder action: ________________
0 0 1
0 1 0
0 0 3. Decoder action: ________________
• (7,4,3)
• (15,11,3)
• (2m –1,2m -1-m,3)
Index 1 2 3 4 5 6 7
Binary 001 010 011 100 101 110 111
index
(7,4) P1 P2 D1 P3 D2 D3 D4
code
Index 1 2 3 4 5 6 7
Binary 001 010 011 100 101 110 111
index
(7,4) P1 P2 D1 P3 D2 D3 D4
code
1+ n ≤ 2n-k
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.