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.
| Algorithms | Design paradigms |
|---|---|
| 1. Dijkstra's Shortest Path | i. Divide and Conquer |
| 2. Floyd-Warshall algorithm to compute all pairs shortest path | ii. Dynamic Programming |
| 3. Binary search on a sorted array | iii. Greedy design |
| 4. Backtracking search on a graph | iv. Depth-first search |
| v. Breadth-first search |
- (A) 1-i, 2-iii, 3-i, 4-v.
- (B) 1-iii, 2-iii, 3-i, 4-v.
- (C) 1-iii, 2-ii, 3-i, 4-iv.
- (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