The hamming distance between two strings or vectors of equal length is the number of positions at which the corresponding symbols are different.

Pasted image 20241201184952.png

Is a distance constraint, not to be confused with the Edit distance, term which is used to describe the Levenshtein distance