1.

Which of the following is not the algorithm to find the minimum spanning tree of the given graph?(a) Boruvka’s algorithm(b) Prim’s algorithm(c) Kruskal’s algorithm(d) Bellman–Ford algorithmI had been asked this question in final exam.My question comes from Minimum Spanning Tree topic in division Minimum Spanning Tree of Data Structures & Algorithms II

Answer»

Right answer is (d) Bellman–Ford algorithm

Easiest explanation - The BORUVKA’s algorithm, PRIM’s algorithm and Kruskal’s algorithm are the algorithms that can be used to find the minimum spanning TREE of the given graph.

The Bellman-Ford algorithm is used to find the shortest path from the SINGLE SOURCE to all other vertices.



Discussion

No Comment Found

Related InterviewSolutions