Skip to main content

GATE CSE 2026Algorithms › Graph AlgorithmsVerified

GATE CSE 2026 PYQ: Let G ( V , E ) G(V, E) G ( V , E ) be a simple, undirected, edge-weighted graph with unique edge weights.…

Let G(V,E)G(V, E) be a simple, undirected, edge-weighted graph with unique edge weights.
Which of the following statements about the minimum spanning trees (MST) of GG is/are true?

  1. A
    In every cycle CC of GG, the edge with the largest weight in CC is not in any MST
    Correct answer
  2. B
    In every cycle CC of GG, the edge with the smallest weight in CC is in every MST
  3. C
    For every vertex v∈Vv \in V, the edge with the largest weight incident on vv is not in any MST
  4. D
    For every vertex v∈Vv \in V, the edge with the smallest weight incident on vv is in every MST
    Correct answer

Answer

(A, D) In every cycle C C C of G G G , the edge with the largest weight in C C C is not in any MST; For every vertex v ∈ V v \in V v ∈ V , the edge with the smallest weight incident on v v v is in every MST

Approach

Use the two fundamental MST properties for graphs with distinct edge weights: the cycle property (the heaviest edge in any cycle is excluded from every MST) and the cut property (the lightest edge crossing any cut is included in every MST).

Statements A and D follow directly from the cycle property and cut property of MSTs when edge weights are distinct. Statements B and C are false, as shown by simple counterexamples involving extra edges or degree-1 vertices.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.