2. Using the Greedy Best-First Search algorithm, find the path from Start (S) to Goal (G) in the following graph:
Graph Details:
Node Neighbors (Cost) Heuristic (h)
S A (1), B (4) 7
A C (2), D (5) 6
B D (1), G (7) 2
Node Neighbors (Cost) Heuristic (h)
C G (5) 3
D G (2) 4
G - 0
Instructions:
I. Use $f(n) = h(n)$ as the evaluation function.
II. At each step, expand the node with the smallest heuristic value $h(n)$.
III. Find the path and total cost from S to G.