GATE CS 2026 Set 1 | Question 49

Algorithms › Graph Algorithms · MSQ · 2 marks · Answer: A, D

  1. Question 49Algorithmsmsq2 marks
    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?
    • A.
      In every cycle of , the edge with the largest weight in is not in any MST
      ✓
    • B.
      In every cycle of , the edge with the smallest weight in is in every MST
    • C.
      For every vertex , the edge with the largest weight incident on is not in any MST
    • D.
      For every vertex , the edge with the smallest weight incident on is in every MST
      ✓

    Answer: A, D

    Solution

    Answer: A, D (with unique weights the MST is unique) • (A) True: this is the cycle property. The heaviest edge of any cycle can be swapped out for a lighter one. • (B) False: in triangle u-v-w with weights 5, 6, 7, add a path u-x-v with weights 1, 1. Edge u-v (5) is the lightest in its triangle but is not in the MST. • (C) False: for a leaf vertex, its only edge is both its heaviest and its lightest, and it must be in the MST. • (D) True: this is the cut property applied to the cut vs .

More GATE PYQ on Graph Algorithms

All GATE CS Algorithms PYQ →

Attempt GATE CS 2026 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →