Information and Coding Theory Assignment 5: Solution: Chadi Abou-Rjeily
Information and Coding Theory Assignment 5: Solution: Chadi Abou-Rjeily
Assignment 5: Solution
Chadi Abou-Rjeily
◮ Given that G is written under the form: G= P Ik , then
the parity check matrix H is given by:
H = In−k P T
1 0 0 0 1 1
= 0 1 0 1 0 1
0 0 1 1 1 0
Exercise 1 (c)
First Method:
◮ The Hamming weights of the non-zero codewords are:
dH (r , c1 ) = 4 ; dH (r , c2 ) = 5 ; dH (r , c3 ) = 1 ; dH (r , c4 ) = 4
dH (r , c5 ) = 3 ; dH (r , c6 ) = 2 ; dH (r , c7 ) = 2 ; dH (r , c8 ) = 3
H = In−k P T
1 0 0 0 0 0 1 0
0 1 0 0 0 0 1 0
0 0 1 0 0 0 0 1
=
0 0 0 1 0 0 0 1
0 0 0 0 1 0 1 1
0 0 0 0 0 1 1 1
0 0 0 1 1 1 0 1
◮ Given that G is written under the form: G = Ik P , then
the parity check matrix H is given by:
H = P T In−k
1 1 0 1 1 0 0 0
1 0 1 1 0 1 0 0
= 1 1 1 0 0 0 1 0
0 1 1 1 0 0 0 1
Exercise 3 (b,c,d)
rH T =
0 0 1 1
rH T =
0 0 0 0
a1 + a2 = 0 ⇒ a1 = a2
b1 + b2 = 0 ⇒ b1 = b2
c1 + c2 + 1 = 0 ⇒ c1 = c2
d1 + d2 + 1 = 0 ⇒ d1 = d2
Exercise 4 (2)
◮ Given that H is written under the form H = P In−k ,
then the generator matrix G can be written as:
1 0 0 1 0 1 1
T
G = Ik P = 0 1 0 a b c d
0 0 1 a b c d