1.

Floyd Warshall’s Algorithm is used for solving ____________(a) All pair shortest path problems(b) Single Source shortest path problems(c) Network flow problems(d) Sorting problemsI got this question in exam.This intriguing question originated from Shortest Path topic in portion Shortest Path of Data Structures & Algorithms II

Answer» RIGHT answer is (a) All pair shortest path PROBLEMS

The explanation is: Floyd WARSHALL’s ALGORITHM is used for solving all pair shortest path problems. It means the algorithm is used for finding the shortest PATHS between all pairs of vertices in a graph.


Discussion

No Comment Found

Related InterviewSolutions