[Solved] CS 461 ARTIFICIAL INTELLIGENCE

$25

File Name: CS_461__ARTIFICIAL_INTELLIGENCE.zip
File Size: 292.02 KB

SKU: [Solved] CS 461 – ARTIFICIAL INTELLIGENCE Category: Tag:
5/5 - (1 vote)

HOMEWORK #1 (5% OR 10 POINTS )

Your group for this homework should coincide with your term project group. In any case, indicate clearly the students who are submitting the homework (i.e., write at most 5 names on the submission).

You must submit your homework (including all the original code written) to our TAs. Just a single submission per group! Our TAs will soon send you a note explaining the mechanics of submissions.

Any programming language can be used as long as you have it up-and-running on a portable computer. Any group member should be prepared to give a homework demo (online or face-to-face and using that computer) when requested to do so by our TAs.

In this homework, youll work on a variant of the following classical puzzle:

MISSIONARIES & CANNIBALS: A group consisting of 3 cannibals and 3 missionaries seeks to cross a river. A boat is available which will hold up to 2 people. If the missionaries on either side of the river are outnumbered at any time by the cannibals on that side, even momentarily, the cannibals will do away with the unfortunate, out-numbered missionaries. What schedule of crossings can be devised to permit the entire party to cross safely? (Assume that the group and the boat are on the west bank initially and that they would like to end up on the east bank eventually.)

The two instances youll solve (by implementing a single program) are as follows (each worth 5 points):

  1. There are 5 cannibals, 5 missionaries, and a boat holding 3
  2. Pick one of the following:
    1. There are 6 cannibals, 6 missionaries, and a boat holding 4
    2. There are 6 cannibals, 6 missionaries, and a boat holding 5

Your program must use either DFS or BFS. (Winston, Chapter 4). It must check for repeated states. Needless to say, we require that the boat not contain more cannibals than missionaries.

What should be the output of your program? For both instances above, some such sequence of moves resembling the following will be just fine (N.B. the following solution is for the classical version, viz. 3 cannibals, 3 missionaries, and a boat holding 2):

REFERENCES

There are many papers that you can read about the M&S problem but this wont be necessary unless youre really interested. I think the following is especially well-written:

  • Fraley, Robert, et al. Graphical Solution of Difficult Crossing Puzzles. Mathematics Magazine, vol. 39, no. 3, 1966, pp. 151157. JSTOR, www.jstor.org/stable/2689307. Accessed 25 Sept.

2020.

Caveat:

It is crucial that you explain, in the body of your program and using block comments, how your program does what it does. Dont forget to state which search strategy you use, DFS or BFS. Also state which question (2a or 2b) youve picked.

Your program should also have a simple logic for single stepping (tracing) so that the TAs can inspect the intermediate stages of the problem-solving process in an incremental fashion. This is also useful for debugging your program during the development stage.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS 461  ARTIFICIAL INTELLIGENCE[Solved] CS 461 ARTIFICIAL INTELLIGENCE
$25