location: html > body > div:nth-of-type(1) > section > div > div > div:nth-of-type(2) > article > p:nth-of-type(19)
text: Specifically, if original vectors contain {-1, 1} as possible values, then the dot product of two vectors is equal to the Hamming distance by simply replacing -1 with 0 and 1 with 1.