IHTFP

Things that are most (un)important

Monday, February 23, 2004

If I post, will they come?

The QOTD is when everyone is talking, who would listen?
So this is my experiment with blogging.

As far as LAF, I'm probably not going to work on it much. Most people would read this through various readers anyway. So as long as the blog is functional (legible), that's all I need.

Cool link of the day: Riddles
Favorite puzzles:
CRIMINAL CUPBEARERS
An evil king has 1000 bottles of wine. A neighboring queen plots to kill the bad king, and sends a servant to poison the wine. The king's guards catch the servant after he has only poisoned one bottle. The guards don't know which bottle was poisoned, but they do know that the poison is so potent that even if it was diluted 1,000,000 times, it would still be fatal. Furthermore, the effects of the poison take one month to surface. The king decides he will get some of his prisoners in his vast dungeons to drink the wine. The king also must drink the rest of the wine in 5 weeks time. What's the minimum number of prisoners that he need to find out the poisoned bottle?
--------------
SINK THE SUB
An enemy submarine is somewhere on the number line (consider only integers for this problem). It is moving at some rate (again, integral units per minute). You know neither its position nor its velocity.

You can launch a torpedo each minute at any integer on the number line. If the the submarine is there, you hit it and it sinks. You have all the time and torpedoes you want. You must sink this enemy sub - devise a strategy that is guaranteed to eventually hit the enemy sub.
---------------
PRISONER AND LIGHT BULB
100 prisoners are imprisoned in solitary cells. Each cell is windowless and soundproof. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his or her own cell. Each day, the warden picks a prisoner equally at random, and that prisoner visits the central living room; at the end of the day the prisoner is returned to his cell. While in the living room, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.

Before this whole procedure begins, the prisoners are allowed to get together in the courtyard to discuss a plan. What is the optimal plan they can agree on, so that eventually, someone will make a correct assertion?

--> There are interesting algorithms for this one. :)


The solutions are in the forum, but shouldn't there be a webpage with at least a few of them?

0 Comments:

Post a Comment

<< Home