From 09b5a4181efb47f13e28a7a0d698a3ed9cad31f5 Mon Sep 17 00:00:00 2001 From: Abhishek Subedi <36404222+a2subedi@users.noreply.github.com> Date: Wed, 3 May 2023 15:19:36 +0200 Subject: [PATCH] Update 05C12-HammingMetric.tex --- 05C12-HammingMetric.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}