Alice randomly chooses an 8-bit integer , and gives Bob another 8-bit integer . Alice then tells Bob that the Hamming distance between and is 1. How much information has Bob been given about ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Imagine that Y given to Bob is 00000000 (0).
Then, as we are told it is 1 hamming distance away (number of different bits is 1), so X could be:
10000000 (128), 01000000 (64), 00100000 (32), 00010000 (16), 00001000 (8), 00000100 (4), 00000010 (2) and 00000001 (1).
So now X could be one of 8 different combinations out of the 256 possible combinations in 8 bit. So we are now guessing from a 32th of the original set: 8 combinations / 256 combinations.
Then as per the formula above the question.
lo g 2 ( 2 5 6 8 1 )
lo g 2 ( 0 . 0 3 1 2 5 1 )
lo g 2 ( 3 2 ) = 5
Though I got the answer, the route I took may not be correct, of course.