Von Neumann
- 101
- 4
I was recently posed a riddle that went like the following:
There are two people. Person A picks three numbers from 0-99. Person B guesses which three numbers that person A has picked. Then, person A gives the dot product of his picked numbers with person B's guessed numbers. The question is how could person B figure out person A's selected numbers in three guesses. Even more challenging is to provide a solution that allows person B to guess the numbers in one guess.
I have a solution to the first part:
Think of person A and person B as having their guess put into vectors \vec{a}=(a_{1}, a_{2}, a_{3}) and \vec{b}=(b_{1}, b_{2}, b_{3}) respectively. To get the corresponding component a_{1}, person B should select the components (1,0,0) so the dot product will yield a_{1}. Same for a_{2} and a_{3}. Simple enough.
The next part I am stumped. The only clue I was given is that person B's three guesses are not restricted between 0-99. Anyone have any insight?
There are two people. Person A picks three numbers from 0-99. Person B guesses which three numbers that person A has picked. Then, person A gives the dot product of his picked numbers with person B's guessed numbers. The question is how could person B figure out person A's selected numbers in three guesses. Even more challenging is to provide a solution that allows person B to guess the numbers in one guess.
I have a solution to the first part:
Think of person A and person B as having their guess put into vectors \vec{a}=(a_{1}, a_{2}, a_{3}) and \vec{b}=(b_{1}, b_{2}, b_{3}) respectively. To get the corresponding component a_{1}, person B should select the components (1,0,0) so the dot product will yield a_{1}. Same for a_{2} and a_{3}. Simple enough.
The next part I am stumped. The only clue I was given is that person B's three guesses are not restricted between 0-99. Anyone have any insight?