Q2. From the figure above, the goal is to reach the node G from the start node S. Given that, if you are visiting node A, the estimated heuristic value from A to G is h(G) = 20, and the cost value from node A to node S is g(S) = 10.
1. Apply the A* heuristic algorithm to find the best path from S to G. (show all the steps)
2. Solve this problem using the Greedy algorithm.
3. Compare between the two solutions.
4. Build the search tree and apply the Depth-first search.
a. The node should appear just one time.
b. The expanded nodes should be in order (i.e., from S, the children will be ordered A then B, and from A the children will be C then D)