Hamming space (source code)

= Hamming space
{c}
{title2=$H_{n,q}=\mathbb F_q^n$}

The Hamming space of length $n$ over a <finite field> $\mathbb F_q$ is the set $\mathbb F_q^n$ equipped with <Hamming distance>, the number of coordinates at which two words differ. The <Hamming weight> of a word is its distance from zero.