GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 1.5

Matching algorithm paradigms

Algorithms · Other / Mixed Topics · Full GATE CSE 1997 paper

GATE 1997, Q1.5 1 mark · MCQ
Report issue

Other / Mixed Topics

Question 1.5, GATE 1997: Match all-pairs shortest paths, quicksort, minimum spanning tree, connected components with dynamic programming, divide-and-conquer, greedy, DFS.
Question 1.5, GATE 1997: Match all-pairs shortest paths, quicksort, minimum spanning tree, connected components with dynamic programming, divide-and-conquer, greedy, DFS.
Tap to enlarge
Your answer
Answer & solution

Answer: B: 3, 4, 1, 2 (no official key was published)

Floyd–Warshall solves all-pairs paths through dynamic-programming subproblems. Quicksort partitions around a pivot and recursively sorts subarrays, a divide-and-conquer strategy. Prim or Kruskal builds an MST using safe greedy edge choices. Repeated DFS visits each connected component. Thus the four matches are 3, 4, 1, 2, option B. These refer to standard representative algorithms rather than asserting that each task has only one possible solution paradigm.

Original paper, page 1