Graph Search Flashcards
Encode a maze as a graph search problem. Then write route/2 (edges), start/1, finish/1 (world model), and a path finder travel/2, and a query start/0 which answers whether there exists a path from start to finish.
157
travellog/2 version of graph search to remember the route
158
Explain precisely how the naive DFS fails when the graph has a loop.
159-161
travelsafe/3 for cyclic graphs
162
General pattern of graph search
163
Principles for choosing state space representation when performing graph search
164
Solve the missionaries and cannibals problem. The boat carries 2 people
If the Cannibals outnumber the Missionaries they will eat them
Get them all from one side of the river to the other?
165 statement
Solve the towers of hanoi problem
166 statement