Docsity

Solutions to Second Midterm Exam - Coding Theory | ECE 556, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
University of Illinois Fall 2004
ECE 556: Solutions to Second MidSemester Exam
1. (a) The conjugacy classes modulo 63 are listed on page 145 of the text (or can be easily
obtained by direct computation). We readily get that for t= 1,2,3,4,5, the generator
polynomials of the t-error-correcting BCH codes have degrees 6, 12, 18, 24, and 27
respectively, giving rates of 57/63 = 19/21, 51/63 = 17/21, 45/63 = 5/7, 39/63 =
13/21, and 36/63 = 4/7 respectively.
(b) Let αdenote a primitive element of GF(33). Then,
•αhas conjugates α, α3, α9
•α2has conjugates α2, α6, α18
•α4has conjugates α4, α12, α10
•α5has conjugates α5, α15, α19
•α7has conjugates α7, α21, α11
•α8has conjugates α8, α24, α20
From this, we get that for 1 ≤t≤5, the narrow-sense t-error correcting BCH codes have
rates 20/26, 17/26, 14/26, 8/26, 8/26 respectively. Note that the single-error-correcting
code has minimum distance at least 4 by the BCH bound, while the 4-error-correcting
code (and the 5-error-correcting code) is actually a 6-error-correcting code!
If we consider wide-sense BCH codes where the starting element of the succession of
powers of αdoes not start at 1, we can get better rates in some cases. In particular, if
the sequence starts with α0= 1, then for 1 ≤t≤5, the wide-sense t-error correcting
BCH codes with root set α0, α1, . . . , α2t−1have rates 22/26, 19/26, 13/26, 10/26, and
7/26 respectively. Note that for t= 3, the wide-sense BCH code has lower rate but
higher minimum distance (at least 8) than the narrow-sense BCH code. Similarly, for
t= 5, the wide-sense BCH code has lower rate but larger minimum distance (at least
14).
2. (a) i. ord(β) = ord(α)/gcd(ord(α),1+2m/2) = (2m−1)/gcd(2m−1,1+2m/2) = 2m/2−1.
Thus, βis an element in a field of characteristic 2, and enjoys the property β2m/2=β.
Hence, β∈GF(2m/2) and is also a primitive element of the subfield since it has order
2m/2−1. Note that the minimal polynomial of βhas degree m/2.
ii. Mα(x) has mroots α, α2, α22, . . . , α2m−1while Mβ(x) has m/2 roots
α2m/2+1, α(2m/2+1)·2, . . . , α(2m/2+1)·2m/2−1. Consequently, the highest power of αthat
is a root of h(x) = Mα(x)Mβ(x) is (2m/2+ 1) ·2m/2−1= 2m−1+ 2m/2−1. Hence, the
2m−1−2m/2−1−1 consecutive powers of α:α2m−1+2m/2−1+1,α2m−1+2m/2−1+2, .. . ,
α2m−1+2m/2−1+(2m−1
−2m/2−1
−1) =α2m−1= 1 are all roots of g(x), and the minimum
distance is at least 2m−1−2m/2−1.
Note: this (2m−1,3m/2) code has codewords of period 2m−1 and also of period
2m/2−1. The 2m/2cycle representatives of period 2m−1 are called the small set of
Kasami sequences and are important for code-division-multiple-access (CDMA) ap-
plications. Regarded as sequences over the alphabet {+1,−1}, they have maximum
periodic cross-correlation magnitude 2m/2+ 1 ≈√nwhich is nearly optimal (it is
asymptotically optimal), and smaller by a factor of 2 than the corresponding value
for Gold sequences which are also used in CDMA applications. In Problem 1(d) of
Problem Set 7, we considered Gold sequences (for the case modd).
(b) ord(αd) = ord(α)/gcd(ord(α), d) = ds/gcd(ds, d) = s. Thus, αdis a root of xs−1. In
fact, the sroots of this polynomial are αd, α2d, . . . , α(s−1)d. Now, consider the polynomial
(xn−1)/(xs−1) = xs(d−1) +xs(d−2) +·· · +xs+ 1. Its roots are all those powers of
pf2

Partial preview of the text

Download Solutions to Second Midterm Exam - Coding Theory | ECE 556 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

University of Illinois Fall 2004

ECE 556: Solutions to Second MidSemester Exam

  1. (a) The conjugacy classes modulo 63 are listed on page 145 of the text (or can be easily obtained by direct computation). We readily get that for t = 1, 2 , 3 , 4 , 5, the generator polynomials of the t-error-correcting BCH codes have degrees 6, 12, 18, 24, and 27 respectively, giving rates of 57/63 = 19/21, 51/63 = 17/21, 45/63 = 5/7, 39/63 = 13/21, and 36/63 = 4/7 respectively. (b) Let α denote a primitive element of GF(3^3 ). Then,
  • α has conjugates α, α^3 , α^9
  • α^2 has conjugates α^2 , α^6 , α^18
  • α^4 has conjugates α^4 , α^12 , α^10
  • α^5 has conjugates α^5 , α^15 , α^19
  • α^7 has conjugates α^7 , α^21 , α^11
  • α^8 has conjugates α^8 , α^24 , α^20 From this, we get that for 1 ≤ t ≤ 5, the narrow-sense t-error correcting BCH codes have rates 20/26, 17/26, 14/26, 8/26, 8/26 respectively. Note that the single-error-correcting code has minimum distance at least 4 by the BCH bound, while the 4-error-correcting code (and the 5-error-correcting code) is actually a 6-error-correcting code! If we consider wide-sense BCH codes where the starting element of the succession of powers of α does not start at 1, we can get better rates in some cases. In particular, if the sequence starts with α^0 = 1, then for 1 ≤ t ≤ 5, the wide-sense t-error correcting BCH codes with root set α^0 , α^1 ,... , α^2 t−^1 have rates 22/26, 19/26, 13/26, 10/26, and 7/26 respectively. Note that for t = 3, the wide-sense BCH code has lower rate but higher minimum distance (at least 8) than the narrow-sense BCH code. Similarly, for t = 5, the wide-sense BCH code has lower rate but larger minimum distance (at least 14).
  1. (a) i. ord(β) = ord(α)/gcd(ord(α), 1 + 2m/^2 ) = (2m^ − 1)/gcd(2m^ − 1 , 1 + 2m/^2 ) = 2m/^2 − 1. Thus, β is an element in a field of characteristic 2, and enjoys the property β^2 m/ 2 = β. Hence, β ∈ GF(2m/^2 ) and is also a primitive element of the subfield since it has order 2 m/^2 − 1. Note that the minimal polynomial of β has degree m/2. ii. Mα(x) has m roots α, α^2 , α^2

2 ,... , α^2

m− 1 while Mβ (x) has m/2 roots α^2

m/ (^2) + , α(

m/ (^2) +1)· 2 ,... , α(

m/ (^2) +1)· 2 m/ 2 − 1

. Consequently, the highest power of α that is a root of h(x) = Mα(x)Mβ (x) is (2m/^2 + 1) · 2 m/^2 −^1 = 2m−^1 + 2m/^2 −^1. Hence, the 2 m−^1 − 2 m/^2 −^1 − 1 consecutive powers of α: α^2 m− (^1) +2m/ 2 − (^1) + , α^2 m− (^1) +2m/ 2 − (^1) + ,... , α^2

m− (^1) +2m/ 2 − (^1) +(2m− (^1) − 2 m/ 2 − (^1) −1) = α^2

m− 1 = 1 are all roots of g(x), and the minimum distance is at least 2m−^1 − 2 m/^2 −^1. Note: this (2m^ − 1 , 3 m/2) code has codewords of period 2m^ − 1 and also of period 2 m/^2 − 1. The 2m/^2 cycle representatives of period 2m^ − 1 are called the small set of Kasami sequences and are important for code-division-multiple-access (CDMA) ap- plications. Regarded as sequences over the alphabet {+1, − 1 }, they have maximum periodic cross-correlation magnitude 2m/^2 + 1 ≈

n which is nearly optimal (it is asymptotically optimal), and smaller by a factor of 2 than the corresponding value for Gold sequences which are also used in CDMA applications. In Problem 1(d) of Problem Set 7, we considered Gold sequences (for the case m odd). (b) ord(αd) = ord(α)/gcd(ord(α), d) = ds/gcd(ds, d) = s. Thus, αd^ is a root of xs^ − 1. In fact, the s roots of this polynomial are αd, α^2 d,... , α(s−1)d. Now, consider the polynomial (xn^ − 1)/(xs^ − 1) = xs(d−1)^ + xs(d−2)^ + · · · + xs^ + 1. Its roots are all those powers of

α that are not roots of xs^ − 1. Therefore, α, α^2 ,... , αd−^1 are roots of this polynomial, that is, the polynomial is a codeword (of weight d). Hence the minimum distance of this code equals the BCH bound.

  1. S(z) = S 1 + S 2 z + S 3 z^2 + S 4 z^3 + S 5 z^4 + S 6 z^5 = α^12 + z + α^14 z^2 + α^10 z^3 + 0z^4 + α^12 z^5.

(a) The Berlekamp-Massey decoder proceeds as follows.

r ∆r B(r)(z) λ(r)(z) Lr δr 0 1 1 0 0 1 α^12 α^3 1 + α^12 z 1 1 2 α^7 α^3 z 1 + α^3 z 1 0 3 1 1 + α^3 z 1 + α^3 z + α^3 z^2 2 4 α^7 z + α^3 z^2 1 + α^4 z + α^12 z^2 2 5 α^10 α^5 + α^9 z + α^2 z^2 1 + α^4 z + α^3 z^2 + α^13 z^3 3 6 α^13 α^5 z + α^9 z^2 + α^2 z^3 1 + α^7 z + α^4 z^2 + α^6 z^3 3

(b) The Euclidean decoder proceeds as follows.

i r(i)(z) q(i)(z) t(i)(z) 0 z^6 1 α^12 z^5 + 0z^4 + α^10 z^3 + α^14 z^2 + z + α^12 α^3 z 1 2 α^13 z^4 + α^2 z^3 + α^3 z^2 + z α^14 z + α^3 α^3 z 3 α^8 z^3 + α^6 z^2 + α^14 z + α^12 α^5 z + α α^2 z^2 + α^6 z + 1 4 α^2 z + α^13 α^7 z^3 + α^5 z^2 + α^8 z + α

Normalizing so that the error-locator polynomial has constant term 1, we get λ(z) = t(4)(z)/t(4)(0) = α^6 z^3 + α^4 z^2 + α^7 z + 1 and ω(z) = r(4)(z)/t(4)(0) = αz + α^12. As has been pointed out repeatedly, such normalization is not necessary in practice because the scaling factors cancel out in the Forney formula. (c) Both algorithms produce the same error locator polynomial.