Curated · Shortest Path Algorithms

MSQ · 1 mark · Problem PROG-GRPH-0127

Which of the following algorithms do NOT use divide and conquer?
  1. A
    Binary search
  2. B
    Dijkstra's algorithm
  3. C
    Kruskal's algorithm
  4. D
    Quick sort

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionBinary search: divides the range and solves one half. D&C.Quick sort: partitions, then solves both parts. D&C.Dijkstra: repeatedly fixes the closest unvisited vertex. Greedy, not D&C.Kruskal: repeatedly adds the cheapest edge that forms no cycle. Greedy, not D&C.So the algorithms that do NOT use divide and conquer are Dijkstra's and Kruskal's.Answer: Kruskal and DijkstraClick to Join Our Telegram Group for Latest Update of MOCK TEST Click Here to Practice ALL Previous MOCK TEST FREE

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