GATE CS 2022 | Question 49

Algorithms › Graph Algorithms · MSQ · 2 marks · Answer: A, B, C

  1. Question 49Algorithmsmsq2 marks
    is a simple undirected weighted graph with all distinct edge weights. Which statements about its MSTs are TRUE?
    • A.
      The edge with the second smallest weight is always part of any MST.
      ✓
    • B.
      One or both of the edges with the third and fourth smallest weights are part of any MST.
      ✓
    • C.
      The minimum-weight edge crossing any non-trivial cut (S, V\S) is always part of any MST.
      ✓
    • D.
      G can have multiple MSTs.

    Answer: A, B, C

    Solution

    Answer: (A), (B) and (C) With all distinct weights the MST is unique, so (D) is false. By the cut property, the lightest edge across any cut is in the MST (C). The two globally smallest edges are always in the MST (they cannot form a cycle alone), so the second-smallest is included (A). Among the third and fourth smallest, at least one must join without forming a cycle, so (B) holds.

More GATE PYQ on Graph Algorithms

All GATE CS Algorithms PYQ →

Attempt GATE CS 2022 in real GATE exam mode

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

Create free account →