Consider a simple undirected weighted graph all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of is/are
GATE CSE 2022Algorithms › Graph AlgorithmsVerified
GATE CSE 2022 PYQ: Consider a simple undirected weighted graph G , \textit{G}, G , all of whose edge weights are distinct.…
- AThe edge with the second smallest weight is always part of any minimum spanning tree ofCorrect answer
- BOne or both of the edges with the third smallest and the fourth smallest weights are part of any minimum spanning tree ofCorrect answer
- CSuppose be such that and . Consider the edge with the minimum weight such that one of its vertices is in and the other in Such an edge will always be part of any minimum spanning tree ofCorrect answer
- Dcan have multiple minimum spanning trees.
Answer
(A, B, C) The edge with the second smallest weight is always part of any minimum spanning tree of G . \textit{G}. G .; One or both of the edges with the third smallest and the fourth smallest weights are part of any minimum spanning tree of G . \textit{G}. G .; Suppose S ⊆ V S \subseteq V S ⊆ V be such that S ≠ ϕ S \neq \phi S = ϕ and S ≠ V S \neq V S = V . Consider the edge with the minimum weight such that one of its vertices is in S S S and the other in V ∖ S . V \setminus S. V ∖ S . Such an edge will always be part of any minimum spanning tree of G . \textit{G}. G .
Approach
Use Kruskal's algorithm and the cut property. Since all edge weights are distinct, the MST is unique, so 'any MST' can be read as 'the unique MST' when reasoning. Check each statement against the behaviour of Kruskal's algorithm processing edges in increasing weight order.
With distinct edge weights the MST is unique. The second smallest edge is always safe, at least one of the third and fourth smallest edges must enter, and the cut property holds. Therefore the true statements are A, B, and C.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.