Repetition and single-parity-check codes #
The repetition code consists of constant words, and the single-parity-check code consists of
words whose coordinate sum is zero. They are Euclidean duals. A positive-length repetition
code has as many words as its alphabet; at length zero it has only one word.
Over a finite field with q elements, the parity-check code has q^(n - 1) words at length n,
including length zero, where the natural-number subtraction gives exponent zero.
Their weight enumerators are computed in
TauCeti.InformationTheory.Coding.Elementary.WeightEnumerator.
References #
W. C. Huffman and V. Pless, Fundamentals of Error-Correcting Codes, Cambridge University Press (2003), §§1.2–1.4.
Membership in the repetition code means being constant.
Membership in the single-parity-check code means having coordinate sum zero.
The dual of the repetition code is the single-parity-check code.
The dual of the single-parity-check code over a field is the repetition code.
With no coordinates, the repetition code is zero.
A positive-length repetition code has as many words as its alphabet.