recategorized by
373 views
3 votes
3 votes
An undirected graph $G(V,E)$ contains $n(n>2)$ nodes named as $1,2,3,4, \dots , n$. Two vertices are adjacent if $0 < \mid i-j \mid \leq 2.$ All the edge weights is unity. How many MST are possible for $n=4$?
recategorized by

2 Answers

4 votes
4 votes
To connect 4 vertices we need 3 edges,

In total, we have 5 edges, so $5\choose3$ = $10$

Now in this, we have counted the MST where there will be a cycle formed with the vertices

1 – 2 – 3 connected and 4 disconnected

2 – 3 – 4 connected and 1 disconnected

So, we remove these cases from total of 10

Ans = 10 - 2 = 8
3 votes
3 votes



Total number of edges in the graph when $n=4$ are $5$, for MST we must select $3$ edges. so total possible ways will be $^5C_3 = 10$. But out of these selections in $2$ of the cases the graph gets disconnected.


















MST neither create cycle nor disconnected graph.

So the number of MST are $10-2 = 8$.

edited by
Answer:

Related questions

5 votes
5 votes
1 answer
2
gatecse asked Feb 1, 2021
310 views
Consider a selection sorting implementation which takes $8$ time units for input of size $8$. How much time units will it take for an input of size $32?$
35 votes
35 votes
9 answers
4
gatecse asked Feb 14, 2018
17,606 views
Consider the following undirected graph $G$:Choose a value for $x$ that will maximize the number of minimum weight spanning trees (MWSTs) of $G$. The number of MWSTs of $...