hamming distance Algorithm

In information theory, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different. In other words, it measures the minimal number of substitutions need to change one string into the other, or the minimal number of mistakes that could have transformed one string into the other.

hamming distance source code, pseudocode and analysis