Deprecated: Implicit conversion from float-string "1673789870.732" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1673789870.732" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1673789870.732" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1673789870.732" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1673789870.732" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Algorithms: number of spanning tree
retagged by
6,042 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 ________.

retagged by

2 Answers

Best answer
9 votes
9 votes

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
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:

Related questions


Deprecated: Implicit conversion from float-string "1548849540.664" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1548849540.664" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1548849540.664" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1548849540.664" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1548349763.234" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1548349763.234" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1548349763.234" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1548349763.234" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
1.6k
views
1 answers
1 votes
Ram Swaroop asked Jan 30, 2019
1,585 views
Consider a simple undirected weighted graph G(V, E) with 10 vertices and 45 edge, assume (u, v) are two vertices weight of a edge is =4lu- vl then the minimum cost of the...
4.8k
views
3 answers
11 votes
Gunjan Rathore asked May 2, 2015
4,765 views
How many spanning trees are possible from the graph given below?$24$$34$$44$$54$
1.4k
views
1 answers
5 votes
Mahendra Singh Kanya asked Mar 18, 2018
1,357 views
How do we come up with this formula for number of spanning tree of a n vertex complete graph Kn= $n^{n-2}$