Question
Consider a graph , where , , and weight of the edge is . The weight of minimum spanning tree of is _______.
Official answer and solution
- Official answer
- 99
- From
- Official GATE 2020 answer key
Solution
Identify the minimum weight edges in the graph and construct an MST path spanning all vertices.
The graph has vertices and edge weights for all .
Minimum edge weight analysis:
- Since and indices are integers, the minimum possible weight for any edge in is:
- Edges of weight 1 are exactly the adjacent-index pairs: for .
Spanning tree construction:
- Consider the subgraph formed by the 99 edges: .
- This forms a simple path spanning all 100 vertices of without any cycles.
- A spanning tree on 100 vertices must contain exactly edges.
- Since every edge in has the absolute minimum weight possible in (weight 1), no spanning tree can have a smaller total weight.
- Total weight of the minimum spanning tree:
Final answer
99
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2020 Computer Science and Information Technology (CS)
- Question
- 59 of 65, printed as CS Q.49
- 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.