Consider a graph G = (V, E), where V = {v1, v2, ..., v100}, E = {(vi, vj)|1 ≤ i < j ≤ 100}, and weight of the edge (vi, vj) is |i - j|. The weight of minimum spanning tree of G is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2020 · Q49
Time
Your answerNumerical answer
Solution
Official answer: 99
Minimum Spanning TreesA minimum spanning tree (MST) for a graph with vertices requires edges.
The edge weights are given by . The minimum possible edge weight between any two distinct vertices is , which occurs between consecutive vertices for .
Selecting all 99 such edges:
forms a connected path covering all 100 vertices with no cycles, which is a valid spanning tree.
Total weight of this MST:
Try the question first, then check your work.
Examiner trap
Find the smallest possible edge weight between adjacent numbered vertices and see if they can form a single spanning tree.
This Minimum Spanning Trees previous year question is Q49 of the GATE CSE 2020 paper. Find more GATE CSE PYQs on Minimum Spanning Trees in Algorithms, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Minimum Spanning Trees PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Minimum Spanning Trees has 13 GATE CSE PYQs across 9 papers from 2011 to 2026. 3 of them are 2-mark NAT questions like this one, and GATE CSE 2020 has 2.
How GATE tests Minimum Spanning TreesIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.