diff --git a/05C12-HammingMetric.tex b/05C12-HammingMetric.tex index 6c7202a..6a98826 100644 --- a/05C12-HammingMetric.tex +++ b/05C12-HammingMetric.tex @@ -46,9 +46,9 @@ \,$u =(0,1,1,0,1,0,1)$\, and \,$v =(1,0,1,0,1,0,1)$\, then \[ -d_H(u,v) = |0-1|+ |1-0| + |1-1| + |0-0|+|1-1| + |0-0| + |1-1| = 3 +d_H(u,v) = |0-1|+ |1-0| + |1-1| + |0-0|+|1-1| + |0-0| + |1-1| = 2 \] -because $u$ and $v$ have different bits at three positions. +because $u$ and $v$ have different bits at two positions. The Hamming distance holds the properties of a metric (otherwise it would not be truly a distance): \begin{itemize}