G = (V, E) is an undirected simple graph in which each edge has a distinct weight, and e is a particular edge of G. Which of the following statements about the minimum spanning trees (MSTs) of G is/are TRUE? I. If e is the lightest edge of some cycle in G, then every MST of G includes e II. If e is the heaviest edge of some cycle in G, then every MST of G excludes e
G = (V, E) is an undirected simple graph in which each edge has a distinct weight, and e is a particular edge of G. Which of the following statements about the minimum spanning trees (MSTs) of G is/are TRUE? I. If e is the lightest edge of some cycle in G, then every MST of G includes e II. If e is the heaviest edge of some cycle in G, then every MST of G excludes e Correct Answer II only
I. If e is the lightest edge of some cycle in G, then every MST of G includes e (INCORRECT)
Let G = (V, E) is a graph with 4 vertices and 5 edges.
Here, cycle contains the edge weights (3, 4, 5) but edge weight 3 is not included in the MST.
So, if is the lightest edge of some cycle in G, then every MST of G may or may not include e.
II. If e is the heaviest edge of some cycle in G, then every MST of G excludes e (CORRECT)
According to the cycle property of MST, same example as above. If there is heaviest edge in cycle, then we will exclude it from the MST because there are other low-cost edges are available to include in MST (because edge weights are distinct here).