Examveda

What is the main purpose of a Minimum Spanning Tree (MST) algorithm like Prim's or Kruskal's?

A. To detect cycles in the graph.

B. To connect all nodes with minimum total edge weight.

C. To find the shortest path in a weighted graph.

D. To detect cycles in the graph.

Answer: Option B


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)