GATE DA 2025 · Informed Search (A*, Greedy Best-First)

MCQ · 2 marks · Problem AI-ASRC-0050

The state graph shows the action cost along the edges and the heuristic function \(h\) associated with each state.
Diagram
Suppose A* algorithm is applied on this state graph using priority queue to store the frontier. In what sequence are the nodes expanded?
  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

Solve it on GATE DA practice →More Search Strategies problems

Show the worked solutionA* expands nodes by \(f(n)=g(n)+h(n)\) (path cost so far plus heuristic estimate), always exploring the frontier node with the smallest \(f\) value next.Starting at \(S\): \(f(A)=4+2=6\), \(f(E)=1+6=7\). Expand \(A\) (smaller \(f\)) first.From \(A\): \(f(B)=(4+2)+2=8\). Frontier: \(B(8), E(7)\). Expand \(E\) next.From \(E\): \(f(C\text{ via }E)=(1+2)+6=9\). Frontier: \(B(8), C(9)\). Expand \(B\) next.From \(B\): \(f(C\text{ via }B)=(4+2+2)+6=14\) (worse than the \(C(9)\) already found via \(E\), so \(C\) keeps cost \(9\)). Frontier: \(C(9)\). Expand \(C\) next.From \(C\): \(f(D)=(1+2+3)+2=8\). Expand \(D\), then \(G\): \(f(G)=(1+2+3+3)+0=9\).Expansion order: \(S, A, E, B, C, D, G\)Answer: S, A, E, B, C, D, GClick Here for Detail SolutionGateOverflow discussion: https://gateoverflow.in/460988/gate-da-2025-question-34

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com