1. Search problems and how strategies are judged
A search problem has an initial state, a set of actions, a transition model (the state an action leads to), a goal test and a path cost (sum of step costs). A solution is a path from the initial state to a goal; an optimal solution has the least path cost.
Search keeps a frontier (generated but not yet expanded nodes). Expanding a node means generating its children. Tree search may revisit states; graph search keeps an explored set and never expands a state twice.
Strategies are compared on four criteria:
- Complete: finds a solution whenever one exists.
- Optimal: finds a least-cost solution.
- Time: number of nodes generated.
- Space: maximum number of nodes kept in memory.
The measures use = branching factor, = depth of the shallowest goal, = maximum depth of the tree, = optimal cost and = smallest step cost. Read every question for whether the goal test is applied when a node is generated or when it is expanded: BFS usually tests on generation, UCS and A* must test on expansion to stay optimal.