Tuesday, September 1, 2009

Answer: 1000 Bottles of Wine

My friend Qin told me this puzzle, but her version involves using 10 condemned prisoners to test the wines. I took the liberty of softening the story a little bit by replacing the 10 condemned prisoners with 10 samples of testing agent. The solution to this puzzles stays the same.

A result-dependent solution can be: first divide the 1000 bottles into two groups of 500 each and then test the sample from one group, the result of this testing tells us which group was contaminated and has to be tested again. Next divide this group of 500 bottles into two groups of 250 bottles each and test one group... and so on. Eventually the contaminated bottle will be singled out.

Here is a more elegant solution which uses the binary system.

1000 Bottles of Wine

The King has 1000 bottles of wine one of which was contaminated with a deadly poison. A chemist offered a small vial of agent that can detect traces of the poison, but it can be used for only 10 samples.

How can the King find the contaminated bottle?

Wednesday, July 1, 2009

Answer: Bridge Crossing

In the river crossing puzzle, the farmer is the only person who could operate the boat. Therefore the solution is to find minimum number of trips the farmer has to make to bring the wolf, the goat and the cabbage to the other side of the river without leaving the wolf and the goat or the goat and cabbage alone.

In this bridge crossing puzzle, however, we know they have to make 5 trips altogether, so the question is to find the trips of the shortest time. Read the answer here.

Bridge Crossing

Remember the puzzle of a farmer crossing a river with a wolf, a goat and a cabbage? It is really a question of how the farmer ferries the wolf, goat and cabbage one at a time to the other side of the river without leaving the wolf and goat or the goat and the cabbage alone during the process.

Here is a puzzle of bridge crossing with some time constraints:

Four people A, B, C and D have to cross a bridge at night. The bridge is narrow so it can only allow two persons at a time. Since it is dark they have to use a flashlight when crossing the bridge. The speed of crossing the bridge for A, B, C and D are 1, 2, 5 and 10 minutes respectively. Their flash light can last only 17 minutes.
How do they cross the bridge?

Sunday, March 1, 2009

Answer: Black Hats and White Hats

I first read this puzzle in a book titled Fun with Mathematics (趣味数学) in Chinese. It was a translation of the book Moscow Puzzles, which became one of my favorite books.

The answer to this puzzle is not hard to get if we follow the logic thinking of C and B.
Read the answer here.