For a binary linear code , its rank is its dimension of a vector space . Use the weight enumerator convention
where is the Hamming weight. This convention is essential here: counts words of weight , rather than zero words. There are codewords, so .
There is only one binary word of weight , namely . Thus precisely when . If this holds, the linear map is a bijection of and replaces weight by ; hence . Conversely this symmetry gives , because the zero word is the unique word of weight zero.
The repetition code consists of , giving
The single parity-check code consists of all words of even weight. Exactly words have weight , so the binomial theorem gives

Articles by others on the same topic (0)

There are currently no matching articles.