Search, Reasoning, and Problem Solving
Search as a Core AI Technique
Why Search Matters
Many AI tasks can be framed as finding a sequence of actions that leads from a start state to a goal state. Search algorithms explore possible states and paths under resource limits.
State Spaces and Costs
A state space contains all possible configurations of a problem. A path cost function assigns a numerical cost to a solution path, often written as for the cost to reach node .
Search Vocabulary
Common Search Methods
Breadth-First Search
- Explores level by level
- Can find shortest paths in unweighted graphs
- Uses more memory
Depth-First Search
- Explores one path deeply
- Uses less memory
- May get stuck in deep or infinite paths
What is a heuristic?
Heuristics estimate progress toward a goal and help search focus on promising states.
Correct answer: An estimate that helps guide search
What does the frontier contain in a search algorithm?
The frontier is the collection of candidates waiting to be explored.
Correct answer: Discovered but not yet expanded nodes.
A* Search Intuition
A* combines the actual cost so far with a heuristic estimate to form . When is admissible, A* can guarantee optimal solutions.
In A*, is typically:
A* prioritizes nodes using the sum of path cost so far and estimated remaining cost.
Correct answer: