A minimum spanning tree (MST) is a subgraph of a weighted connected graph that connects all vertices with the smallest total edge weight, existing only if the graph is connected. Prim's and Kruskal's algorithms are two methods to compute an MST, with Prim's using a greedy approach to iteratively add the lowest-cost edge and Kruskal's selecting edges in order of smallest weight while avoiding cycles. Applications of MSTs include optimizing wiring, minimizing travel costs, and reducing networking expenses.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views6 pages
16th Question
A minimum spanning tree (MST) is a subgraph of a weighted connected graph that connects all vertices with the smallest total edge weight, existing only if the graph is connected. Prim's and Kruskal's algorithms are two methods to compute an MST, with Prim's using a greedy approach to iteratively add the lowest-cost edge and Kruskal's selecting edges in order of smallest weight while avoiding cycles. Applications of MSTs include optimizing wiring, minimizing travel costs, and reducing networking expenses.