Multiple choice

What is the hamming distance between the code words 100101000111 and 110111101101?

  1. 3

  2. 4

  3. 5

  4. 6

  5. 7

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Hamming distance is calculated by counting the number of bits that differ in the two given code words. It is calculated by doing the EXCLUSIVE OR operation on the bits of the code words. Hence, the two given code words are a hamming distance 5 apart.