Skip to content
GATEiit

GATE CSE 2017 Session 1 Q15: Match Kruskal, Quicksort, Floyd–Warshall to design paradigms

Syllabus topic: Algorithm design techniques: greedy, dynamic programming and divide-and-conquer

Question

Consider the following table:

AlgorithmsDesign 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

Select one option
Wrong answer costs 1/3 mark in GATE.
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.

Concept notes

Loading notes…

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

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key