Question
The graph shown below has 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges: {(A, C), (B, C), (B, E), (E, F), (D, F)}. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all 8 edges of this graph is _____.
Official answer and solution
- Official answer
- 69
- From
- Official GATE 2015 answer key
Solution
Apply the cycle property of minimum spanning trees to establish lower bounds for all non-MST edge weights.
-
Given MST edges and weights:
Sum of MST edge weights = .
-
Non-MST edges:
The 3 non-MST edges are , , and .
All 8 edge weights are distinct positive integers. The weights already used in the MST are . -
Cycle Property bounds:
For any non-MST edge , its weight must be strictly greater than the maximum weight of any edge on the unique tree path between and :-
Edge :
Tree path between and : . Edges have weights and .The smallest integer not in is .
Hence, minimum . -
Edge :
Tree path between and : . Edges have weights and .The smallest integer not in is .
Hence, minimum . -
Edge :
Cut property: Consider the partition and . The cut edges are and .
Since is in the MST, must be the strictly lightest edge crossing this cut.
Therefore, .
The smallest integer is .
Hence, minimum .
-
-
Minimum Total Weight:
69
Forgetting that all 8 edge weights must be distinct, or missing the cut-crossing condition requiring w(C, D) > 15.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 1
- Question
- 53 of 65, printed as CS Q.43
- 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.