This document discusses weighted graphs and applications. It provides runtime analyses for Prim's and Kruskal's minimum spanning tree algorithms of O(n^2logn) where n is the number of vertices. It also notes that the implementations of these algorithms in a provided WeightedGraph.py file have a bug - the loops checking for completion of the spanning tree will not terminate if the graph is not fully connected.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views1 page
Chapter 22 Weighted Graphs and Applications
This document discusses weighted graphs and applications. It provides runtime analyses for Prim's and Kruskal's minimum spanning tree algorithms of O(n^2logn) where n is the number of vertices. It also notes that the implementations of these algorithms in a provided WeightedGraph.py file have a bug - the loops checking for completion of the spanning tree will not terminate if the graph is not fully connected.