Open 6Youcai opened 8 years ago
In the function hamming_distance(s1,s2), len = min(length(s1), length(s2)), while Hamming distance are between two strings of equal length, see https://en.wikipedia.org/wiki/Hamming_distance
Yes, this hamming_distance is generalized for comparing sequences with different length
In the function hamming_distance(s1,s2), len = min(length(s1), length(s2)), while Hamming distance are between two strings of equal length, see https://en.wikipedia.org/wiki/Hamming_distance