The maximum value of x such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is … (answer in integer)
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 1 · Q64
Time

Your answerNumerical answer
Solution
Official answer: 5 (±0)
Graph Traversals, MSTs and Shortest PathsTo determine the maximum integer value of such that the edge is included in every Minimum Spanning Tree (MST), we can analyze the cuts and cycles of the graph.
Using Kruskal's algorithm:
The edge with the smallest weight is with weight .
The next smallest edge is with weight .
Selecting these two edges creates two disconnected components:
To form a spanning tree on the 4 vertices, exactly one edge crossing the cut between and must be chosen. The edges crossing this cut are:
with weight
with weight
with weight
with weight
For edge to be present in every MST, it must be the strictly unique minimum-weight edge crossing this cut:
If , there is a tie with edge , which means an MST could choose instead of , so would not be in *every* MST.
Therefore, the maximum integer value of is 5.
Try the question first, then check your work.
Examiner trap
Consider the cut separating the components formed by the two lightest edges, and .
This Graph Traversals, MSTs and Shortest Paths previous year question is Q64 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Graph Traversals, MSTs and Shortest Paths 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 Graph Traversals, MSTs and Shortest Paths 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.
Graph Traversals, MSTs and Shortest Paths has 7 GATE CSE PYQs across 7 papers from 2014 to 2025. 4 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2025 Set 1.
How GATE tests Graph Traversals, MSTs and Shortest PathsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.