UGC-NET Jan 2017 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0031

Dijkstra’s algorithm is based on
  1. A
    Divide and conquer paradigm
  2. B
    Dynamic programming
  3. C
    Greedy approach
  4. D
    Backtracking paradigm

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionDijkstra's algorithm repeatedly picks the unvisited vertex with the smallest tentative distance and fixes it as final, then relaxes its edges. This locally best choice is never revised, which is the greedy strategy (it is correct for non-negative edge weights).(A) It does not split the graph into independent subproblems — incorrect.(B) Floyd-Warshall and Bellman-Ford are the dynamic-programming shortest-path algorithms — incorrect.(D) There is no undoing of choices — incorrect.Answer: C

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