State Space Search: Classic AI
State Space Search: Classic AI
State Space Search: Classic AI
Classic AI
State Space representation of a
problem is a graph
Nodes correspond to problem states
Arcs correspond to steps in a solution
process
One node corresponds to an initial
state
One node corresponds to a goal state
Solution Path
An ordered sequence of nodes from
the initial state to the goal state
Search Algorithm
Finds a solution path through a state
space
The Water Jug Problem
Suppose we have
An empty 4 gallon jug
A source of water
(4,0) (0,3)
(0,3)
6 7
2
(3,0)
(4,3) (1,3)
etc
(0,0)
Depth First
(4,0) 1
2
3 (4,3)
7 (0,3)
(3,0)
2
(3,3)