GATEverse Practice, past papers & mock tests
GATE 2011
AlgorithmsGreedy MethodhardMCQ2 marks
An undirected graph G(V,E) contains n (n > 2) nodes named v1, v2... vn. Two nodes vi, vj are connected if and only if 0 < |i - j| <= 2. Each edge (vi, vj) is assigned a weight i + j. What will be the cost of the minimum spanning tree (MST) of such a graph with n nodes?
Save your progress

Related Algorithms PYQs