PA of Algorithms Q125

0. Given below are some algorithms, and some algorithm design paradigms.
List-IList-II
A.Dijkstra's Shortest PathDijkstra's Shortest Path1.Divide and Conquer
B.Floyd-Warshall algorithm to compute all
pairs shortest path
2.Dynamic Programming
C.Binary search on a sorted array3.Greedy design
D.Backtracking search on a graph4.Depth-first search
  5.Breadth-first search

 ABCD
(a)1315
(b)3315
(c)3214
(d)3215

  • Option : C
  • Explanation :
    Dijkstr a use greedy approach, warshals use dynamic programming approach, Binary search is based on divide and conquer and Backtracking is depth first search.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *