Docsity

Decoding Techniques for Reed-Solomon Error Correction: Problem Set 4 Solutions, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
University of Illinois Fall 2005
ECE 556/CS 577/MATH 579: Solutions to Problem Set 4
1. Number the positions from 0 to 15, i.e. the number is x1+ 2x2+ 4x3+ 8x4. Now, let
f(x) = a1,2x1x2+a1,3x1x3+a1,4x1x4+a2,3x2x3+a2,4x2x4+a3,4x3x4
+a1x1+a2x2+a3x3+a4x4+a0
denote the polynomial whose truth table is the transmitted codeword c= [c0, c1, . . . , c15].We are given
that r= [r0, r1, . . . , r15] = [0001011001100011] is the received codeword.
(a) To decode a1,2, we consider the polynomial f(x)x3x4=a1,2x1x2x3x4+. . . and note that this
polynomial contains the term x1x2x3x4if and only if a1,2= 1. Now, the truth table of a polynomial
has odd weight if and only if the polynomial contains the term x1x2x3x4, and thus we can
determine the value of a1,2by looking at the weight of the truth table of f(x)x3x4. It is easy to
see that the truth table of f(x)x3x4is just [0000 0000 0000 c12, c13, c14 , c15], and thus we have
that a1,2=c12 +c13 +c14 +c15. Of course, we don’t know the ci’s, but we do know the ri’s and
thus we get an estimate of a1,2as ˆa1,2=r12 +r13 +r14 +r15. Note that the estimate itself is
correct if there have been an even number of errors in these four bits. Using the same argument
with f(x)x3x4,f(x)x3x4, and f(x)x3x4, we get four estimates of a1,2as shown below. To decode
a1,3, we look at f(x)x2x4and its variants, etc. Thus, we have
ˆa1,2=
r12 +r13 +r14 +r15
r8+r9+r10 +r11
r4+r5+r6+r7
r0+r1+r2+r3
ˆa1,3=
r10 +r11 +r14 +r15
r8+r9+r12 +r13
r2+r3+r6+r7
r0+r1+r4+r5
and so on. Since we have four estimates, a majority are correct if at most one error has occurred.
With 2 errors, some sets of estimates will still have a strict majority, but at least one set of
estimates will have a tie vote.
For the given r, we easily get ˆa1,2= 0, ˆa1,2= 0,ˆa1,3= 1, ˆa1,4= 1, ˆa2,3= 0, ˆa2,4= 0, ˆa3,4= 0.
Having decoded the second-degree terms, we can subtract off the truth table of the polynomial
ˆa1,2x1x2+ ˆa1,3x1x3+ ˆa1,4x1x4+ ˆa2,3x2x3+ ˆa2,4x2x4+ ˆa3,4x3x4=x1x3+x1x4from rleaving the
truth table (with some errors) of a degree one polynomial g(x). We can now look at g(x)x2x3x4x5
to get eight estimates of a1with each estimate being the sum of two bits. Once again, ma jority
decoding gives ˆa1= 0,ˆa2= 1,ˆa3= ˆa4= 0. Subtracting off the truth table of the linear terms
leaves [0010 0000 0000 0000] which gives 16 estimates of a0.
The final result is that the most likely transmitted codeword is [0011011001100011], the truth
table of x1x3+x1x4+x2. Note that the most likely error pattern is a single bit error is in position
2.
(b)H[0001 0110 0110 0011]T= [10100]Tand thus the syndrome matches the 2-th column of H. Hence,
the most likely transmitted codeword is [0011011001100011], the same as in part (a).
(c) The Reed decoding algorithm creates 2m−restimates of each information bit that is a coefficient
of term of degree r, where each estimate is the sum of 2rreceived bits. On an erasures-only
channel, if there are no more than 2m−r−1 = dmin −1 errors, at least one estimate will have no
erased symbols in it, and this erasure-free estimate gives the information bit. Having determined
all the degree-rcoefficients, the corresponding truth table is subtracted off (erasures remain as
erasures) and the process continues with the degree-(r−1) coefficients. There are now twice as
many estimates, and so more than half will be erasure-free, etc.
For r= [???1 0110 0110 0011], we can use just one estimate (with no erasures in it) to estimate
each data bit. Thus,
ˆa1,2=r12 +r13 +r14 +r15 = 0, ˆa1,3=r10 +r11 +r14 +r15 = 1,
ˆa1,4=r6+r7+r14 +r15 = 1, ˆa2,3=r9+r11 +r13 +r15 = 0,
ˆa2,4=r5+r7+r13 +r15 = 0, ˆa3,4=r3+r7+r11 +r15 = 0.
We subtract off the second degree terms, and then use ˆa1=r14 +r15 = 0, ˆa2=r13 +r15 = 1 etc.
and so on and so forth to get the same polynomial and same codeword as before.
pf2

Partial preview of the text

Download Decoding Techniques for Reed-Solomon Error Correction: Problem Set 4 Solutions and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

University of Illinois Fall 2005

ECE 556/CS 577/MATH 579: Solutions to Problem Set 4

  1. Number the positions from 0 to 15, i.e. the number is x 1 + 2x 2 + 4x 3 + 8x 4. Now, let

f (x) = a 1 , 2 x 1 x 2 + a 1 , 3 x 1 x 3 + a 1 , 4 x 1 x 4 + a 2 , 3 x 2 x 3 + a 2 , 4 x 2 x 4 + a 3 , 4 x 3 x 4 +a 1 x 1 + a 2 x 2 + a 3 x 3 + a 4 x 4 + a 0

denote the polynomial whose truth table is the transmitted codeword c = [c 0 , c 1 ,... , c 15 ]. We are given that r = [r 0 , r 1 ,... , r 15 ] = [0001011001100011] is the received codeword.

(a) To decode a 1 , 2 , we consider the polynomial f (x)x 3 x 4 = a 1 , 2 x 1 x 2 x 3 x 4 +... and note that this polynomial contains the term x 1 x 2 x 3 x 4 if and only if a 1 , 2 = 1. Now, the truth table of a polynomial has odd weight if and only if the polynomial contains the term x 1 x 2 x 3 x 4 , and thus we can determine the value of a 1 , 2 by looking at the weight of the truth table of f (x)x 3 x 4. It is easy to see that the truth table of f (x)x 3 x 4 is just [0000 0000 0000 c 12 , c 13 , c 14 , c 15 ], and thus we have that a 1 , 2 = c 12 + c 13 + c 14 + c 15. Of course, we don’t know the ci’s, but we do know the ri’s and thus we get an estimate of a 1 , 2 as ˆa 1 , 2 = r 12 + r 13 + r 14 + r 15. Note that the estimate itself is correct if there have been an even number of errors in these four bits. Using the same argument with f (x)x 3 x 4 , f (x)x 3 x 4 , and f (x)x 3 x 4 , we get four estimates of a 1 , 2 as shown below. To decode a 1 , 3 , we look at f (x)x 2 x 4 and its variants, etc. Thus, we have

ˆa 1 , 2 =

r 12 + r 13 + r 14 + r 15 r 8 + r 9 + r 10 + r 11 r 4 + r 5 + r 6 + r 7 r 0 + r 1 + r 2 + r 3

ˆa 1 , 3 =

r 10 + r 11 + r 14 + r 15 r 8 + r 9 + r 12 + r 13 r 2 + r 3 + r 6 + r 7 r 0 + r 1 + r 4 + r 5

and so on. Since we have four estimates, a majority are correct if at most one error has occurred. With 2 errors, some sets of estimates will still have a strict majority, but at least one set of estimates will have a tie vote. For the given r, we easily get ˆa 1 , 2 = 0, ˆa 1 , 2 = 0,ˆa 1 , 3 = 1, ˆa 1 , 4 = 1, ˆa 2 , 3 = 0, ˆa 2 , 4 = 0, ˆa 3 , 4 = 0. Having decoded the second-degree terms, we can subtract off the truth table of the polynomial ˆa 1 , 2 x 1 x 2 + ˆa 1 , 3 x 1 x 3 + ˆa 1 , 4 x 1 x 4 + ˆa 2 , 3 x 2 x 3 + ˆa 2 , 4 x 2 x 4 + ˆa 3 , 4 x 3 x 4 = x 1 x 3 + x 1 x 4 from r leaving the truth table (with some errors) of a degree one polynomial g(x). We can now look at g(x)x 2 x 3 x 4 x 5 to get eight estimates of a 1 with each estimate being the sum of two bits. Once again, majority decoding gives ˆa 1 = 0, ˆa 2 = 1, ˆa 3 = ˆa 4 = 0. Subtracting off the truth table of the linear terms leaves [0010 0000 0000 0000] which gives 16 estimates of a 0. The final result is that the most likely transmitted codeword is [0011011001100011], the truth table of x 1 x 3 + x 1 x 4 + x 2. Note that the most likely error pattern is a single bit error is in position

(b) H[0001 0110 0110 0011]T^ = [10100]T^ and thus the syndrome matches the 2-th column of H. Hence, the most likely transmitted codeword is [0011011001100011], the same as in part (a). (c) The Reed decoding algorithm creates 2m−r^ estimates of each information bit that is a coefficient of term of degree r, where each estimate is the sum of 2r^ received bits. On an erasures-only channel, if there are no more than 2m−r^ − 1 = dmin − 1 errors, at least one estimate will have no erased symbols in it, and this erasure-free estimate gives the information bit. Having determined all the degree-r coefficients, the corresponding truth table is subtracted off (erasures remain as erasures) and the process continues with the degree-(r − 1) coefficients. There are now twice as many estimates, and so more than half will be erasure-free, etc. For r = [???1 0110 0110 0011], we can use just one estimate (with no erasures in it) to estimate each data bit. Thus, ˆa 1 , 2 = r 12 + r 13 + r 14 + r 15 = 0, ˆa 1 , 3 = r 10 + r 11 + r 14 + r 15 = 1, ˆa 1 , 4 = r 6 + r 7 + r 14 + r 15 = 1, ˆa 2 , 3 = r 9 + r 11 + r 13 + r 15 = 0, ˆa 2 , 4 = r 5 + r 7 + r 13 + r 15 = 0, ˆa 3 , 4 = r 3 + r 7 + r 11 + r 15 = 0. We subtract off the second degree terms, and then use ˆa 1 = r 14 + r 15 = 0, ˆa 2 = r 13 + r 15 = 1 etc. and so on and so forth to get the same polynomial and same codeword as before.

  1. (a) For m = 1, the code is the truth tables of the four Boolean functions 0, 1 , x 1 , x 1 + 1 and hence

A(1)(z) = 1 + 2z + z^2.

(b) According to the Plotkin representation of the first-order Reed-Muller code of length 2m, every codeword in the code is of one of two forms: [v, v] or [v, v ] where v is a codeword in the first-order Reed-Muller code of length 2m−^1. The weight of the first kind of codeword is twice the weight of v and the set of codewords of this type has weight enumerator A(m−1)(z^2 ). On the other hand, the second kind of codeword has weight 2m−^1 and thus the set of codewords of this type has weight enumerator A(m−1)(1)z^2

m− 1

. Since A(m−1)(1) = 2m, we get that

A(m)(z) = A(m−1)(z^2 ) + 2mz^2

m− 1 .

(c) This is a simple exercise in mathematical induction. A(m)(z) = 1 + (2m+1^ − 2)z^2

m− 1

  • z^2

m holds for m = 1. If the result holds for m, then we have that

A(m+1)(z) = A(m)(z^2 ) + 2m+1z^2

m ,

= 1 + (2m+1^ − 2)z^2

m

  • z^2

m+

  • 2m+1z^2

m ,

= 1 + (2(m+1)+1^ − 2)z^2

(m+1)− 1

  • z^2

m+ ,

and so the result holds for m + 1 also.

  1. (a) Let γ be a primitive element in GF(13). Then, (i) (α, β) = (γ, γ^11 ), (ii) (α, β) = (γ, γ^5 ), (iii) (α, β) = (γ, γ^7 ), (iv) (α, β) = (γ, γ), (v) (α, β) = (γ^5 , γ^2 ) (vi) (α, β) = (γ, γ^2 ) will work. (the answers are not unique). (b) (αβ)(q−1)/^2 = α(q−1)/^2 β(q−1)/^2 = (−1)(−1) = 1, and hence ord(αβ) = (q − 1)/2 or a divisor thereof. Hence αβ cannot be a primitive element of GF(q), q odd. (c) Take α = β where α is a primitive element of GF (2m). Then, ord(α^2 ) = ord(α)/gcd( 2 m^ − 1 , 2 ) = ( 2 m^ − 1 )/gcd( 2 m^ − 1 , 2 ) = 2 m^ − 1.

  2. a, b, c denote elements of orders 5, 6, and 8 respectively in a finite field of characteristic p.

(a) For c to be a member of GF(p), ord(c) = 8 must divide p − 1. Hence, p = 17. Note that the smallest field containing an element of order 8 is GF(3^2 ). (b) Yes, since 5 and 6 are relatively prime to 17, GF(17m) contains elements of order 5 and 6 also, for some m. The smallest value is m = 4. (c) Since ord(b^2 ) = 3, ord(ab^2 c) = 5 × 3 × 8 = 120. The smallest prime p such that p − 1 is divisible by 120 is 241. (d) Since p must not be a multiple of 5, or 6, or 8, the smallest value of p is 7. GF(7^4 ) contains an element of order 120. (e) GF(11^2 ) contains an element of order 120.