Consider the given graph (edge : weight) : 1–6 : 10, 1–2 : 28, 2–7 : 14, 2–3 : 16, 6–5 : 25, 5–7 : 24, 7–4 : 18, 5–4 : 22, 4–3 : 12
Consider the given graph (edge : weight) :
1–6 : 10, 1–2 : 28, 2–7 : 14, 2–3 : 16, 6–5 : 25, 5–7 : 24, 7–4 : 18, 5–4 : 22, 4–3 : 12
Its Minimum cost spanning tree is ..........
Show answerHide answer
Correct answer: (B) Edges 1–6 (10), 6–5 (25), 5–4 (22), 4–3 (12), 3–2 (16), 2–7 (14)
Explanation
Using Kruskal's algorithm: take 10 (1–6), 12 (3–4), 14 (2–7), 16 (2–3); skip 18 (4–7, cycle); take 22 (4–5); skip 24 (5–7, cycle); take 25 (5–6). Total = 10 + 12 + 14 + 16 + 22 + 25 = 99, which is option (b).