|
Re: Smart?
| quote: | Originally posted by Flyboy217
3a) You are blindfolded with a round table in front of you. It is marked with 4 positions (1, 2, 3, and 4), one in each quadrant. There are 4 cups on the table, one per quadrant, each initially randomly either face up or face down (which you cannot see). On each turn, you may instruct the genie to flip the cups in whichever numbered positions you wish. He will oblige, and then rotate the cups around the table as he wishes, so that the cups are (potentially) all in new positions, but in the same rotational order. Your goal is for all the cups to be face up. The genie will tell you if you've won. Can you give a solution that will always win the game, regardless of his sneaky rotations? [30 min]
|
following algorithm:
flip all
flip any random cup
flip all
flip any random cup
you are BOUND to win, because you are exhausting the space of possibilities. Explanation -somewhat shitty-
if all cups are down and you flip them all, you win. - easy
if they are NOT all down and you flip them all, you ELIMINATE that possibility. By flipping a SINGLE cup, you are eliminating the possibility that THIS one cup was down and the others were up. But that elimination is only true for this one cup in that one spot. It does not matter which cup you flip, since the genie can arbitrarily rotate them, but since the ORDER does not change, you will -eventually- test every cup.
Next you flip all cups again. If you don't win, flip a random single cup again. then flip all, flip single.
at leas that is what i came up with. Eventually you should win, unless the genie HAPPENS to rotate the cups so that you always pick the same cup to flip as a single cup. SO i guess this isn't right, but i think i am on the right way to getting there. Maybe you need to alternate somewhat more like:
flip all
flip first
flip all
flip 2-3
flip all
flip 4-2
flip all
flip 1-4
flip all
so that eventually you will have flipped all pairs and triplets of cups.
___________________

get font
I see your 4 Crushs and raise you 3 As The Rush Comes. - Yan from PvD's first summerstage event in '03
|