CS FundamentalsModerateGATE CS

What is the Hamming distance between the codewords 10110110 and 11010011?

  1. A. 3
  2. B. 4
  3. C. 5
  4. D. 8

Correct answer: B. 4

XOR the words: 10110110 ⊕ 11010011 = 01100101, which has 4 ones, so they differ in 4 positions.

More Computer Networks questions

Exams that ask this topic