Polynomial code
From Wikipedia, the free encyclopedia
In coding theory, a polynomial code is a type of linear code whose set of valid code words consists of those polynomials (usually of some fixed length) that are divisible by a given fixed polynomial (of shorter length, called the generator polynomial).
Contents |
[edit] Definition
Fix a finite field GF(q), whose elements we call symbols. For the purposes of constructing polynomial codes, we identify a string of n symbols with the polynomial
Fix integers and let g(x) be some fixed polynomial of degree m, called the generator polynomial. The polynomial code generated by g(x) is the code whose code words are precisely the polynomials of degree less than n that are divisible (without remainder) by g(x).
[edit] Example
Consider the polynomial code over GF(2) = {0,1} with n = 5, m = 2, and generator polynomial g(x) = x2 + x + 1. This code consists of the following code words:
Equivalently, expressed as strings of binary digits, the codewords are:
Note that this, as every polynomial code, is indeed a linear code, i.e., linear combinations of code words are again code words.
[edit] Encoding
In a polynomial code over GF(q) with code length n and generator polynomial g(x) of degree m, there will be exactly qn − m code words. Indeed, by definition, p(x) is a code word if and only if it is of the form , where q(x) (the quotient) is of degree less than n − m. Since there are qn − m such quotients available, there is the same number of possible code words. Plain (unencoded) data words should therefore be of length n − m
Some authors, such as (Lidl & Pilz, 1999), use the mapping as the assignment from data words to code words. However, this has the disadvantage that the data word does not appear as part of the code word.
Instead, the following method is often used: given a data word d(x) of length n − m, first multiply d(x) by xm, which has the effect of shifting d(x) by m places to the left. In general, xmd(x) will not be divisible by g(x), i.e., it will not be a valid code word. However, there is a unique code word that can be obtained by adjusting the rightmost m symbols of xmd(x). To calculate it, compute the remainder of dividing xmd(x) by g(x):
where r(x) is of degree less than m. The code word corresponding to the data word d(x) is then defined to be
Note the following properties:
- , which is divisible by g(x). In particular, p(x) is a valid code word.
- Since r(x) is of degree less than m, the leftmost n − m symbols of p(x) agree with the corresponding symbols of xmd(x). In other words, the first n − m symbols of the code word are the same as the original data word. The remaining m symbols are sometimes called the checksum digits.
[edit] Example
For the above code with n = 5, m = 2, and generator polynomial g(x) = x2 + x + 1, we obtain the following assignment from data words to codewords:
- 000 00000
- 001 00111
- 010 01001
- 011 01110
- 100 10010
- 101 10101
- 110 11011
- 111 11100
[edit] Decoding
Assuming that the code word is free of errors, it can be decoded simply by stripping away the m checksum digits.
If there are errors, then error correction should be performed before decoding.
[edit] Properties of polynomial codes
As for all digital codes, the error detection and correction abilities of polynomial codes are determined by the minimum Hamming distance of the code. Since polynomial codes are linear codes, the minimum Hamming distance is equal to the minimum weight of any non-zero codeword.
More specific properties of a polynomial code often depend on particular algebraic properties of its generator polynomial. Here are some examples of such properties:
- A polynomial code is cyclic if and only if the general polynomial divides xn − 1.
- If the generator polynomial is primitive, then the resulting code has Hamming distance at least 3, provided that .
- In BCH codes, the generator polynomial is chosen to have specific roots in an extension field, in a way that achieves high Hamming distance.
The algebraic nature of polynomial codes, with cleverly chosen generator polynomials, can also often be exploited to find efficient error correction algorithms. This is the case for BCH codes.
[edit] Specific families of polynomial codes
- BCH codes are a family of polynomial codes with high Hamming distance and efficient algebraic error correction algorithms.
[edit] References
- W.J. Gilbert and W.K. Nicholson: Modern Algebra with Applications, 2nd edition, Wiley, 2004.
- R. Lidl and G. Pilz. Applied Abstract Algebra, 2nd edition. Wiley, 1999.