2,423 views
0 0 votes

How many numbers of spanning tree are possible?

1 Answer

Best answer
7 7 votes

just see this approach comment if anything wrong i did)

total edges=9  for mst number of edges must be in graph=v-1=5

step 1 : total combination

9c5=126

but this combination contains 3 edges,4edges,5 edges cycle.so subtraction from these must be done.

step 2: finding 3 edges cycle 

3 edges cycle are (162,652,523,534)- 4 cycles

now for each cycle 2 edges are remaining so choosing those 2 edges will take 6c2 ways.

total=4*6c2 

but if we choose 2 more edges then there may be chances of getting 4 edges cycle.

for example- in cycle 162 if we choose edge 6-5 and 2-5  cycle 1652 is possible,in cycle 625 if we choose 1-6 1-2 then 1652 is possible also in same cycle if we choose edge 5-3 2-3 then cycle 6532 is possible. 

3 EDGES CYCLE                                                      EDGES  ADDED                                     4 EDGES CYCLE FORMED

162                                                                   6-5 & 2-5                                                                     1652

625                                                          1-6,1-2 OR 2-3,5-3                                                              1652 &6532

235                                                            6-5,2-6 OR 5-4,3-4                                                              6532,5234

534                                                          2-5,2-3                                                                                        5234

so total 6 4-edges cycle will be formed so we must remove this 6 cycles 

4*6c2-6=54

case 3: finding 4 edges cycle (1652,6253,2345)

choosing the fifth edges will take 5c1 ways but we have to careful that choosing 5th edges can lead us to 5 edges cycle.

4 EDGES CYCLE                                                          EDGES ADDED                                       5 EDGES CYCLE

1652                                                                                     6-2                                                                 265216

6523                                                                                     2-5                                                                 253265

2345                                                                                       5-3                                                                532543

So 3*5c1-3=12       

case 4:choosing 5 edges cycle(123561,623456,253265,621652,352345)

total 5 

 

final answer:126-(54+12+5)=55

 

 

 

check this out .comment if anything wrong

• selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
645
645 views
meghna asked Oct 3, 2018
645 views
T/FIn a graph G=(V,E) suppose that each edge e ∊ E has an integer weight w(e) such that 1<= W(e) <=n Then there is a an o(mlogn) time algorithm to find a minimum spanning ...
0 0 votes
1 1 answer
116
116 views
GO Classes asked Aug 26
116 views
Consider the following statements.Let $M$ be an MST of a connected undirected graph with positive edge weights. If $7$ is added to every edge weight, $M$ is guaranteed to...
1 1 vote
1 1 answer
137
137 views
GO Classes asked Aug 25
137 views
Let $G=(V,E)$ be a connected weighted undirected graph in which all edge weights are distinct.Let, $e=(u,v)$ be an edge of weight $w(e)$.Construct a graph $G'$ containing...
1 1 vote
1 1 answer
783
783 views
Çșȇ ʛấẗẻ asked Mar 10, 2023
783 views
Determine the number of the spanning treess in the following graph ???