Which algorithm is commonly used to find a Minimum Spanning Tree of a connected weighted graph?
Options
- A. Kruskal's algorithm
- B. Merge Sort
- C. Binary Search
- D. More than one of the above
- E. None of the above
Quiz Practice:
A. Kruskal's algorithm
Kruskal's algorithm is a greedy algorithm used to find a Minimum Spanning Tree (MST) of a connected weighted graph. It sorts edges by increasing weight and repeatedly selects the smallest edge that does not create a cycle. Prim's algorithm is another common MST algorithm. Both ultimately produce a spanning tree containing N - 1 edges when the graph has N vertices.