Prove That in A Graph With Distinct Edge Weights, Prim's Algorithm Produces A Minimum Spanning
Prove That in A Graph With Distinct Edge Weights, Prim's Algorithm Produces A Minimum Spanning
(i)Trace the execution of Dijkstra’s, Kruskal’s, and Prim’s algorithms on the following weighted,
undirected graph. (For Dijkstra, give the distances from s to each vertex; for Kruskal & Prim, give the
edges of the MST in the order the algorithm selects them.)
(2)State the “Cut Property” for mmii in graphs with distinct edge weights. (See
notes from last class.)
() Prove that in a graph with distinct edge weights, Prim’s algorithm produces a minimum spanning
tree. (Hint; Use the Cut Propeitv to show that at every step, Prim’s algorithm chooses an edge that is in
every minimum spanning tree.)
() Let C be a weighted, undirected graph with distinct edge weights. Explain why C has exactly one
minimum spanning tree.
(That is, find a graph G with more than one minimum spanning tree. You should look for a graph G
that is as small as possible.)
Let G be a connected, weighted, undirected graph. For any cycle in G, the minimum spanning tree of
G excludes the maximum-weight edge in that cycle.
(Hint; Use contradiction. Assume that the minimum spanning tree T does include the maximum-
weight edge in a cycle. Then show that we can modify T to find a new spanning tree ‘F’ with smaller
total weight.)
(b) Prove that RevserseDelete always returns the MST. (Hint: Use the Cycle Property.)
(8) [Challenge] Suppose we are given both an undirected graph C with weighted edges and a minimum
spanning tree T of C. Describe an algorithm to update the minimum spanning tree when the weight of
a single edge e is decreased.