CSE 415: Introduction to Artificial Intelligence

Spring 2014

Hw Assignment 1 (Program): 20 pts

Turn In Here

Download the skeleton code here:

Part A Due Thursday, April 10 at 11:59pm

Part B Due Monday, April 14 at 11:59 pm

Part C Due Sunday, April 20 at 11:59pm, 10% off per day until Tuesday, April 22 at 11:59pm

Problem Definition: The missionaries and cannibals problem is usually stated as follows. Three missionaries and three cannibals are on one side (left) of a river, along with a boat that can hold one or two people. If there are ever more cannibals than missionaries on one side of the river, the cannibals will eat the missionaries. (We call this a "dead" state.) Find a way to get everyone to the other side (right), without ever leaving a group of missionaries in one place outnumbered by the cannibals in that place, ie. without anyone getting eaten. This problem is famous in AI, because it was the subject of the first paper that approached problem formulation from an analytical viewpoint (Amarel, 1968).

Tanvir has pointed us to this flash version that lets you play with the problem. Note that here the cannibals gobble up the missionaries as soon as they arrive on the other side without getting out of the boat, not like our assignment. It's equivalent, since as soon as they get out of the boat, which we require, they would be eaten. flash version

Solve the Missionary-Cannibal Problem (with 3 missionaries and 3 cannibals) by writing blind search methods as follows:


Part A


Part B


Part C


You should turn in the following:

Evaluation: