Error correcting codes
A binary code of length
The distance between two code words
The distance is thus the number of differing bits.
The distances between code words define a metric on
Proof:
It is clear that
Given a binary code
Nearest neighbour decryption means interpreting a potentially erroneous received word as the closest word in
A code
Begin with any word
A binary code
Here,
For any
Let
For any
A parity check matrix is a matrix
Let
Proof:
All columns of
Given an
Importantly, by our previous theorem Hamming codes can thus correct
A Hamming code generated by
Proof:
It is clear that the image of
Among all binary codes with words of length
Proof:
Let