Hammingtávolság
Hammingtávolság, often referred to as Hamming distance, is a metric for comparing two strings of equal length. It is defined as the number of positions at which the corresponding symbols are different. In simpler terms, it's the minimum number of substitutions required to change one string into the other.
For example, the Hamming distance between "karolin" and "kathrin" is 3. This is because the letters differ
The concept of Hamming distance is named after Richard Hamming, an American mathematician and cryptographer who
It's important to note that Hamming distance is only defined for strings of equal length. If the