UGC-NET Jun 2012 · Uninformed Search (BFS, DFS, UCS)

MCQ · 2 marks · Problem AI-ASRC-0015

$A^*$ algorithm uses $f’=g+h’$ to estimate the cost of getting from the initial state to the goal state, where $g$ is a measure of cost getting from initial state to the current node and the function $h’$ is an estimate of the cost of getting from the current node to the goal state. To find a path involving the fewest number of steps, we should test,
  1. A
    $g=1$
  2. B
    $g=0$
  3. C
    $h’=0$
  4. D
    $h’=1$

Solve it on GATE DA practice →More Search Strategies problems

Show the worked solution\[\boxed{f'=g+h'}\]If every move is charged a constant cost \(g=1\) per step, then \(g\) at a node equals the number of steps taken from the start, and A* minimises the number of steps.(B) \(g=0\) ignores the path length, giving greedy search — incorrect.(C) \(h'=0\) gives uniform-cost search on the actual costs, not necessarily fewest steps — incorrect.(D) \(h'=1\) is a meaningless constant heuristic — incorrect.Answer: A

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