1.

How many spanning trees does a complete bipartite graph contain?(a) n^m(b) m^n-1 * n^n-1(c) 1(d) 0I have been asked this question in an online interview.The doubt is from Bipartite Graphs in chapter Bipartite Graphs of Data Structures & Algorithms II

Answer»

Correct answer is (B) m^n-1 * n^n-1

The best I can explain: Spanning TREE of a given graph is defined as the subgraph or the tree with all the given VERTICES but having minimum number of edges. So, there are a total of m^n-1 * n^n-1 spanning TREES for a complete bipartite graph.



Discussion

No Comment Found

Related InterviewSolutions