Computer Science, asked by Chhavig892, 1 year ago

If a sender sends data 10101010 and receiver receives 10010010. Then what is the hamming distance between these data? Options are: 1)2 2) 3 3)4 4)5

Answers

Answered by Master2005
8

1. 2

What sender sends exactly receiver receives

Answered by siddhartharao77
13

Answer - 3

Given:

Senders data = 10101010

Receivers data = 10010010

∴ Hamming distance between two vectors is number of bits we must change to change one into other.

Generally, hamming distance between two string is denoted as d(a,b).

We have to perform XOR operation(⊕).

Now,

10101010 ⊕ 10010010 = 111000. Since there are three zeroes, the hamming distance is 1 + 1 + 1 = 3.

Therefore, Hamming distance is 3.

Hope it helps!

Similar questions