1.

What approach is being followed in Floyd Warshall Algorithm?(a) Greedy technique(b) Dynamic Programming(c) Linear Programming(d) BacktrackingI got this question in semester exam.I want to ask this question from Shortest Path in portion Shortest Path of Data Structures & Algorithms II

Answer»

The CORRECT answer is (b) DYNAMIC Programming

The best I can explain: Floyd Warshall ALGORITHM FOLLOWS dynamic programming approach because the all pair shortest paths are computed in bottom up manner.



Discussion

No Comment Found

Related InterviewSolutions