Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 05C12-HammingMetric.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down