Docsity

Midterm Exam with Solutions - Error Correcting Codes | ENEE 626, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
ENEE626. Midterm examination, 10/27/2005 Instructor: A. Barg
Solutions of problems
Problem 1. (6pts, 2 each subproblem) Consider a ternary linear code Cwith the generator matrix
G="001120
100202
010112#
(1) Find a parity-check matrix of C
For instance,
H="122100
021010
110001#
(2) What are the parameters [n, k, d]of the code C?
[6,3,3] because, for instance, 200101 is a codeword and no two columns of Hare proportional.
(3) How many cosets does Chave? Name 10 coset leaders.
It has 3n−k= 27 cosets. Since d(C) = 3,all 12 vectors of weight 1 are coset leaders.
Problem 2. (14 pts, 2 each subproblem) Let f(x) = x4+x3+ 1 and let αbe a root of f.
(1) Is fa primitive polynomial?
Yes because we have shown in class that f∗(x) = x4+x+ 1 is primitive, so if αis a root of f
then α=γ−1where γis a root of f∗(x).
Alternatively, let αbe a root of f. If α6= 1, α36= 1,and α56= 1,then ord(α) = 15, but the first
two are trivial, and for the third, compute
α4=α3+ 1
α5=α3+α+ 1 6= 1.
For future use also compute α6=α3+α2+α+ 1, α7=α2+α+ 1, α8=α3+α2+α, α9=
α2+ 1, α10 =α3+α, α11 =α3+α2+ 1, α12 =α+ 1, α13 =α2+α, α14 =α3+α2, α15 = 1.
(2) Let F4={0,1, ω, ω2}be the field of 4elements. Is it a subfield of F16? Write out the
addition table of F4.
It is a subfield because 22−1|24−1.The nontrivial entries of the addition table are obtained
from the relation ω+ 1 = ω2.
(3) Is (1, ω)a basis of F16 over F4?
No because 1 = ω2ω, so 1 and ωare proportional.
(4) Let g(x) = x2+ωx + 1. Is it irreducible over F4?
g(x)has no zeros in F4so it does not have linear factors. Thus, it is irreducible.
(5) Let βbe a root of g(x). Find the order of β. Is it primitive?
Compute β3=ωβ2+β=ωβ +ω, β 4=ωβ2+ωβ =β+ω, β 5=β2+ωβ = 1.Thus
ord(β) = 5,so it is not primitive.
(6) Express βas a power of α. 1
pf2

Partial preview of the text

Download Midterm Exam with Solutions - Error Correcting Codes | ENEE 626 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ENEE626. Midterm examination, 10/27/2005 Instructor: A. Barg

Solutions of problems

Problem 1. (6pts, 2 each subproblem) Consider a ternary linear code C with the generator matrix

G =

[ 0 0 1 1 2 0

]

(1) Find a parity-check matrix of C For instance, H =

[ 1 2 2 1 0 0

]

(2) What are the parameters [n, k, d] of the code C? [6,3,3] because, for instance, 200101 is a codeword and no two columns of H are proportional. (3) How many cosets does C have? Name 10 coset leaders. It has 3 n−k^ = 27 cosets. Since d(C) = 3, all 12 vectors of weight 1 are coset leaders. Problem 2. (14 pts, 2 each subproblem) Let f (x) = x^4 + x^3 + 1 and let α be a root of f. (1) Is f a primitive polynomial? Yes because we have shown in class that f ∗(x) = x^4 + x + 1 is primitive, so if α is a root of f then α = γ−^1 where γ is a root of f ∗(x). Alternatively, let α be a root of f. If α 6 = 1, α^3 6 = 1, and α^5 6 = 1, then ord(α) = 15, but the first two are trivial, and for the third, compute α^4 = α^3 + 1 α^5 = α^3 + α + 1 6 = 1. For future use also compute α^6 = α^3 + α^2 + α + 1, α^7 = α^2 + α + 1, α^8 = α^3 + α^2 + α, α^9 = α^2 + 1, α^10 = α^3 + α, α^11 = α^3 + α^2 + 1, α^12 = α + 1, α^13 = α^2 + α, α^14 = α^3 + α^2 , α^15 = 1. (2) Let F 4 = { 0 , 1 , ω, ω^2 } be the field of 4 elements. Is it a subfield of F 16? Write out the addition table of F 4. It is a subfield because 22 − 1 | 24 − 1. The nontrivial entries of the addition table are obtained from the relation ω + 1 = ω^2. (3) Is (1, ω) a basis of F 16 over F 4? No because 1 = ω^2 ω, so 1 and ω are proportional. (4) Let g(x) = x^2 + ωx + 1. Is it irreducible over F 4? g(x) has no zeros in F 4 so it does not have linear factors. Thus, it is irreducible. (5) Let β be a root of g(x). Find the order of β. Is it primitive? Compute β^3 = ωβ^2 + β = ωβ + ω, β^4 = ωβ^2 + ωβ = β + ω, β^5 = β^2 + ωβ = 1. Thus ord(β) = 5, so it is not primitive. (6) Express β as a power of α. 1

β is an element of order 5, so we should look among α^3 , α^6 , α^9 , α^12. We claim that β = α^3 because g(α^3 ) = α^6 + ωα^3 + 1 = α^6 + α^8 + 1 = 0. (7) Find the representation of α^7 in the basis (1, β) over F 4. Since ω = α^5 = β + α + 1, we obtain α = ω + β + 1 = ω^2 + β. Next, α^7 = α^6 α = β^2 α = (ωβ + 1)(ω^2 + β) = ω^2 β + 1. Thus, the coordinates of α^7 are 1 , ω^2. Problem 3. (8 pts each, 2 each subproblem) The polynomial x^15 + 1 factors over F 2 as follows: x^15 + 1 = (x + 1)(x^2 + x + 1)(x^4 + x + 1)(x^4 + x^3 + 1)(x^4 + x^3 + x^2 + x + 1) Let C be a [15, k, d] binary cyclic code C of length 15 generated by g = (x + 1)(x^4 + x^3 + 1). (1) What are k and dBCH? dim(C) = n − deg g = 10. The problem does not state what was the polynomial used to generate F 16. Because of unique- ness of F 16 is does not matter for the solution, but for definiteness let us assume that the primitive polynomial was x^4 + x + 1 and denote its root by α. Then g(x) = m 0 m 7 , so the zeros of C are (0, 7 , 11 , 13 , 14) = (0, − 8 , − 4 , − 2 , −1). Among the exponents of the zeros of C we find − 2 , − 1 , 0 , so dBCH = 4. We could have also taken x^4 + x^3 + 1 as the polynomial used to construct the field. Denoting its root by β = α−^1 we would have found the zeros (0, 1 , 2 , 4 , 8), reciprocal to the ones found above. (2) Is c(x) = x^10 + x^9 + x^7 + x^3 a codeword in C? Is f (x) = c(x) + 1? c(1) = 0 and c(α^7 ) = α^10 + α^3 + α^4 + α^6 = α^6 (α^4 + 1) + α^4 + α^3 = α^7 + α^4 + α^3 = α^3 (α + 1) + α^4 + α^3 = 0 using α^4 = α + 1, so c ∈ C. The vector f is of odd weight, so f (1) 6 = 0, f 6 ∈ C. (3) What is the generator polynomial of C⊥? We have gC⊥ (x) = h∗(x), where h(x) = m 1 m 3 m 5 = (x^2 +x+1)(x^4 +x+1)(x^4 +x^3 +x^2 +x+1). Explicitly, gC⊥ (x) = m− 1 m− 3 m− 5 = m 3 m 5 m 7 = x^10 + x^9 + x^8 + x^6 + +x^5 + x^2 + x + 1. (4) What is dBCH (C⊥)? The zeros of C⊥^ have the exponents (− 1 , − 2 , − 4 , −8; − 3 , − 6 , − 9 , −12; − 5 , −10), so the BCH bound gives dBCH (C⊥) = 7.