1.

Which of the following is false?(a) The spanning trees do not have any cycles(b) MST have n – 1 edges if the graph has n edges(c) Edge e belonging to a cut of the graph if has the weight smaller than any other edge in the same cut, then the edge e is present in all the MSTs of the graph(d) Removing one edge from the spanning tree will not make the graph disconnectedThe question was posed to me in exam.My question is based upon Minimum Spanning Tree topic in division Minimum Spanning Tree of Data Structures & Algorithms II

Answer»

Correct answer is (d) Removing one edge from the spanning tree will not make the graph disconnected

The best EXPLANATION: Every spanning tree has n – 1 EDGES if the graph has n edges and has no cycles. The MST follows the cut PROPERTY, Edge e BELONGING to a cut of the graph if has the weight smaller than any other edge in the same cut, then the edge e is present in all the MSTS of the graph.



Discussion

No Comment Found

Related InterviewSolutions