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