The Queen of Hearts had just finished making a marvelous batch of tarts, and had gone off to fetch her husband, the King of Hearts. When she came back, the tarts had vanished!
A huge investigation was put forth, and across the land the knights of the king searched high and low for the tarts. Fortunately, they were discovered on a beach, just moments before being devoured by the Gryphon and the Mock Turtle. Both were brought to trial before the King. In the course of the subsequent investigation, it was determined that one of them had stolen the tarts, but not both of them.
At the trial, the following witnesses came forward to make statements:
Duchess: The Gryphon never stole the tarts!
Cook: But he had stolen things in the past.
Cheshire Cat: Well, the Mock Turtle has stolen things in the past.
Catarpillar: The Cheshire Cat has stolen things in the past!
March Hare: The Cook and the Cheshire Cat are both right.
Dormouse: The Cook and the Caterpillar are both right.
Mad Hatter: Either the Cheshire Cat or the Caterpillar is right, and maybe both.
Bill the Lizard: Either the March Hare or the Dormouse is right, and maybe both.
Knave of Hearts: The Cook and the Mad Hatter are both right.
The White Rabbit: Bill the Lizard is right, and the Knave of Hearts is wrong!
There was dead silence as everyone tried to puzzle through all of the statements.
The Queen, growing frustrated, was just about to order everyone's head cut off, when Alice stood up.
Alice: It just so happens that the White Rabbit and the Duchess are either both telling the truth or both lying.
Now, since we know that Alice never tells a lie, can you work out who stole the tarts?
Adapted from Raymond Smullyan's Alice in Puzzleland
I know, I know, it's already been solved, but I just wanted to show off my digital logic know-how that I haven't used since Electrical&Computer Engineering 101 in college - I'm a Mech E =)
Ok, so Alice's statement basically lets us know that we need to find out if the White Rabbit is lying or not, then we'll know if the Duchess is lying or not, and then we'll know if the Gryphon is the thief or not.
I tried to work this out with the sentences, and just got myself all muddled up. So then I named their statements A-I, starting with the Cook as A, and the White Rabbit as I.
So A would mean the Cook's statement is right, and Not A (or !A) would mean the Cook's statement is wrong. In digital logic, A AND B means that both A and B are right. A OR B means that either A, B, or both are right.
So, D = A AND B, E = A AND C, F = B OR C, G = D OR E, H = A AND F, and I = G AND !H. Therefore...
G = D OR E = (A AND B) OR (A AND C). Since either Both A and B is true, or Both A and C are true (or all 3), this means that A must be true either way, and at least one of B or C (or both) must be true. Another way to write this is A AND (B OR C)
H = A AND F = A AND (B OR C) = G
I = G AND !H = G AND !G which can't both be true. But !I = !(G AND !G) = !G OR !!G = !G OR G which is a true statement because one of those if true and one is not.
Therefore the White Rabbit is lying, and so is the Duchess, and the Heart family should arrest the Gryphon and set the Mock Turtle free, despite the iffy fashion trends he initiated =)
Later!
|
Posted by nikki
on 2004-04-06 19:33:14 |