h=3
/\
/ \
h=2 h=4
| |
| |
h=1 h=1
| |
| |
h=1 goal
|
|
h=1
|
|
goal
Assuming all arc costs are 1, then Greedy search will find the
left goal, which has a solution cost of 5, while the optimal solution
is the path to the right goal, which has a cost of 3.