Construction of the generator matrix of a RM(r,p) codc
StcpO.
The first row of G is the all-1 codeword: G° = g, = [1 — 1].
Step 1.
The next p
rows, the 1y order codewords. form submatrix
G' =
8: |
0 1 ••• 0 f | |
83 |
0 0 - • I 1 | |
8, |
0 0 ••• 1 1 | |
8/>+i |
0 0 ••• 1 1 |
2P~2
2p~l
0 I n-1
The /-th column (/ = 0,1.....n-1) is the intcgcr / in the binary codc:
Step 2.
The next ^ | rows. the 21*1 order codewords. form submatrixG2. Its codewords arc logie
(Boolean) products of all pairs of the ls‘ order words. The product of two binary /ł-tuplcs a = \ax a2 and b = [/>, b2 •••/>„) isdcfincdas:
c = ab = [c, Cj—c,],
where c, = atb(\ i = 1.....n, c{ = 1 if and only if a, =b, = 1.
Step r.
The last
rows, the r-th order codewords. form Gr. Its codewords are products of all
combinations of r words of the I*1 order.
RM codes in nonsystematic form can be decoded in different ways. Polynomial notation based, a cyclic codę decoding (7.1.20-7.1.25) is one of them. Nonsystematic codę can be always converted into systematic codę. by mod-2 additions of nonsystematic codę generator matrix rows (codewords). and then. matrix algebra based decoding (5.2.25, 5.2.26) can be applied.