Docsity

Solutions to Homework 5 in MTH 416: Introduction to Algebraic Coding - Prof. U. Meierfrank, Study notes of Mathematics

Toggle sidebar
bg1
MTH 416 Introduction to Algebraic Coding F10
Homework 5/Solutions
# 1. Let Cbe the binary linear code with check matrix
H=
100110000000
100101000000
110100100000
110100010000
011100001000
011100000100
001100000010
001100000001
(a) Compute the dimension kof C.
(b) Find a generating matrix Eof C.
(c) Compute the minimum distance δof C.
(d) Determine the largest positive integer rsuch that Cis r-error-correcting.
(e) Let σbe any MD-decision rule for C. Compute:
σ(110100001000), σ(110000111111) and σ(101111101111).
(h) Is Ccyclic?
(i) Is Cperfect?
(a) The last 8 columns of Hclearly span F8
2and so Col(H) = F8
2and so dim Col(H)8.
Hence dim C= dim Nul(H) = 12 −dim Col(H) = 12 −8 = 4.
(b) Since His in standard form (A, I8),
I4
A
is a generaing matrix for C. So we can
choose
1
pf3
pf4
pf5

Partial preview of the text

Download Solutions to Homework 5 in MTH 416: Introduction to Algebraic Coding - Prof. U. Meierfrank and more Study notes Mathematics in PDF only on Docsity!

MTH 416 Introduction to Algebraic Coding F

Homework 5/Solutions

1. Let C be the binary linear code with check matrix

H =

(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 ),

I 4

A

 (^) is a generaing matrix for C. So we can

choose

E =

(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

|C|

∑^ 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.

2. Let H be the check matrix for the Hamming code of length n = 2

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

  • 1 = (x + 1)(x + 1), x

2

  • x = x(x + 1)

and x

2

  • x + 1. So f = x

2

  • x + 1 is the only irreducible polynomial of degree 2. Since

f + h = x

3

  • x

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

  • x

3

  • x

4 )

 2 with i ∈ { 0 , 1 }.

So the factors are

1 , 1 + x, 1 + x + x

2

  • x

3

  • x

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 =

, C = F

5 2

g = 1 + x, E =

, C : words of even length 5 and even weight

g = 1 + x + x

2

  • x

3

  • x

4 , E =

, C = { 00000 , 11111 }

g = x

5 − 1 , E =

, C = { 00000 }

6. Determine a check matrix for the cyclic code corresponding to the ideal 〈1+x

2 +x

3 +x

4 +x

6 〉

in V

15 (x).

We compute

x

9

  • x

7

  • x

6 +x

3 +x

2

x

6

  • x

4

  • x

3

  • x

2

  • 1 x

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

  • x

7

  • x

6

  • x

3

  • x

2

    1. Hence the coefficients of h

(starting at the leading coefficient and ending at the constant term) are

So the check matrix for C is

H =

(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.