Curated · Uninformed Search (BFS, DFS, UCS)

NAT · 1 mark · Problem AI-ASRC-0058

A graph has edges A\(\rightarrow\)B (cost 2), A\(\rightarrow\)C (cost 5), B\(\rightarrow\)D (cost 4), C\(\rightarrow\)D (cost 2). Using Uniform Cost Search from A to D, what is the total cost of the optimal path?

Numerical answer (NAT).

Solve it on GATE DA practice →More Search Strategies problems

Show the worked solutionPaths:A\(\rightarrow\)B\(\rightarrow\)D = \(2+4=6\)A\(\rightarrow\)C\(\rightarrow\)D = \(5+2=7\)Cheapest path = 6.

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