Gate2020 cs Q48

0. Consider a graph G = (V, E), where V = {v1, v2, …, v100}, E = {(vi, vj)|1≤i≤j≤100}, and weight of the edge (vi, vj) is |i – j|. The weight of the minimum spanning tree of G is _____.

  • Option : A
  • Explanation :
    If we consider a small graph with 5 vertices, then the minimum spanning tree will have a weight 4.
    So, for n-vertices, MST weight would be (n – 1)
    As n = 100 (no. of vertices), So, minimum spanning tree weight = (100 – 1) = 99
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *