Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

its an Artificial Intelligence Assignment: Major PP Assignment: Missionaries and Cannibals Implementation. Write a program that uses the state space you designed for the Missionaries

its an Artificial Intelligence Assignment:

image text in transcribed

Major PP Assignment: Missionaries and Cannibals Implementation. Write a program that uses the state space you designed for the Missionaries and Cannibals problem. The data structure you choose can be a graph or a tree. Your program should search through the state space searching for a solution. If a solution is found, it should indicate the actions in order) to get everyone across safely. If no solution is possible, then the program should indicate no solution was found. Output for your program could manifest in many ways, but it should be clear what is happening. For example, one action in the solution output could be: Missionary from shore a to shore b. Another action could be something like: Cannibal from shore b to shore a. It's up to you, but if the grader can't tell what's going on, you will not get credit. Heck, if you are feeling adventurous, you could animate it using ASCII art or some other graphics. Also, your state diagram MUST be implemented using a data structure of your choice AND you must use one of the search algorithms covered in the text and class. Which one is up to you. If none of these are done, you will get no credit. You may use whichever programming language you wish (Python, C++, Lisp, Java, C). Include a comment header in your source code file that indicates which data structure you chose and which search algorithm you decided to use. Hints: Don't forget that there is a ton of sample code provided by the author through their Git repository I showed you. Feel free to base your solution on that. Don't forget that the nodes being generated are being done dynamically. The text implements data structures in a way that is probably different than you learned in your data structures class. Reminder: I will not coauthor or debug your programs for you, but feel free to ask any questions you may have. Make sure you understand the pseudocode for the algorithm you are implementing and the main components of it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

Explain the difference between an exposition and a convention.

Answered: 1 week ago

Question

14.5 Describe how accidents at work can be prevented.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago