1.

Bellmann ford algorithm provides solution for ____________ problems.(a) All pair shortest path(b) Sorting(c) Network flow(d) Single source shortest pathI had been asked this question in an online quiz.Query is from Shortest Path topic in portion Shortest Path of Data Structures & Algorithms II

Answer»

Correct OPTION is (d) Single SOURCE shortest path

The best I can EXPLAIN: Bellmann ford ALGORITHM is used for finding solutions for single source shortest path problems. If the graph has no negative cycles that are reachable from the source then the algorithm PRODUCES the shortest paths and their weights.



Discussion

No Comment Found

Related InterviewSolutions