




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Objective: To examine basic attributes of Reed-Muller codes
Reading:
This chapter gets us closest to the concepts of digital design for these digital codes that we will get. We will be looking at functions of Boolean variables. As we know, we can represent these using truth tables. We will m represent the number of inputs. We will list the input variables with vm being the most significant bit. Example 1
ν 4 = 0000000011111111 ν 3 = 0000111100001111 ν 2 = 0011001100110011 ν 1 = 0101010101010101 f 1 = 0110100101101001 f 2 = 1010101110100100
Without ambiguity, we can represent the functions simply using the bit strings as
f 1 = (0110100101101001)
f 2 = (1010101110100100)
2 The set of Boolean functions, of which there are 2^2
m , forms a vector space V 2 m^ over GF (2). We will interchange a functional and vector notation. Here are some examples of important functions:
1 ↔ 1 = 1111111111111111 v 1 ↔ v 1 = 0101010101010101 v 2 ↔ v 2 = 0011001100110011 v 3 ↔ v 3 = 0000111100001111 v 4 ↔ v 4 = 0000000011111111 v 1 v 2 ↔ v 1 v 2 = 0001000100010001 v 1 v 2 v 3 v 4 ↔ v 1 v 2 v 3 v 4 = 0000000000000001
In the RM codes, we will be interested in monomial Boolean functions of the sort (in functional notation) v 1 v 2 v 3 or v 2 v 4 or v 1 v 2 v 3 v 4. We will let M denote the set of all monomial functions:
M = { 1 , v 1 , v 2 ,... , vm, v 1 v 2 ,... , vm− 1 vm, v 1 v 2 v 3 ,... , v 1 v 2 · · · vm}.
These functions are linearly independent, as are their vector representations.
Definition 1 The binary Reed-Muller code R(r, m) of order r and length 2m consists of all linear combinations of vectors f associated with Boolean functions f that are monomials of degree ≤ r in m variables. 2
Example 2 The R(1, 3) code: length =2^3 = 8. The monomials are { 1 , v 1 , v 2 , v 3 }, with associated vectors
v 3 (00001111) v 2 (00110011) v 1 (01010101)
These vectors can be considered as taken as the rows of a generator matrix. This is an (8, 4 , 4) code; it is single-error correcting and double-error detecting. This is also the extended Hamming code (obtained by adding an extra parity bit to the (7, 4) Hamming code. 2
Example 3 The R(2, 4) code. The monomials up to degree 2 are
{ 1 , v 1 , v 2 , v 3 , v 4 , v 1 v 2 , v 1 v 3 , v 1 v 4 , v 2 v 3 , v 2 v 4 , v 3 v 4 }
Corresponding are the following binary vectors.
1 = (1111111111111111) v 4 = (0000000011111111) v 3 = (0000111100001111) v 2 = (0011001100110011) v 1 = (0101010101010101) v 3 v 4 = (0000000000001111) v 2 v 4 = (0000000000110011) v 1 v 4 = (0000000001010101) v 2 v 3 = (0000001100000011) v 1 v 3 = (0000010100000101) v 1 v 2 = (0001000100010001)
This is a (16, 11) code, with min. distance 4. 2 In general for an R(r, m) code, we have
k = 1 +
m 1
m 2
m r
We can recursively construct an R(r + 1, m + 1) code — twice the length — from an R(r, m) and R(r + 1, m) code.
Theorem 1 R(r + 1, m + 1) = {(f, f + g)for all f ∈ R(r + 1, m) and g ∈ R(r, m)}.
Proof The codewords of R(r + 1, m + 1) are associated with Boolean functions in m + 1 variables of degree ≤ r + 1. If c(v 1 ,... , vm+1) is such a function, we can write
c(v 1 ,... , vm+1) = f (v 1 ,... , vm) + v − m + 1g(v 1 ,... , vm).
Then f is a Boolean function in m variables of degree ≤ r + 1 and g has degree ≤ r, so the corresponding vectors f and g are in R(r + 1, m) and R(r, m), respectively. 2
Theorem 2 The minimum distance of R(r, m) is 2 m−r^.
Proof By induction. When m = 1 the R(0, 1) code is the length-2 repetition code; in this case dmin = 2. The R(1, 1) code has four codewords of length 2; hence dmin = 1. As an inductive hypothesis, assume that up to m and for 0 ≤ r ≤ m the minimum distance is 2m−r^. We will show that dmin for R(r, m + 1) is 2m−r+1.
Adding these code bits together we obtain
c 0 + c 1 + c 2 + c 3 = m 12.
We can also add together the next four code bits:
c 4 + c 5 + c 6 + c 7 = m 12
and
c 8 + c 9 + c 10 + c 11 = m 12
and
c 12 + c 13 + c 14 + c 15 = m 12.
Now what we actually have to deal with is the received sequence r = (r 0 , r 1 ,... , r 15 ). We use this in conjunction with the equations above to obtain four estimates of m 12 :
mˆ 12 = r 0 + r 1 + r 2 + r 3 m ˆ 12 = r 4 + r 5 + r 6 + r 7 m ˆ 12 = r 8 + r 9 + r 10 + r 11 m ˆ 12 = r 12 + r 13 + r 14 + r 15
Expressions such as this, in which the check sums all yield the same value, are said to be orthogonal on the message bit m 12 (which is a different usage from the vector-space sense). From these four estimates, we determine the value of m 12 by majority vote: if only one is incorrect we get it right; if two are incorrect, we can at least detect that an error has occurred. It is similarly possible to set up multiple equations for the other second-order bits m 13 , m 14 ,... , m 34. Based upon these equations (which I will not write here), we determine an estimate of the entire second-order block:
mˆ 2 = ( ˆm 34 , mˆ 24 , mˆ 14 , mˆ 23 , mˆ 13 , mˆ 12 )
We then “peel off” this layer to get
r′^ = r − m 2 G 2.
Now we repeat for the first-order bits. We have eight orthogonal check sums on each of the first-order message bits. For example,
m 1 = c 0 + c 1 m 1 = c 8 + c 9 m 1 = c 2 + c 3 m 1 = c 10 + c 11 m 1 = c 4 + c 5 m 1 = c 12 + c 13 m 1 = c 6 + c 7 m 1 = c 14 + c 15
From eight estimates obtained from the received codeword, we estimate m 1 by voting. Having obtained all the bits in m 1 , we remove it,
r′′^ = r′^ − m 1 G 1
and look for m 0. But
r′′^ = m 01 + e,
so the parity sums in this case are just the bits r 0 through r 15.
Up to this point, we have dealt with the special case of the R(2, 4) code, and we could look at the exhaustive list of generator vectors and at least justify that the parity sums work. But we need to work out a general way to proceed to other codes. This will lead us into some interesting geometric questions. First, for the codeword c = (c 0 , c 1 ,... , cn− 1 ), we associate ci with the m-tuple Pi that is the complement of the binary equivalent of i. For example, the following applies to R(2, 4).
i binary Pi 0 0000 1111 1 0001 1110 2 0010 1101
These m-tuples Pi can be regarded as points in an m-dimensional geometry known as the Euclidean geometry EG(m, 2). In this geometry, we can represent “cubes” by connecting the points Pi those points that differ in exactly one coordinate. In our example, every vertex has four immediate neighbors.
Each codeword from R(r, m) is an incidence vector that defines a subspace in R(r, m), in which the nonzero coordinates of the codeword to points lying in the subspace. For example, the codeword (0110011001100110) ∈ R(2, 4), is an incidence vector for the subspace containing the points {P 1 , P 2 , P 5 , P 6 , P 9 , P 10 , P 13 , P 14 }. Based upon this geometry we can find equations for orthogonal checksums as follows. To find a set of orthogonal checksums that provide an estimate for the kth order message bit mi 1 ,i 2 ,... ,ik corresponding to the basis vectors vi 1 vi 2 · · · vik :
j 1 , j 2 ,... , jm−k = { 1 , 2 ,... , m} − {i 1 , i 2 ,... , ik}.
Let T be the subspace of point associated with the incidence vector vj 1 vj 2 · · · vjm−k. The space T is said to be the “complementary subspace to S”.
Whew! Is that cryptic or what?
The columns of G are simply the 4-tuples (1000) increasing to (1111) in binary counting order. We can generate these using a simple counter circuit. Decoding: We can translate the binary received signal r to a ±1 sequence by the mapping
F(r) = F = ((−1)r^0 , (−1)r^1 ,... , (−1)rn−^1 ).
Define the correlation between two of the sequences as
cor(F, G) = cor((F 0 , F 1 ,... , Fn− 1 ), (G 0 , G 1 ,... , Gn− 1 ) =
n∑− 1
i=
FiGi.
Finding the the codeword c that minimizes the distance d(r, c) is equivalent to finding the codeword that maximizes the correlation cor(F(r), F(c)). The operation of computing the correlation can be performed efficiently by means of the Hadamard transform. Let Fˆ = F H 2 m denote the Hadamard transform of F , where H 2 m is the 2m^ × 2 m Hadamard matrix. For decoding the R(1, 3) code we would use the Hadamard matrix
Observe that the first, second, and fourth columns (starting counting from the zeroth column) are F(v 1 ), F(v 2 ) and F(v 3 ), respectively. The ith column of H 8 , where i = (i 3 i 2 i 1 ) in binary is the vector
F(ci) = F(i 1 v 1 + i 2 v 2 + i 3 v 3 ).
For example, the fifth column (5 = (101)) consists of the vector
F(1 · v 1 + 0 · v 2 + 1 · v 3 ) = F((10101010) + (11110000)) = F(01011010) = (1 − 1 − − 1 − 1).
The Hadamard transform of F = F(r) thus computes the correlation of F(r) with the mappings of all the codewords. We simply find the coordinate in the transform with the largest value and determine the codeword from it. There is one last trick. The R(1, m) code has 2m+1^ codewords in it, and we only get 2m^ values out of the Hadamard transform just described. However, we note that if we complement each bit, by
F( 1 + c) = F( 1 + c 1 v 1 + c 2 v 2 + · · · + cmvm)
then the correlation is the negative of F(c). Thus we can look at the sign and on that basis get the other half of the codewords.
Example 5 We receive r = (10000011):
c = 1 + 1v 3 + 1v 2 + 0v 1 = (11000011).
Fast algorithms exist for the Hadamard transform, making the decoding operation fairly efficient.