Artificial Intelligence: A Modern Approach
Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
Expert Solution & Answer
Book Icon
Chapter 3, Problem 9E

Explanation of Solution

a.

Formulation:

  • The given data are,
    • There are 3 missionaries and 3 cannibals on the left bank of a river.
    • They wish to cross over the right bank using a boat that can only carry two at a river.
    • The number of cannibals on either balls must never exceed the number of missionaries on the same bank, otherwise, the missionaries will become the cannibals’ dinner.
    • Plan a sequence of crossing that will take everyone safely across.
  • For solving the problem, a tuple (m,c,b) is used to present the state of one side of the river, since the other side can be easily inferred.
  • Where,
    • “m” stands for number of missionaries...

Explanation of Solution

b.

Solving Missionaries and Cannibals problem:

First let us consider that both the missionaries (M) and cannibals(C) are on the same side of the river.

Left Right

Initially the positions are: 0M 0C and 3M , 3C (B)

Now let’s send 2 Cannibals to left of bank: 0M , 2C (B) and 3M , 1C

Send one cannibal from left to right: 0M , 1C and 3M , 2C (B)

Now send the 2 remaining Cannibals to left : 0M , 3C (B) and 3M , 0C

Send 1 cannibal to the right : 0M , 2C and 3M , 1C (B)

Now send 2 missionaries to the left: 2M , 2C (B) and 1M ...

Explanation of Solution

c.

Reason for people think that solving puzzle problem is very hard:

It is not obvious that al...

Blurred answer
Students have asked these similar questions
Dynamic programming may be used to solve the traveling salesman problem (TSP), but it has certain limitations. What are the time complexity and restriction of dynamic programming?
The idea of optimality in dynamic programming is made more clear as a result.
3. Which of the following activities do you expect to be performance oriented and which are simulation oriented? a. The design of an automated shuttle system (often used at airports between terminals). b. The design of a model predicting the path of a hurricane. c. The design of a Web search database used to derive and maintain indices for documents stored on the World Wide Web. d. The design of a model of a nation's economy for testing theories. e. The design of program for monitoring a patient's vital signs.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education