GATE CSE 2025 Session 1 Q64: Largest x keeping edge BC in every MST
- Algorithms
- 2 marks
- NAT
- No negative marking
Question
The maximum value of 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)

Try it: numerical answer: type the value
Show answer and explanation
Answer: 5 (official GATE 2025 final answer key)
Concept used: Cycle property: an edge is in every MST iff it is strictly lighter than the heaviest edge on every cycle-closing alternative path.
First step: Without B–C, the cheapest B-to-C connection in an MST is B–D (1), D–A (6), A–C (3); B–C must be strictly lighter than the 6 on this path.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2025 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs