GATE CS 1997 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0123

The correct matching for the following pairs is\[\begin{array}{ll|ll}\hline \text{A.} & \text{All pairs shortest path} & \text{1.} & \text{Greedy} \\\hline \text{B.} & \text{Quick Sort} & \text{2.}& \text{Depth-First Search} \\\hline \text{C.}& \text{Minimum weight spanning tree} & \text{3.} & \text{Dynamic Programming} \\\hline \text{D.} & \text{Connected Components} &\text{4.} & \text{Divide and Conquer} \\\hline \end{array}\]
  1. A
    A-2 B-4 C-1 D-3
  2. B
    A-3 B-4 C-1 D-2
  3. C
    A-3 B-4 C-2 D-1
  4. D
    A-4 B-1 C-2 D-3

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2221/gate1997-1-5

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