Generator matrix
In coding theory , a generator matrix , also known as a generator matrix , is a matrix-like basis for a linear code that generates all possible code words. If G is a generator matrix for a linear [n, k] code C then every code word c of C is of the form
for a unique row vector w with k entries. In other words: the image is a bijection. A generator matrix for a code has the format . Here n is the length of the code words and k is the number of information bits (the dimension of C ). The number of redundant bits is r = n - k .
The systematic form for a generator matrix is
where a k × k identity matrix and P is of dimension k × r .
A generator matrix can be used to generate a control matrix for a code (and vice versa).
Equivalent codes
Codes C 1 and C 2 are equivalent (written C 1 ~ C 2 ) if one code can be generated from the other by the following two transformations
- Swap components
- Scale components.
Equivalent codes have the same Hamming distance.
The generator matrices of equivalent codes can be generated using the following transformations:
- Swap lines
- Scale lines
- Add lines
- Swap columns
- Scale columns.
See also
Web links
- MathWorld entry (English)