Some of you might like this brainteaser. I haven't solved it for the
specific case given in the writeup, yet, but I have two other
challenges (and solutions) for the problem given. Some of you may
wish to skip (A), since it's a hint for (B).
"A spy is being commissioned by the government to infiltrate a mafia
rank in order to find out who the head honcho is. There are sixteen
potential candidates and the government needs to know which one of
them is the leader. However, the spy only has one chance to pass the
information back to the government before she gets murdered.
On an previously-agreed date, the local radio station will announce
the winning lottery number. This number will be from 0 to inclusive,
and will be saved as a 15 binary digit data in that radio station’s
computer. The spy only has one chance to infiltrate the radio
station’s computer mainframe, change one bit (or none) in that number,
and leave. The broadcaster will announce the number without knowing
that the spy has changed it, and the government agents will listen to
that changed number. The government and the spy don’t know the winning
number in advance and they have no further power to rig the lottery.
To make things more complicated, the spy does not have that much time
in the radio station’s computer room. Therefore, she would not be able
to perform lengthy and complex calculations. Of course, lengthy and
complex is a relative term, but she is a sufficiently accomplished
mathematician and she needs to perform this task in less than one
minute.
What strategy can be done by the spy and the government so that she
can pass the mafia leader’s identity accurately with that one chance?"
http://dharmath.thehendrata.com/2009/10/08/spy-and-radio/
(A) With the above restrictions in mind, how can you encode the head
honcho in a 3 bit number, if you have 1 bit flip.
(B) With the above restrictions in mind, how can you encode the head
honcho in a 27 bit number, if you have 3 bit flips.
(C) With the above restrictions in mind, answer the problem given.
This solution is less like lab1.
Give people a few days to think about it, and then feel free to send
out your solution(s) for a review. There's no E.C. for this -- just
for fun discussion during parties and meals. Don't forget to
prioritize your fp lab and hw.
David
> (A) With the above restrictions in mind, how can you encode the head
> honcho in a 3 bit number, if you have 1 bit flip.
(A) With most of the above restrictions in mind, except there are only
3 potential head honchos, how can you encode the head
honcho in a 3 bit number, if you have 1 bit flip.
> (B) With the above restrictions in mind, how can you encode the head
> honcho in a 27 bit number, if you have 3 bit flips.
(B) With most of the above restrictions in mind, except there are 27
potential head honchos, how can you encode the head
honcho in a 27 bit number, if you have 3 bit flips.
> "This number will be from 0 to inclusive, and will be saved as a
> 15 binary digit data in that radio station’s computer."
"This number will be from 0 to inclusive (2^15) - 1, and will be saved