in Algorithms retagged by
6,035 views
7 votes
7 votes

Consider a complete bipartite graph with ‘m’ and ‘n’ vertices. If m = 4, n = 4, then the number of spanning trees of graph are ________.

in Algorithms retagged by
6.0k views

4 Comments

will be 8??

total no of vertices
0
0
4096
0
0
number of labelled spanning trees of complete bipartite graph $K_{m,n}$ is $m^{n-1}n^{m-1}$ . I learned that formula from a question. don't know how it came.
5
5
Are they talking about minimum spanning tree or just spanning tree
0
0

2 Answers

9 votes
9 votes
Best answer

If G is complete Bipartite Graph K_{{p,q}},then number of spanning tree in G are  t(G)=p^{{q-1}}q^{{p-1}}

m=4,n=4 hence $4^{{3}} * 4^{3} => 4096$

https://ajc.maths.uq.edu.au/pdf/28/ajc_v28_p073.pdf This link has derivation on how to calculate spanning tree in bipartite graph using rooted spanning tree. 

selected by

2 Comments

that proof looks scary af :D
0
0
yes. :P
0
0
0 votes
0 votes
A complete bipartite graph is a graph where there are two sets of vertices, and every vertex in one set is connected to every vertex in the other set. The number of vertices in one set is denoted as 'm' and the number of vertices in the other set is denoted as 'n'.

In this problem, we are given that m = 4 and n = 4. The total number of vertices in the graph is m+n = 4+4 = 8.

The number of spanning trees of a complete bipartite graph with 'm' and 'n' vertices can be calculated using the formula: (m^(n-2)) * (n^(m-2))

In this case, the number of spanning trees of the graph is: (4^(4-2)) * (4^(4-2)) = 4^2 * 4^2 = 16 * 16 = 256

So, the number of spanning trees of the complete bipartite graph with 4 and 4 vertices is 256.

It is important to note that this formula works only for complete bipartite graph and not for any other type of graph.
Answer: