With two strings:

  • The hamming distance is the number of bits that are different.

Operation

  • With (Integer Modulo 2)
  • is the number of 1’s in

Example

  • As there are 2 entries that differ