GATE DA 2025 · Question 44 · AI · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

The state graph shows the action cost along the edges and the heuristic function h associated with each state.
Suppose A^* algorithm is applied on this state graph using priority queue to store the frontier. In what sequence are the nodes expanded?

Directed state graph with nodes S, A, E, B, C, D, G. Directed edges with costs: S→A cost 4, S→E cost 1, A→B cost 2, B→C cost 2, E→C cost 2, C→D cost 3, D→G cost 3. Heuristic values shown in boxes next to nodes: h(A)=2, h(B)=2, h(C)=6, h(E)=6, h(D)=2, h(G)=0. No heuristic value is shown for S. S is the start node and G is the goal node.
  1. (A) S,A,E,C,B,D,G
  2. (B) S,E,A,C,B,D,G
  3. (C) S,A,E,B,C,D,G
  4. (D) S,A,B,E,C,D,G
Answer

Answer (C)

Answer from the official GATE DA 2025 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes