Question
Consider a simple undirected weighted graph G, all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of G is/are TRUE?
Official answer and solution
- Official answer
- A, B and C
- From
- Official GATE 2022 answer key
Solution
Apply Kruskal's algorithm and the Cut Property of Minimum Spanning Trees with distinct edge weights.
Let be a connected undirected graph where all edge weights are distinct:
- (A) TRUE: Let be the edge with the smallest weight and be the edge with the second smallest weight. By Kruskal's algorithm, is selected first. Edge cannot form a cycle with alone because a cycle requires at least 3 edges in a simple graph. Thus is always selected.
- (B) TRUE: Consider the edges with the third and fourth smallest weights ( and ). Kruskal's algorithm considers in order. The only way could be rejected is if form a 3-cycle (). If that happens, and already span those 3 vertices. Edge cannot form a cycle using only and without involving . Therefore, must connect to at least one new vertex, so it cannot create a cycle and must be chosen. Thus, at least one of is always part of the MST.
- (C) TRUE: This is the Cut Property: for any non-trivial partition , the edge of strictly minimum weight crossing the cut must belong to the unique MST.
- (D) FALSE: When all edge weights in a connected graph are distinct, the minimum spanning tree is unique.
Therefore, (A), (B), and (C) are TRUE.
Options (A), (B), (C)
Claiming can have multiple MSTs when edge weights are distinct.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2022 Computer Science and Information Technology (CS)
- Question
- 49 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.