All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2019

The weight of minimum spanning tree in graph G, calculated using Kruskal's algorithm is :

Figure

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 15

Explanation

Take edges in increasing order: 2, 3, 4 (no cycle); 5 would close a cycle with 3 and 4, so skip it; 6 joins the last vertex. Total = 2 + 3 + 4 + 6 = 15.

More Data Structures and Algorithms questions