Greedy Algorithms questions

Q13

GATE CS 2015 CS-1Algorithm DesignMCQ1 mark−1/3 if wrong
Match the following:

(P) Prim's algorithm for minimum spanning tree
(Q) Floyd-Warshall algorithm for all pairs shortest paths
(R) Mergesort
(S) Hamiltonian circuit

(i) Backtracking
(ii) Greedy method
(iii) Dynamic programming
(iv) Divide and conquer
Show answer without attempting

Answer: C

Q47

GATE CS 2015 CS-2Algorithm DesignMCQ2 marks−2/3 if wrong
Given below are some algorithms, and some algorithm design paradigms.

1. Dijkstra's Shortest Path
2. Floyd-Warshall algorithm to compute all pairs shortest path
3. Binary search on a sorted array
4. Backtracking search on a graph

i. Divide and Conquer
ii. Dynamic Programming
iii. Greedy design
iv. Depth-first search
v. Breadth-first search

Match the above algorithms on the left to the corresponding design paradigm they follow.
Show answer without attempting

Answer: C

0/20 correct0 marks

Related topics in Algorithm Design