The GATE Grind

GATE 2015 CS (CS3) – Question 55

Algorithms · Graph Algorithms: Traversals, Minimum Spanning Trees, Shortest Paths · 2 marks · Numerical answer

A connected undirected graph has 100 vertices and 300 edges. Its minimum spanning-tree weight is 500. Every edge weight is increased by five. Find the new MST weight.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 995

Explanation

Every spanning tree on one hundred vertices has ninety-nine edges. Increasing each edge by five increases every spanning tree’s weight by the same 99×5=495, so the identity of an optimum remains valid. The new MST weight is 500+495=995.

More Graph Algorithms: Traversals, Minimum Spanning Trees, Shortest Paths questions

All Graph Algorithms: Traversals, Minimum Spanning Trees, Shortest Paths questions →