Hamming distance
The symbols may be letters, bits, or decimal digits, among other possibilities. For example, the Hamming distance between: