Archives for: January 2006, 10

10 January, 2006

Permalink 17:21 UTC, by Fernando J. Pereda, 317 words, 8447 views   English (US)
Categories: Gentoo

Solving the Missionaries and Cannibals puzzle

There is a traditional puzzle where 3 missionaries and 3 cannibals have to cross a river using a small canoe. Rules are:

* You cannot have more cannibals than missionaries in either bank because cannibals will eat missionaries.
* The canoe can be run by either one or two persons. Both cannibals and missionaries know how to run it.

This puzzle is really easy to solve either by hand or programming. However, hacking a script to solve it is always more challenging than solving it by hand. Juanjo proposes a solution using Ruby in Misioneros y can

Fernando J. Pereda

Here you will find stories about Gentoo net-mail development from Fernando J. Pereda (ferdy).

January 2006
Mon Tue Wed Thu Fri Sat Sun
<< < Current > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 50

powered by
b2evolution