1.

Dijkstra’s Algorithm is used to solve _____________ problems.(a) All pair shortest path(b) Single source shortest path(c) Network flow(d) SortingThis question was posed to me in an online quiz.My question is from Shortest Path topic in portion Shortest Path of Data Structures & Algorithms II

Answer»

Correct choice is (B) Single source shortest path

Easiest explanation - Dijkstra’s Algorithm is used for solving single source shortest path PROBLEMS. In this algorithm, a single node is FIXED as a source node and shortest PATHS from this node to all other nodes in graph is found.



Discussion

No Comment Found

Related InterviewSolutions