Learning objectives
- Explain the ideas behind search and problem solving.
- Apply the ideas to the example and identify how you would check the result.
Concepts
A search problem specifies states, possible moves and a goal. Breadth-first search visits states in increasing move count. For weighted moves, use a method such as Dijkstra's algorithm to minimize total cost.
Practical example
Model exhibition booths as nodes and accessible walkways as edges. Find a route from the entrance to a selected booth.
Try the exercise
- Define the task. Model exhibition booths as nodes and accessible walkways as edges. Find a route from the entrance to a selected booth.
- Identify the key idea. A search problem specifies states, possible moves and a goal.
- Check your decision. Describe an alternative and how you would compare its results.