35 votes 35 votes 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 $G$ for this value of $x$ is ____. Algorithms gatecse-2018 algorithms graph-algorithms minimum-spanning-tree numerical-answers 2-marks + – gatecse asked Feb 14, 2018 • retagged Dec 1, 2022 by Lakshman Bhaiya gatecse 17.6k views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments flash12 commented Jan 5, 2019 reply Follow Share kruskal or prime which should take? 0 votes 0 votes Satbir commented Jan 3, 2020 reply Follow Share We can use Kruskal algo.i.e. keep selecting min weight edges and if a cycle occurs then ignore that edge. Do this until you select $n-1$ edges. $\therefore$ $4$ is correct. 14 votes 14 votes Akash 15 commented Jan 6 reply Follow Share Value of $x = 5$ $\therefore 4 \;\text{MWSTs}$ possible. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes The mid section consist of 1 and 3 and will always be included in spanning tree. Left section has 2 choices and in right section if we make x=5, then in right also we have 2 choices. Hence total possible spanning trees are 2*2= 4 for x=5 rish1602 answered Jul 2, 2021 rish1602 comment Share Follow See all 0 reply Please log in or register to add a comment.