Docsity

Coset Decoding and the Golay Code, Assignments of Algebra

Toggle sidebar
bg1
2.4. Coset Decoding i
2.4 Coset Decoding
To apply MLD decoding, what we must do, given a received word w, is search through all
the codewords to find the codeword cclosest to w. This can be a slow and tedious process.
There are more efficient methods, assuming the code is built in a manner similar to that of
the Hamming code. We will assume that we have a code Cof length nsuch that there is
an m×nmatrix Hwith C={v∈Zn
2:Hv =0}. We will fix the symbols Cand Hin this
section.
Definition 2.1. Let wbe a word. Then the coset C+wof wis the set {c+w:c∈C}.
We point out two facts about C. First, by the definition of C, the zero vector 0is an
element of the code, since H0=0. From this we see that w∈C+w, since w=0+w.
Second, if u, v ∈C, then we have u+v∈C, since H(u+v) = Hu +Hv =0+0=0; we
are using Hu =H v =0since u, v ∈C. Therefore, u+v∈Csince H(u+v) = 0.
We now see an important property of cosets: we claim that two cosets are either equal
or are disjoint. To do this we show that they are equivalence classes for an appropriate
equivalence relation. To define this relation, we say that two words xand yare related if
x+y∈C. We write x∼ywhen this occurs. To see that this is an equivalence relation, we
must verify the three properties. To show reflexivity, we have x∼xsince x+x=0, which
is an element of C. Next, suppose that x∼y. We must show that y∼x. The assumption
that x∼ymeans x+y∈C. However, x+y=y+x; therefore, since y+x∈C, we have
y∼x. Finally, to see transitivity, suppose that x∼yand y∼z. Then x+y∈Cand
y+z∈C. If we add these codewords, we will get a codeword, by the previous paragraph.
However,
(x+y)+(y+z) = x+ (y+y) + z=x+0+z=x+z,
by the properties of vector addition. since the result x+zis an element of C, we have x∼z,
as desired. So, we have an equivalence relation. The equivalence class of a word xis
{y:y∼x}={y:x+y∈C}={y:y=c+xfor some c∈C}
=C+x.
The third equality follows since if x+y=c, then y=c+x.
Proposition 2.2. If xand yare words, then C+x=C+yif and only if Hx =Hy.
Proof. Suppose first that C+x=C+y. Then x∼y, so x+y∈C. By definition of C,
we have H(x+y) = 0. Expanding the left hand side, we get H x +Hy =0, so Hx =H y.
Conversely, suppose that Hx =Hy. Then Hx +H y =0, or H(x+y) = 0. This last
equation says x+y∈C, and so x∼y. From this relation between xand y, we obtain
C+x=C+y, since these are the equivalence classes of xand y, and these classes are equal
since xand yare related.
pf3
pf4
pf5

Partial preview of the text

Download Coset Decoding and the Golay Code and more Assignments Algebra in PDF only on Docsity!

2.4. Coset Decoding i

2.4 Coset Decoding

To apply MLD decoding, what we must do, given a received word w, is search through all the codewords to find the codeword c closest to w. This can be a slow and tedious process. There are more efficient methods, assuming the code is built in a manner similar to that of the Hamming code. We will assume that we have a code C of length n such that there is an m × n matrix H with C = {v ∈ Zn 2 : Hv = 0 }. We will fix the symbols C and H in this section.

Definition 2.1. Let w be a word. Then the coset C + w of w is the set {c + w : c ∈ C}.

We point out two facts about C. First, by the definition of C, the zero vector 0 is an element of the code, since H 0 = 0. From this we see that w ∈ C + w, since w = 0 + w. Second, if u, v ∈ C, then we have u + v ∈ C, since H(u + v) = Hu + Hv = 0 + 0 = 0 ; we are using Hu = Hv = 0 since u, v ∈ C. Therefore, u + v ∈ C since H(u + v) = 0. We now see an important property of cosets: we claim that two cosets are either equal or are disjoint. To do this we show that they are equivalence classes for an appropriate equivalence relation. To define this relation, we say that two words x and y are related if x + y ∈ C. We write x ∼ y when this occurs. To see that this is an equivalence relation, we must verify the three properties. To show reflexivity, we have x ∼ x since x + x = 0 , which is an element of C. Next, suppose that x ∼ y. We must show that y ∼ x. The assumption that x ∼ y means x + y ∈ C. However, x + y = y + x; therefore, since y + x ∈ C, we have y ∼ x. Finally, to see transitivity, suppose that x ∼ y and y ∼ z. Then x + y ∈ C and y + z ∈ C. If we add these codewords, we will get a codeword, by the previous paragraph. However, (x + y) + (y + z) = x + (y + y) + z = x + 0 + z = x + z,

by the properties of vector addition. since the result x + z is an element of C, we have x ∼ z, as desired. So, we have an equivalence relation. The equivalence class of a word x is

{y : y ∼ x} = {y : x + y ∈ C} = {y : y = c + x for some c ∈ C} = C + x.

The third equality follows since if x + y = c, then y = c + x.

Proposition 2.2. If x and y are words, then C + x = C + y if and only if Hx = Hy.

Proof. Suppose first that C + x = C + y. Then x ∼ y, so x + y ∈ C. By definition of C, we have H(x + y) = 0. Expanding the left hand side, we get Hx + Hy = 0 , so Hx = Hy. Conversely, suppose that Hx = Hy. Then Hx + Hy = 0 , or H(x + y) = 0. This last equation says x + y ∈ C, and so x ∼ y. From this relation between x and y, we obtain C + x = C + y, since these are the equivalence classes of x and y, and these classes are equal since x and y are related.

ii

Example 2.3. Let

H =

A short calculation shows that C = { 0000 , 1100 , 0011 , 1111 }. The cosets of C are then seen to be

C + 0000 = { 0000 , 1100 , 0011 , 1111 } ,

C + 1000 = { 1000 , 0100 , 1011 , 0111 } ,

C + 0010 = { 0010 , 1110 , 0001 , 1101 } ,

C + 1010 = { 1010 , 0110 , 1001 , 0101 }.

We also point out that C = C + 0000 = C + 1100 = C + 0011 = C + 1111; in other words, C = C + v for any v ∈ C. Each coset in this example is equal to the coset of four vectors, namely the four vectors in the coset.

For some coding theory terminology, we call Hx the syndrome of x. We can make use of syndromes to more quickly decode. Suppose that a word w is received. If c is the closest codeword to w, let e = c + w. Then e is the error word, in that e has a digit equal to 1 exactly when that digit was transmitted incorrectly in c. Note that e is the word of smallest possible weight of the form v + w with v ∈ C since wt(e) = D(c, w). If we can determine e, then we can determine c by c = e + w. To see how to do this, if we take the equation e = c + w and multiply both sides by H, we get

He = H(c + w) = Hc + Hw = 0 + Hw = Hw.

We then can compute He by computing Hw. The proposition says that C + e = C + w; in other words, e ∈ C + w. Since c is the closest codeword to w, the word e is then the word of least weight in the coset C + w. We then find e by searching the words in C + w and finding the word of least weight; such an element is called a coset leader. To do decoding with cosets, we compute, for each coset, the coset leader.

Example 2.4. Let

H =

Then C = { 00000 , 11100 , 00111 , 11011 }. We see that the distance of C is 3, so C is 1-error

iv

whose left half is the 12 × 12 identity matrix and whose right half is

B =

This length 24 code was used by the Voyager spacecraft to photograph Jupiter and Saturn between 1979 and 1981. The photographs were made using 4096 colors. Each color was encoded with a codeword from the Golay code. By solving the matrix equation Hx = 0 , we can see that there are indeed 4096 codewords. Furthermore, a tedious check of all codewords shows that the distance of the Golay code is d = 8. Thus, the code can correct b(8 − 1)/ 3 c = 3 errors. Thus, up to three out of the 24 digits of a codeword can be corrupted and still the original information will be retrievable. Because this code can correct more than 1 error, any decoding procedure is bound to be more complicated than that for the Hamming code. We give here a decoding procedure. It is based on some simple facts about the matrix B. Its validity is left to a series of homework problems. To make it more convenient to work with with this code, we write a word u = (u 1 , u 2 ), where u 1 consists of the first 12 digits and u 2 the remaining 12. Since H = [I : B], we see that u ∈ C if and only if Hu = 0 , which is true if and only if u 1 + Bu 2 = 0. If we have a received word w, we perform the following steps to decode w. We write v for the codeword to be determined from w. Finally, we write ei for the 12-tuple with i-entry 1 and all other entries 0, and bi for the i-th row of bi.

  1. Compute s = Hw. If s = 0 , then w is a codeword.
  2. If 1 ≤ wt(s) ≤ 3, then v = w + (s, 0 ).
  3. If wt(s) > 3 and wt(s + bi) ≤ 2 for some i, then v = w + (s + bi, ei).
  4. If we haven’t yet determined v, then compute Bs.
  5. If 1 ≤ wt(Bs) ≤ 3, then v = w + (0, Bs).
  6. If wt(Bs) > 3 and wt(Bs + bi) ≤ 2 for some i, then v = w + (ei, Bs + bi).

2.5. The Golay Code v

  1. If we haven’t determined v, then w cannot be decoded.

Example 2.5. Suppose that w = 001001001101101000101000 is received. We calculate s = Hw, and we get s = 110001001001. We see that wt(s) = 5. We see that wt(s + b 5 ) = 2. Therefore, by Step 3, we decode w as v = w+(s+b 5 , e 5 ) = w+(000000010010, 000010000000) =