Consider the following table: Match the algorithms to the design paradigms they are based on.
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 1 · Q5
Time

Select one answerSingle correct
Solution
Official answer: C) (P) ↔ (ii), (Q) ↔ (i), (R) ↔ (iii)
Algorithm Design TechniquesLet us analyze the design paradigm for each algorithm:
Kruskal's algorithm (P): It finds a Minimum Spanning Tree (MST) by sorting edges and greedily adding the minimum weight edge that does not form a cycle. Hence, (Greedy).
Quicksort (Q): It partitions an array into two sub-arrays around a pivot and recursively sorts the sub-arrays. Hence, (Divide and Conquer).
Floyd-Warshall (R): It solves the all-pairs shortest paths problem by breaking it down into subproblems using dynamic programming. Hence, (Dynamic Programming).
Thus, the correct matching is , which corresponds to option (C).
Try the question first, then check your work.
Examiner trap
Recall the fundamental algorithmic approach used by each method: Kruskal makes greedy choices of edges, Quicksort divides the problem via partitioning, and Floyd-Warshall uses overlapping subproblems.
This Algorithm Design Techniques previous year question is Q5 of the GATE CSE 2017 Set 1 paper. Find more GATE CSE PYQs on Algorithm Design Techniques in Algorithms, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Algorithm Design Techniques PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Algorithm Design Techniques has 6 GATE CSE PYQs across 6 papers from 2011 to 2017. 2 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2017 Set 1.
How GATE tests Algorithm Design TechniquesIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.