GATEverse Practice, past papers & mock tests
GATE 2010
AlgorithmsGreedy MethodmediumMCQ2 marks
Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4} with edge weights: W[0]={0,1,8,1,4}, W[1]={1,0,12,4,9}, W[2]={8,12,0,7,3}, W[3]={1,4,7,0,2}, W[4]={4,9,3,2,0}. What is the minimum possible weight of a spanning tree T in this graph such that vertex 0 is a leaf node in the tree T?
Save your progress

Related Algorithms PYQs