Puzzle |
[Jul. 11th, 2007|04:08 pm]
Arvind Narayanan
|
[ | Tags | | | puzzle | ] |
[ | Current Mood |
| | working | ] |
Due to popular demand one comment, I'm updating again. I don't have anything very interesting to say right now, so I'll throw out a cute puzzle I came across recently.
There are four people trying to cross a bridge. The bridge can only carry two at a time. The four have one flashlight between them. No one can be on the bridge without a flashlight. The four take 1, 2, 5 and 10 minutes respectively to cross (if more than one cross at the same time, they cross at the speed of the slowest). How can they all cross in no more than 17 minutes total?
If you think it's impossible, keep thinking. (There is no catch :-)
I'm guessing the straightforward generalization of the problem is NP-complete, but I haven't thought about it.
|
|