Greedy Search Example: f(n) = h(n)
Consider the following search space where the start state is S and
the goal state is G. The left figure shows the arcs labeled with
the costs of the associated operators. The right figure shows the
states labeled with the value of the heuristic function, h, if it is
ever applied at that state.
See how fast the search is!! But it is NOT optimal.
node
expanded nodes list
---- ------------------
{ S(8) }
S { C(3) B(4) A(8) }
C { G(0) B(4) A(8) }
G { B(4) A(8) }
Solution path found is S C G. #nodes expanded = 3.