GATE / CS ARCHIVE

SIMILAR QUESTIONS / ALGORITHMS

Distinguish cycle maxima from cut minima in MSTs

2 questions solved the same way, newest first. Back to Algorithms

How these are solved

Distinct edge weights make a cycle maximum forbidden, but a cycle minimum is not generally forced. 2026 additionally tests the singleton-cut minimum and vertex maximum.

2 marks · MSQ
Report issue

Strict cut and cycle properties of MSTs

Graph Algorithms

Question 49, GATE 2026: A simple undirected edge-weighted graph has distinct edge weights. Assess: A each cycle’s largest edge belongs to no MST; B each cycle’s smallest edge belongs to every MST; C each vertex’s largest incident edge belongs to no MST; D each vertex’s smallest incident edge belongs to every MST.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, D

Givens and goal

A simple undirected edge-weighted graph has distinct edge weights. Assess: A each cycle’s largest edge belongs to no MST; B each cycle’s smallest edge belongs to every MST; C each vertex’s largest incident edge belongs to no MST; D each vertex’s smallest incident edge belongs to every MST.

Approach

Use exchange arguments for the valid cycle/cut statements and connected counterexamples for the invalid ones.

Step-by-step solution

1. For A, suppose an MST T contains the uniquely heaviest edge e of some cycle. Removing e splits T into two components. The rest of the cycle still connects e’s endpoints, so at least one other cycle edge f crosses that cut. Distinctness makes weight(f)<weight(e). Replacing e with f produces a lighter spanning tree, a contradiction. Thus A is true.
2. For D, take the cut {v} versus all other vertices. Let e be v’s unique lightest incident edge. If an MST omitted e, adding e creates a cycle. On that cycle another edge incident to v crosses the same cut and is heavier. Removing it would reduce the tree weight. Thus e must belong to every MST and D is true.
3. B is not a valid cycle rule. Consider edges ad=1, bd=2, ab=3, bc=4, ac=5. In the cycle a—b—c—a the smallest edge is ab=3. But Kruskal’s algorithm selects ad,bd,bc, forming an MST of weight 7 and excluding ab because a and b already have the cheaper connecting path a—d—b.
4. C fails even for a graph that is itself a tree. It has only one spanning tree, so every edge must be present, including a vertex’s heaviest incident edge. A two-vertex graph with one edge is the simplest witness.
5. Select A and D. Distinct weights make these strict exchange comparisons immediate. The ordinary MST question assumes connectivity; for a disconnected graph the corresponding statements apply componentwise to a minimum spanning forest, with no incident-edge claim needed for an isolated vertex.

Original paper, page 37 · Answer key

2 marks · MCQ
Report issue

Graph Algorithms

Question 40, GATE 2016: In a simple undirected graph with distinct edge weights and an MST, consider edge e. I: If e is the lightest edge of some cycle, every MST includes e. II: If e is the heaviest edge of some cycle, every MST excludes e. Which statements are true? A:I only. B:II only. C:both. D:neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The unique heaviest edge of a cycle is excluded by the cycle property, so II holds. I fails: take edges ab=3, bc=4, ca=5, ad=1, db=2. Edge ab is the lightest in triangle abc but the heaviest in triangle adb, hence excluded from the MST. Thus II only, B, assuming the connected graph/MST component context.

The valid cycle property concerns the heaviest edge: if a tree used it, deleting it creates a cut, and the rest of that cycle contains a lighter edge crossing the cut. Swapping would lower tree weight, contradicting minimality. The lightest edge of a cycle has no symmetric guarantee, because it might be a heavy choice relative to another route outside that cycle. Do not confuse it with the cut property, which guarantees inclusion of the unique lightest edge crossing a cut.

Original paper, page 16 · Answer key