GATE CS 2015, set 2 · Question 47 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Given below are some algorithms, and some algorithm design paradigms.
Match the above algorithms on the left to the corresponding design paradigm they follow.

AlgorithmsDesign paradigms
1. Dijkstra's Shortest Pathi. Divide and Conquer
2. Floyd-Warshall algorithm to compute all pairs shortest pathii. Dynamic Programming
3. Binary search on a sorted arrayiii. Greedy design
4. Backtracking search on a graphiv. Depth-first search
v. Breadth-first search
  1. (A) 1-i, 2-iii, 3-i, 4-v.
  2. (B) 1-iii, 2-iii, 3-i, 4-v.
  3. (C) 1-iii, 2-ii, 3-i, 4-iv.
  4. (D) 1-iii, 2-ii, 3-i, 4-v.
Answer

Answer (C)

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes