Question

N missionaries and ? > 3 cannibals are on one side of a river, along with...

N missionaries and ? > 3 cannibals are on one side of a river, along with a boat that can hold at most ? = 2? people, where 1 ≤ ? < ⌈ ? 2 ⌉. Find a way to get everyone to the other side without ever leaving a group of missionaries in one place outnumbered by the cannibals in that place. Define the problem in terms of state space, transitions between them, initial state and goal. Consider only those constraints and effects that are necessary to ensure a valid solution.

Homework Answers

Answer #1

The Missionaries and Cannibals problem is a well-known problem that is
often used to illustrate AI techniques. The problem is as follows
:

Three missionaries and three cannibals are on one side of a river, with a canoe.
They all want to get to the other side of the river. The canoe can only hold one
or two people at a time. At no time should there be more cannibals than missionaries
on either side of the river, as this would probably result in the missionaries
being eaten.

To solve this problem, we need to use a suitable representation.

First of all, we can consider a state in the solving of the problem to consist
of a certain number of cannibals and a certain number of missionaries on
each side of the river, with the boat on one side or the other.We could represent
this, for example, as

3, 3, 1          0, 0, 0

Above set of numbers represents numbers of cannibals, missionaries,
and canoes on one side of the river.

Initial state is (0, 0, 0)

Goal state is   (3, 3, 1)

An example of a state that must be avoided is

2, 1, 1

Here, there are two cannibals, one canoe, and just one missionary on the
other side of the river. This missionary will probably not last very long.

To get from one state to another, we need to apply an operator. The operators
that we have available are the following:

  1. Move one cannibal to the other side.
  2. Move two cannibals to the other side.
  3. Move one missionary to the other side.
  4. Move two missionaries to the other side.
  5. Move one cannibal and one missionary to the other side.

We consider rules such as this to be constraints, which limit the possible
operators that can be applied in each state. If we design our representation
correctly, the constraints are built in, meaning we do not ever need to
examine illegal states.

We need to have a test that can identify if we have reached the goal
state—3, 3, 1.

After apply above operators we get the tree which is given below. In the tree, edge represent which operator we applied.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Chester King has been a sailor for his entire life. As he has saved some money,...
Chester King has been a sailor for his entire life. As he has saved some money, he now wants to go into business for himself. Chester decides to become the captain of his own tugboat which he will name “American Queen”. Chester has also always wanted to live in California, so he decides to buy his boat and operate it on the San Francisco Bay. Chester figures he better talk to an attorney before buying the boat about things like...
Item Chapter 5 Planning Programs that Prevent Discipline Problems Quote of the Day #1: You can...
Item Chapter 5 Planning Programs that Prevent Discipline Problems Quote of the Day #1: You can discover more about a person in an hour of play than in a year of conversation. Plato This chapter focuses on planning programs that prevent discipline problems. I consider myself a "constructivist teacher". I think students learn best when the information is meaningful to them and the process engages their curiosity and exploration. I want to encourage students to explore ideas and develop them,...
“Unilateral contracts” are those in which only one side gives consideration to the other. True/False Privately...
“Unilateral contracts” are those in which only one side gives consideration to the other. True/False Privately owned businesses generally do not have to respect Constitutional rights of employees, because the Bill of Rights was designed just to protect people from actions of Government – not from actions of private parties like private businesses. True or False 3. True or False  “Chapter 7” bankruptcy petitions (sometimes referred to as “total liquidation”) are always filed voluntarily, by the debtor. The debtor cannot be...
Question -Organizational change goes beyond promotions and the threat of layoffs. What ways other than those...
Question -Organizational change goes beyond promotions and the threat of layoffs. What ways other than those discussed in the case would you use to entice people to embrace proposed changes? Provide several suggestions and justify their rationale. CASE STUDY- Blue Cross and Blue Shield, and Others: Understanding the Science behind Change Kevin Sparks has been trying to get his staff to change the way it monitors and supports the data center for the past year, but he hasn’t been getting...
Machiavelli, The Prince (1513) This leads us to a question that is in dispute: Is it...
Machiavelli, The Prince (1513) This leads us to a question that is in dispute: Is it better to be loved than feared, or vice versa? My reply is one ought to be both loved and feared; but, since it is difficult to accomplish both at the same time, I maintain it is much safer to be feared than loved, if you have to do without one of the two. For of men one can, in general, say this: They are...
Item 1 In the case below, the original source material is given along with a sample...
Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version In contrast to the transmittal model illustrated by the classroom lecture-note taking scenario, the constructivist model places students at the center of the process--actively participating in thinking and discussing ideas while making meaning for themselves. And the professor, instead of being the "sage on the...
One area of concern for the accounting profession for the past 20 years has been the...
One area of concern for the accounting profession for the past 20 years has been the proliferation of alternative practice structures. Potential problems exist because the audit side of the business may be influenced by the public entity that controls it. One such situation involves K&B, CPA Associates, and Cryden Business and Tax Services. Billy Kamen, CPA, has been a partner of K&B for more than 30 years. He thought he had seen it all in the accounting profession. The...
CASE # 1 (Managing without Managers) Just Music, a European commercial music service, is synonymous with...
CASE # 1 (Managing without Managers) Just Music, a European commercial music service, is synonymous with dramatically changing the way consumers access and use music on a day-to-day basis. They have succeeded in moving consumers away from buying music and, instead, moving them towards a model of renting the music they enjoy for a monthly fee. The European music giant, launched in 2008, was developed into the business we know today by European entrepreneur Paul Moon, who was inspired to...
Problem-Solving Case: Motivating Employees at Nucor Corporation Today Nucor Corporation is the largest producer of steel...
Problem-Solving Case: Motivating Employees at Nucor Corporation Today Nucor Corporation is the largest producer of steel in the United States, so it is hard to believe it was once an underdog in a struggling industry. What has set the company apart is a focus on moti- vating and empowering employees. The employee focus is illustrated by the custom of printing each individual’s name on the cover of Nucor’s annual report. But the concern for employees is much more practical and...
QUESTION 1 A contract induced by improper threats or undue influence is void. True False 1...
QUESTION 1 A contract induced by improper threats or undue influence is void. True False 1 points    QUESTION 2 A contract made by a person under guardianship is voidable. True False 1 points    QUESTION 3 A contract with a minor remains in force unless the minor decides that he or she does not wish to be bound by it. True False 1 points    QUESTION 4 A person who was intoxicated at the time he made a contract...