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$? Algorithms go2025-mockgate-4 numerical-answers algorithms minimum-spanning-tree + – gatecse asked Feb 1, 2021 • recategorized Feb 1, 2021 by Lakshman Bhaiya gatecse 373 views answer comment Share Follow See 1 comment See all 1 1 comment reply shashankrustagi commented Feb 3, 2021 reply Follow Share apply kirchoff’s condition, and find the cofactor of any element in the matrix, you will get 8 6 votes 6 votes Please log in or register to add a comment.
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 faisal_sayyed answered Jan 19, 2023 faisal_sayyed comment Share Follow See all 0 reply Please log in or register to add a comment.
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$. gatecse answered Feb 1, 2021 • edited Feb 1, 2021 by soujanyareddy13 gatecse comment Share Follow See all 0 reply Please log in or register to add a comment.