1.

Kruskal’s algorithm is used to ______(a) find minimum spanning tree(b) findsingle source shortest path(c) find all pair shortest path algorithm(d) traverse the graphThe question was posed to me by my college director while I was bunking the class.This interesting question is from Minimum Spanning Tree in portion Minimum Spanning Tree of Data Structures & Algorithms II

Answer»

Correct answer is (a) find minimum SPANNING tree

The best I can EXPLAIN: TheKruskal’s algorithm is used to find the minimum spanning tree of the connected graph. It construct the MST by finding the edge having the least possible weight that connects two trees in the FOREST.



Discussion

No Comment Found

Related InterviewSolutions