in reply to Suggestions for writing a Perl application
A prison warden summons three convicts before him and suggests that whichever of them can pass a certain test shall be set free. 'Here are five discs,' he says, 'three white and two black. I shall fix one of these discs on each of your backs without telling you which color I select. You are not allowed to speak or to use a mirror, but you can look at one another ('s backs). The first one to guess the color of the disc he is wearing can go free, providing he can explain how he arrived at his conclusion.'
The prisoners agree to take the test, and the warden puts a white disc on each of their backs. After looking briefly at one another ('s backs), they all leave the prison yard together (i.e. they pass the test). Each one, by the same argument, has realized that he was wearing a white disc.
So the task, then, is to figure out how the prisoners discovered that they each were wearing a white disc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Suggestions for writing a Perl application
by Abigail-II (Bishop) on Aug 29, 2003 at 23:57 UTC | |
by jacques (Priest) on Sep 10, 2003 at 05:55 UTC |