GATE Computer ScienceHardGATE CS (PYQ pattern)

Which of the following statements about minimum spanning trees of a connected weighted undirected graph is/are correct? I. If all edge weights are distinct, the MST is unique. II. If the MST is unique, all edge weights are distinct. III. The lightest edge of the graph belongs to at least one MST. IV. An edge that is the strictly heaviest edge on some cycle belongs to no MST.

  1. A. I and III only
  2. B. I, II and IV only
  3. C. III and IV only
  4. D. I, III and IV only

Correct answer: D. I, III and IV only

I follows from the cut property with strict inequalities, III from the cut property, and IV from the cycle property (a strict heaviest edge on a cycle can always be swapped out). II is false: a tree with two equal-weight edges can still be the only MST, e.g. a path graph with two equal edges.

More Algorithms questions

Exams that ask this topic