GATE CSE 2017 Session 1 Q15: Match Kruskal, Quicksort, Floyd–Warshall to design paradigms
- Algorithms
- 1 mark
- MCQ
- −1/3 if wrong
Syllabus topic: Algorithm design techniques: greedy, dynamic programming and divide-and-conquer
Question
Consider the following table:
| Algorithms | Design Paradigms |
|---|---|
| (P) Kruskal | (i) Divide and Conquer |
| (Q) Quicksort | (ii) Greedy |
| (R) Floyd-Warshall | (iii) Dynamic Programming |
Match the algorithms to the design paradigms they are based on.
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: C (official GATE 2017 final answer key)
Concept used: Classic algorithm design paradigms: greedy choice, divide and conquer, and dynamic programming over subproblems.
First step: Recall how each algorithm works: Kruskal picks the cheapest safe edge, Quicksort partitions and recurses, Floyd–Warshall builds on shortest paths through smaller vertex sets.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Algorithm design techniques: greedy, dynamic programming and divide-and-conquer
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs