GATE CS 2017, set 1 · Question 5 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the following table:
Match the algorithms to the design paradigms they are based on.

AlgorithmsDesign Paradigms
(P) Kruskal(i) Divide and Conquer
(Q) Quicksort(ii) Greedy
(R) Floyd-Warshall(iii) Dynamic Programming
  1. (A) (P) ↔ (ii), (Q) ↔ (iii), (R) ↔ (i)
  2. (B) (P) ↔ (iii), (Q) ↔ (i), (R) ↔ (ii)
  3. (C) (P) ↔ (ii), (Q) ↔ (i), (R) ↔ (iii)
  4. (D) (P) ↔ (i), (Q) ↔ (ii), (R) ↔ (iii)
Answer

Answer (C)

Answer from the official GATE CS 2017 answer key.

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