Question: Question 2 ( 2 5 Points ) :Let G = ( V , E ) be an undirected, connected graph with real - valued weights
Question Points:Let G VE be an undirected, connected graph with realvalued weights such that EV and all edge values are distinct.We define a secondbest minimum spanning tree as follows. Let T be the set of all spanning trees in G and let I be a minimum spanning tree of G Then a secondbest minimum spanning tree is aspanning tree I where T E T T such that wT minwTTwhere w is the function thatcalculates the total sum of the edges in a treea points Prove that the minimum spanning tree is unique, but that the secondbest minimum spanning tree need not be unique.b points Let I be the minimum spanning tree of G Prove that G contains some edge u v T and some edge x y T such that T u v U x y is a secondbest minimum spanning tree of G Hint: remember that a cut in a graph is a partition of vertices into two disjoint sets and an edge is called light if it is the edge with the smallest weight that crosses the cut. You may also refer to the following lemma from class: Suppose there's a minimum spanning tree for graph G containing S where S is a set of edges. Consider a cut that respects S and let u v be a light edge. Then there is a minimum spanning tree of G containing SU u vc points Extra Credit Optional: Describe an OV Dynamic Programming algorithm that, given any spanning tree I of graph G computes maxu v for all u v e V where maxu vi denotes an edge of maximum weight on the unique simple path between u and v in T Note: a simple path is a path that does not have repeating vertices. Hint: Assume you have access to a function called LCAv w that finds the lowest common ancestor of two nodes in OV time, where the lowest common ancestor of some nodes v and w in a tree is defined as the deepest node in the tree that has both v and w as descendantsd points Give an efficient algorithm to compute the secondbest minimum spanning tree of G and calculate the runtime in BigO notation points Extra Credit Optional: use the algorithm in part c above as part of your solution
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
