Hamming Distance

Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different.

Example

  • "karolin" and "kathrin" is 3.
  • "karolin" and "kerstin" is 3.
  • 1011101 and 1001001 is 2.
  • 2173896 and 2233796 is 3.
Share

You may also like...