IAE Academy

GATE 2026 CS1 Q.49: solution and answer

GATE 2026 · CS1Q.49 · 2 marks · MSQ

Let be a simple, undirected, edge-weighted graph with unique edge weights.

Which of the following statements about the minimum spanning trees (MST) of is/are true?

  1. (A)

    In every cycle of , the edge with the largest weight in is not in any MST

  2. (B)

    In every cycle of , the edge with the smallest weight in is in every MST

  3. (C)

    For every vertex , the edge with the largest weight incident on is not in any MST

  4. (D)

    For every vertex , the edge with the smallest weight incident on is in every MST

See the question in the paper

Answer and solution

ANSWER

A;D — Statements A and D are true (the maximum-weight edge in any cycle is excluded from every MST by the cycle property; the minimum-weight edge incident on any vertex is included in every MST by the cut property applied to the trivial cut {v}). B and C are false.

Official answer: A, DSource: Official answer key, GATE 2026 CS1 (IIT Guwahati)

  1. Since all edge weights in are distinct, has a unique MST, and both the cycle property and the cut property hold in their strict (no-tie) form.

  2. Cycle property (Statement A): In any cycle , let be the strictly maximum-weight edge in . If were in some spanning tree , removing splits into two components; since lies on a cycle, some other edge of (with ) crosses back between these two components. Replacing with gives another spanning tree that is no heavier, and strictly lighter because weights are unique — so was not minimum. Hence the max-weight edge of every cycle is excluded from every MST: Statement A is TRUE.

  3. Testing Statement B with a counterexample: Take vertices with edges , , , , . The cycle --- has weights , so its minimum-weight edge is (weight 3).

  4. Running Kruskal's algorithm (edges in increasing order ): add ; add (now connected); skip since it would close a cycle; add to connect . The unique MST is , which does not contain — the minimum edge of that cycle. So a cycle's minimum edge need not be in the MST: Statement B is FALSE.

  5. Testing Statement C: Take any vertex of degree 1 (a leaf), for instance in a simple path graph. Its single incident edge is simultaneously the largest- and smallest-weight edge incident on it. Since removing this edge would disconnect from the rest of the graph, this edge must belong to every spanning tree, including the MST — so the 'largest incident edge' at IS in the MST, contradicting the claim that it is in no MST: Statement C is FALSE.

  6. Cut property (used for Statement D): For any cut , if is the strictly minimum-weight edge crossing the cut, then lies in every MST — any spanning tree lacking can be improved by swapping in for some heavier crossing edge that its addition would make redundant.

  7. Statement D: Apply the cut property to the trivial cut for an arbitrary vertex . The edges crossing this cut are exactly the edges incident on . Therefore the minimum-weight edge incident on is the unique minimum-weight crossing edge of this cut, and by the cut property it must lie in every MST. Since was arbitrary, this holds for every vertex: Statement D is TRUE. (This is also the principle behind Borůvka's algorithm, where each component picks its own cheapest outgoing edge.)

  8. Hence the true statements are A and D.

KEY IDEA

Because all edge weights are unique, has a unique MST, and two classical results pin down every option: the cycle property (in any cycle, the strictly max-weight edge is never in an MST) and the cut property (across any cut, the strictly min-weight crossing edge is in every MST). Applying the cut property to the trivial cut — whose crossing edges are exactly 's incident edges — shows the minimum edge at each vertex is forced into every MST.

WATCH OUT FOR

Confusing "every cycle's minimum edge is safe/must be in the MST" (false — it can be excluded once a cheaper path already connects its endpoints, as Kruskal shows) with the correct cut-property statement about a vertex's minimum incident edge; and assuming an edge's local extremal property (largest/smallest at a vertex) behaves symmetrically to its extremal property in a cycle, when cycles and cuts are genuinely dual/opposite structures in MST theory.

From the GATE 2026 CS1 paper. Every question of this paper · Download the full paper · All 28 Graph algorithms questions, with notes

More Graph algorithms questions