Let G = (V, E) be an undirected graph with distinct edge weights w (u, ) on
Question:
Let G = (V, E) be an undirected graph with distinct edge weights w (u, ν) on each edge (u, ν) ∈ E. For each vertex ν ∈ V, let max(ν) = max(u,ν) ∈ E {w(u, ν)} be the maximum-weight edge incident on that vertex. Let SG = {max(ν) : ν ∈ V} be the set of maximum-weight edges incident on each vertex, and let TG be the maximum-weight spanning tree of G, that is, the spanning tree of maximum total weight. For any subset of edges E′ ⊆ E, define w (E′) = ∑(u,ν)∈ E′ w(u, ν).
a. Give an example of a graph with at least 4 vertices for which SG = TG.
b. Give an example of a graph with at least 4 vertices for which SG ≠ TG.
c. Prove that SG ⊆ TG for any graph G.
d. Prove that w (TG) ≥ w(SG)/2 for any graph G.
e. Give an O(V + E)-time algorithm to compute a 2-approximation to the maximum spanning tree.
Step by Step Answer:
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest