With two strings: v1 v2 The hamming distance d(v1,v2) is the number of bits that are different. Operation With v1,v2∈Z2 (Integer Modulo 2) d(v1,v2) is the number of 1’s in v1+v2 Example v1=(0,0,0,1,1,1,0,0,0) v2=(0,1,0,1,0,1,0,0,0) d(v1,v2)=2 As there are 2 entries that differ