Hamming distance

The Hamming distance between two vectors of equal length is the number of positions at which the corresponding entries differ.

In other words, it measures the minimum number of substitutions required to change one codeword into another.

Formally,
let F be a field, and let x,yF.
The Hamming Distance on Fn is defined by

dH((x1,,xn),(y1,,yn))=|{i:xiyi}|

i.e. the number of positions where x and y disagree.


The Hamming distance is a metric on the Hamming space, since it is


Hamming distance for binary codes can be calculated using the binomial coefficient.


See also
minimum Hamming distance
Hamming ball
error detection and correction

Powered by Forestry.md