In coding theory, a standard array (or Slepian array) is a
qn-k
qk
n | |
F | |
q |
A standard array for an [''n'',''k'']-code is a
qn-k
qk
For example, the [''5'',''2'']-code
C3
0 | 01101 | 10110 | 11011 | |
10000 | 11101 | 00110 | 01011 | |
01000 | 00101 | 11110 | 10011 | |
00100 | 01001 | 10010 | 11111 | |
00010 | 01111 | 10100 | 11001 | |
00001 | 01100 | 10111 | 11010 | |
11000 | 10101 | 01110 | 00011 | |
10001 | 11100 | 00111 | 01010 |
The above is only one possibility for the standard array; had 00011 been chosen as the first coset leader of weight two, another standard array representing the code would have been constructed.
The first row contains the 0 vector and the codewords of
C3
Because each possible vector can appear only once in a standard array some care must be taken during construction. A standard array can be created as follows:
C
Adding vectors is done mod q. For example, binary codes are added mod 2 (which equivalent to bit-wise XOR addition). For example, in
Z2
That selecting different coset leaders will create a slightly different but equivalent standard array, and will not affect results when decoding.
Let
C
0000 | 1011 | 0101 | 1110 |
We then select a vector of minimum weight (in this case, weight 1) that has not been used. This vector becomes the coset leader for the second row.
0000 | 1011 | 0101 | 1110 | |
1000 |
Following step 3, we complete the row by adding the coset leader to each codeword.
0000 | 1011 | 0101 | 1110 | |
1000 | 0011 | 1101 | 0110 |
We then repeat steps 2 and 3 until we have completed all rows. We stop when we have reached
qn-k=24-2=22=4
0000 | 1011 | 0101 | 1110 | |
1000 | 0011 | 1101 | 0110 | |
0100 | 1111 | 0001 | 1010 | |
0010 | 1001 | 0111 | 1100 |
In this example we could not have chosen the vector 0001 as the coset leader of the final row, even though it meets the criteria of having minimal weight (1), because the vector was already present in the array. We could, however, have chosen it as the first coset leader and constructed a different standard array.
To decode a vector using a standard array, subtract the error vector - or coset leader - from the vector received. The result will be one of the codewords in
C
Decoding via a standard array is a form of nearest neighbour decoding. In practice, decoding via a standard array requires large amounts of storage - a code with 32 codewords requires a standard array with
232
Decoding via standard array does not guarantee that all vectors are decoded correctly. If we receive the vector 1010, using the standard array above would decode the message as 1110, a codeword distance 1 away. However, 1010 is also distance 1 away from the codeword 1011. In such a case some implementations might ask for the message to be resent, or the ambiguous bit may be marked as an erasure and a following outer code may correct it. This ambiguity is another reason that different decoding methods are sometimes used.