Find three other winning sequences of moves for the vegetarians and the cannibals in Example.ExampleUsing a Graph to Solve a Problem: Vegetarians and Cannibals The following is a variation of a famous puzzle often used as an example in the study of artificial intelligence. It concerns an island on which all the people are of one of two types, either vegetarians or cannibals. Initially, two vegetarians and two cannibals are on the left bank of a river. With them is a boat that can hold a maximum of two people. The aim of the puzzle is to find a way to transport all the vegetarians and cannibals to the right bank of the river. What makes this difficult is that at no time can the number of cannibals on either bank outnumber the number of vegetarians. Otherwise, disaster befalls the vegetarians!Solution A systematic way to approach this problem is to introduce a notation that can indicate all possible arrangements of vegetarians, cannibals, and the boat on the banks of the river. For example, you could write (vvc/Bc) to indicate that there are two vegetarians and one cannibal on the left bank and one cannibal and the boat on the right bank. Then (vvccB/) would indicate the initial position in which both vegetarians, both cannibals, and the boat are on the left bank of the river. The aim of the puzzle is to figure out a sequence of moves to reach the position (/Bvvcc) in which both vegetarians, both cannibals, and the boat are on the right bank of the river.Construct a graph whose vertices are the various arrangements that can be reached in a sequence of legal moves starting from the initial position. Connect vertex x to vertex y if it is possible to reach vertex y in one legal move from vertex x. For instance, from the initial position there are four legal moves: one vegetarian and one cannibal can take the boat to the right bank; two cannibals can take the boat to the right bank; one cannibal can take the boat to the right bank; or two vegetarians can take the boat to the right bank. You can show these by drawing edges connecting vertex (vvccB/) to vertices (vc/Bvc), (vv/Bcc), (vvcBc), and (cc/Bvv). (It might seem natural to draw directed edges rather than undirected edges from one vertex to another. The rationale for drawing undirected edges is that each legal move is reversible.) From the position (vc/Bvc), the only legal moves are to go back to (vvccB/) or to go to (vvcB/c). You can also show these by drawing in edges. Continue this process until finally you reach (/Bvvcc). From Figure 10.1.3 it is apparent that one successful sequence of moves is (vvccB/) (vc/Bvc) (vvcB/c) (c/Bvvc) (ccB/vv) (/Bvvcc).Figure

Deposits made by electronic funds transfer (EFT) the bank makes credit entries Collections of notes receivable for the company Payments made by electronic funds transfer (EFT) the bank makes debit entries Service charges Customer...