145 views

@Jeetmoni saikia do you mean 0x?

if yes then it is prefix. it is used to indicate the number is being written in hexadecimal format.

Yes. Why 0x is not converted into binary
It's just a indicator , not part of the number.

Hamming Distance  = 5 ans

by

The given codeword is represented in hexadecimal format as $0x$ as a prefix. Perform the EXOR operations between 2 codewords, the number of $1’s$ in the resultant code word is called hamming distance.

$(0XAA)_H=1010 1010$

$\oplus$

$(0X55)_H= 0101 0101$

$(11111111)$

So the hamming distance of the given codeword is $8$

:8

Apply XOR

0xAA = 1010 1010
0x55 = 0101 0101
----------------
0xFF = 1111 1111

In the resultant code, the number of 1′s shows Hamming Distance

1 vote
1
2,140 views
1 vote