1.

Which of the following edges form minimum spanning tree on the graph using kruskals algorithm?(a) (B-E)(G-E)(E-F)(D-F)(b) (B-E)(G-E)(E-F)(B-G)(D-F)(c) (B-E)(G-E)(E-F)(D-E)(d) (B-E)(G-E)(E-F)(D-F)(D-G)The question was posed to me in unit test.My enquiry is from Minimum Spanning Tree topic in chapter Minimum Spanning Tree of Data Structures & Algorithms II

Answer» CORRECT ANSWER is (a) (B-E)(G-E)(E-F)(D-F)

For explanation: Using Krushkal’s algorithm on the given graph, the generated minimum spanning TREE is SHOWN below.

So, the edges in the MST are, (B-E)(G-E)(E-F)(D-F).


Discussion

No Comment Found

Related InterviewSolutions