calculating
Figure 5: Example of calculating the Hamming distance (HD)