



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




MTH 416 Introduction to Algebraic Coding F
Homework 5/Solutions
(a) Compute the dimension k of C.
(b) Find a generating matrix E of C.
(c) Compute the minimum distance δ of C.
(d) Determine the largest positive integer r such that C is r-error-correcting.
(e) Let σ be any MD-decision rule for C. Compute:
σ(110100001000), σ(110000111111) and σ(101111101111).
(h) Is C cyclic?
(i) Is C perfect?
(a) The last 8 columns of H clearly span F
8 2 and so Col(H) =^ F
8 2 and so dim Col(H)8.
Hence dim C = dim Nul(H) = 12 − dim Col(H) = 12 − 8 = 4.
(b) Since H is in standard form (A, I 8 ),
(^) is a generaing matrix for C. So we can
choose
(c) The minimum distance δ of C is the smallest number of columns whose sum is zero.
Since none of the columns are zero δ > 1. Since no two distinct columns of H are equal,
δ > 2. The sum of columns 1,3 and 4 is zero, so δ ≤ 3. Thus δ = 3.
(d) By definition, C is r-error correcting if and only if 2r + 1 ≤ δ. Since δ = 3 the largest
such r is r = 1.
(e) No nice solutions for part (e). Sorry, I picked the wrong words.
(h) The cyclic shift of the first column of E is d = 0100011110000. If d is in C it would
be a linear combination of the columns of E. Looking at the first fours bits, d would have
to the second column of E. But d is not equal to second columns of E and so d /∈ C. Thus
C is not cyclic.
(i) A 1-error correct code is perfect if and only if the packing bound is sharp. We
compute
∑^ r
i=
n
r
4 (1 + 12)
This is not a power of 2 and so is not equal to 2
12
. So C is not a perfect code.
m − 1 using the numerical
order on the columns. Put C = Nul(H) and suppose that m ≥ 3.
(a) Let a = a 1... an ∈ B
n with ai = 1 for 1 ≤ i ≤ 3 and ai = 0 for 4 ≤ i ≤ n (so
a = 11100... 00 ). Is a ∈ C.
(b) Let b = b 1... bn ∈ B
n with bi = 1 for 1 ≤ i ≤ 6 and ai = 0 for 7 ≤ i ≤ n (so
b = 11111100... 00 ). Is b ∈ C?
The polynomials of degree 2 are x
2 = x · x, x
2
2
and x
2
2
f + h = x
3
4 = x
3 (1 + x) and f neither divides x nor 1 + x, f does not divide f + h and
also not h. This contradiction shows that h is irreducible.
It follows that the factors of x
5 − 1 are (1 + x)
1 (1 + x + x
2
3
4 )
2 with i ∈ { 0 , 1 }.
So the factors are
1 , 1 + x, 1 + x + x
2
3
4 , x
5 − 1
(b) Each cyclic code is determined by its canonical generator g. g is a factor of x
5 − 1
and so by (a) we obtain the following four generating matrix:
g = 1, E =
5 2
g = 1 + x, E =
, C : words of even length 5 and even weight
g = 1 + x + x
2
3
4 , E =
g = x
5 − 1 , E =
2 +x
3 +x
4 +x
6 〉
in V
15 (x).
We compute
x
9
7
6 +x
3 +x
2
x
6
4
3
2
15
x
15 +x
13 +x
12 +x
11 +x
9
x
13 +x
12 +x
11 +x
9
x
13 +x
11 +x
10 +x
9 +x
7
x
12 +x
10 +x
7
x
12 +x
10 +x
9 +x
8 +x
6
x
9 +x
8 +x
7 +x
6
x
9 +x
7 +x
6 +x
5 +x
3
x
8 +x
5 +x
3
x
8 +x
6 +x
5 +x
4 +x
2
x
6 +x
4 +x
3 +x
2
x
6 +x
4 +x
3 +x
2
Thus h =
x^15 − 1 1+x^2 +x^3 +x^4 +x^6
= x
9
7
6
3
2
(starting at the leading coefficient and ending at the constant term) are
So the check matrix for C is
(b) We have H · 1100 = 1010. The corresponding coset leader is 1100 and so σ(1100) =
1100 − 1100 = 0000.
We have H · 1110 = 1001. The corresponding coset leader is 0101 and so σ(1110) =
1110 − 0101 = 1011.