Wednesday, November 9, 2011
The hobbits and orcs problem?
Three hobbits and three orcs arrive at a riverbank, and they all wish to cross onto the other side. unately,there is a boat, but unfortunately, the boat can only hold two creatures at one time. Also, there is another problem. Orcs r vicious creatures, and whenever there are more orcs than habbits on one side of the river, the orcs will immediately attack the hobbits and eat them up. consequently, you should be certain that you never leave more orcs than hobbits on any riverbank. how should the problem be solved? (note that the Orcs, though vicious, can be trusted to bring the boat back!)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment