How can we show that the Hamming distance

  • Thread starter Thread starter lenti
  • Start date Start date
lenti
Messages
5
Reaction score
0
Hi,

can anybody help me to show that the Hamming disatance d(x,y) is invarian to a shift of both x and y i.e d(x+z, y+z)=d(x,y)

Thanks a lot

Lenti
 
Last edited:
Physics news on Phys.org
Please include the formula for Hamming distance.
 
The Hamming distance of two length-N words x, y, denoted as d(x,y), is defined as the number of components (symbols9 of x and y tha are different.

we can writte as;

d(x,y)=\sumI{x\neqy}

thanks a lot
 
Your summation doesn't make much sense to me. What does I in this summation mean?
\sum I \{x \neq y\}

Also, it would help to give an example. For example, is d("eat", "eats") = 1?
 
as an example;

consider two binary words x=(1010110) and y=(1001010)

the hamming distance between the binary words is d(x,y)=3

because they change in 3 bits.
 
How about my question about the summation?
 
Assuming that z is another string of bits, it's intuitively obvious that if d(x, y) = n, say, then creating two longer strings x + z and y + z will not change the number of bits that are different. IOW d(x + z, y + z) = n as well.

To formalize this, I would probably need the formula for Hamming distance, which you've provided, but I would also need to understand what this formula means, which I don't.
 
Back
Top