Solutions 3
Solutions 3
3. a) Calculating the syndromes gives s1 = β 11 and s3 = β 8 . As [s1 , s3 ] 6= [0, 0] the word w is not in the
code. Because s31 = β 33 = β 3 6= β 8 = s3 , at least two errors occurred. We compute the auxiliary/error
locator polynomial σA (z) = z 2 + s1 z + s−1 3 2 8 2 4 13
1 (s1 + s3 ) = z + β z + β , and find it has roots β and β .
4 13 1
So w(x) is corrected to w(x) + x + x , which corresponds to 111111111111111. Since a BCH code
can correct errors of weight two, we can conclude that w can be corrected to v.
b) Calculating the syndromes gives s1 = β 13 and s3 = 1. As [s1 , s3 ] 6= [0, 0] the word w is not in the
code. Becuase s31 = β 39 = β 9 6= 1 = s3 at least two errors occurred. The error locator polynomial
σA (z) = z 2 + β 13 z + β 9 has no roots in F so there are more than two errors, and under the given IMLD
we do not decode (but, e.g., ask for retransmission).
c) Calculating the syndromes gives s1 = β 11 and s3 = β 5 . As [s1 , s3 ] 6= [0, 0] the word w is not in the
code. Because s31 = β 33 = β 3 6= β 5 = s3 at least two errors occurred. The error locator polynomial
σA (z) = z 2 + β 11 z + 1 has roots β 7 and β 8 , so w(x) corrects to w(x) + x7 + x8 .
6. As d = 7, we can correct at most 3 errors, so we can suppose that the error locator polynomial has
degree 3: σA (z) = σ0 + σ1 z + σ2 z 2 + z 3 . In order to find the coeffients of σA , we have to compute
si = w(β i ) for m + 1 ≤ i ≤ m + δ − 1 (in our case m = −1 and δ = 7).
a) We do the 5-step algorithm 6.3.2 on p.137 of the book, to decode the word
Step 1: compute the syndromes si = w(β i ) for all roots β i of the generator polynomial. We find
s0 = α7 , s1 = α8 , s2 = α13 , s3 = α4 , s4 = α14 , s5 = α9 .
a1 = β, a2 = β 6 , a3 = β 8 .
resulting in
b1 = α 3 , b2 = 1, b3 = α.
that reduces by adding the first row times α2 to the third row and the first row times α to the second
row to 10
α11 α12 α13
10
α11 α12 α13
α α
α11 α12 α13 α14 → 0 0 0 0
0 0 0 0 0 0 0 0
Therefore the extended matrix has rank 1 and hence there was either only one error (if the root of
σA (z) is some power of β) or more than three (if this is not the case). The error locator polynomial has
degree 1: σA (z) = σ0 +z. We solve s0 σ0 = s1 , so σ0 = α and σA (z) = α+z. The (only) root of σA (z) is
β 1 , which means that we have an error in the position for x1 with magnitude b1 , where b1 is the solution
of the equation αm+1 b1 = sm+1 , so b1 = α10 . Therefore w corrects to αα10 α7 0α12 α3 α3 10000000.
d) As in c), we compute s0 = α, s1 = 1, s2 = α4 , s3 = α, s4 = 1 and s5 = α5 and get the system
α4 α4
α 1 σ0 α α 1 α
1 α4 α σ1 = 1 with the extended matrix 1 α4 α 1 .
α4 α 1 σ2 α5 α4 α 1 α5
Row reducing this matrix gives
α4 α4 α4
α 1 α α 1 α α 1 α
0 α4 + α14 α + α3 0 = 0 α9 α9 0 → 0 α9 α9 0 .
0 α + α3 1 + α7 α5 + α4 0 α9 α9 α8 0 0 0 α8
Therefore the system has no solutions, so there were too many errors and hence we cannot decode w.
7. As d = 5, we can correct at most 2 errors, so we can suppose that the error locator polynomial has
degree 2: σA (z) = σ0 + σ1 z + z 2 . In order to find E(x), the transform of the error e(x), and the
coeffients of σA , we have to compute si = w(β i ) for m + 1 ≤ i ≤ m + δ − 1 (in our case m = 0, δ = 5
and n = 15).
a) Similar to Problem 6, we compute s1 = 1, s2 = 0, s3 = α6 and s4 = α8 . For all 0 ≤ k < n,
Ek = σ1 Ek+1 + σ0 Ek+2 (∗ ∗ ∗)
with indices modulo n. We know Ek = e(β n−k ) = w(β n−k ) = sn−k for n − k equal to 1, 2, 3 or 4 so
E14 = s1 = 1
E13 = s2 = 0
E12 = s3 = α6
E11 = s4 = α8 .
Of the 15 equations in (∗ ∗ ∗) we know the three Ei involved for k = 11 and 12, giving
α8 = α 6 σ1
6
α = σ0
with the first equation for k = 11 and the second for k = 12. This is the (here very simple) system
6
1 0 σ0 α
= ,
0 α6 σ1 α8
We have not used the equations for k = 14 and 13 yet, but they must be satisfied as well (if they fail
there are too many errors). Here they are satisfied:
E14 = α2 E0 + α6 E1
E13 = α2 E14 + α6 E0
become
1 = α2 · α11 + α6 · 1
0 = α2 · 1 + α6 · α11
that reduces to
α11 α7 α9 α11 α7 α9
=
0 α + α3
9
α + α5
3
0 α α11
so σ1 = α11 /α = α10 and σ0 = (α9 + α7 · α10 )/α11 = 1, and hence σA (z) = 1 + α10 z + z 2 . By trying
all the possible powers of β, we find that σA (z) has the roots a1 = β and a2 = β 4 , hence b1 and b2 , the
magnitudes of the errors, satisfy the linear system
11
1 α11
1 1 b1 α 1
= with the extended matrix
α3 α12 b2 α7 α3 α12 α7
that reduces to
α11 α11
1 1 1 1
= .
0 α12 + α3 α + α7
14
0 α10 α
So b2 = α/α10 = α6 and b1 = α11 + α = α6 and hence the error is e(x) = αx + α6 x4 .
ii. We get the system
1 α2
14
α2 α14
σ0 α 1
= with the extended matrix
α2 α14 σ1 α8 α2 α14 α8
that reduces to
α2 α14 α2 α14
1 1
=
0 α14 + α4 α8 + α 0 α9 α10
so σ1 = α10 /α9 = α and σ0 = α14 + α2 · α = 1, and hence σA (z) = 1 + αz + z 2 . By trying all the
possible powers of β, we find that σA (β i ) 6= 0 for all i, which means that there were too many errors
and we cannot decode w2 (x).
iii. We get the system
1 α9
3
α9 α3
σ0 α 1
= with the extended matrix
α9 α3 σ1 α α9 α3 α
that reduces to
α9 α3 α9 α3
1 1
= .
0 α + α3
18 12
α +α 0 0 α13
Therefore the system has no solutions, so there were too many errors and hence we cannot decode w3 .
iv. We get the system
10
α4
13 10
α4 α13
α σ0 α α
= with the extended matrix
α4 α13 σ1 α7 α4 α13 α7
that reduces to
α10 α4 α13 α9 α3
1
= .
0 α + α13
13
α + α7
7
0 0 0
Therefore the extended matrix has rank 1 and hence there was only one error, so the error locator
polynomial has degree 1: σA (z) = σ0 + z. We solve s0 σ0 = s1 , so σ0 = α9 and σA (z) = α9 + z. The
(only) root of σA (z) is β 3 , which means that we have an error on the position for x3 . Computing its
magnitude from (∗∗) in the lectures we find b1 = s0 = α10 , so the error polynomial is e(x) = α10 x3 ,
and w(x) decodes to w(x) + α10 x3 .
b) We let σA (z) = σ0 + σ1 z + z 2 be the error locator polynomial of degree b d−1
2 c = 2. For any received
word w and for any 0 ≤ k < n = 5 we have the identity Ek = σ1 Ek+1 + σ0 Ek (with indices modulo n),
obtained from σA (z)E(z) ≡ 0 modulo 1 + z 5 . This gives the five equations
Ek = σ1 Ek+1 + σ0 Ek+2 ,
i.e.,
E2 = σ1 E3 + σ0 E4
E1 = σ1 E2 + σ0 E3
E0 = σ1 E1 + σ0 E2 (∗ ∗ ∗)
E4 = σ1 E0 + σ0 E1
E3 = σ1 E4 + σ0 E0 .