GATE / CS ARCHIVE

GATE CSE 2015 SET 3 / QUESTION 55

GATE CSE 2015 Set 3 Q55

Algorithms · Graph Algorithms · Full GATE CSE 2015 Set 3 paper

GATE 2015 Set 3, Q55 2 marks · NAT
Report issue

Graph Algorithms

Question 55, GATE 2015: A connected undirected graph G has 100 vertices and 300 edges. The weight of a minimum spanning tree is 500. If the weight of every edge in G is increased by 5, what is the new minimum spanning-tree weight?
Tap to enlarge
Answer & solution

Official answer: 995

1. The 300 graph edges do not all belong to the spanning tree. Connectedness makes every spanning tree have exactly |V|−1=99 edges, so the increment is 99·5 rather than 300·5. Because all candidate trees receive the same increment, a previously minimum tree remains minimum.

2. Every spanning tree on 100 vertices has 99 edges. Adding5 to every edge increases every spanning-tree weight by exactly 495, preserving their ordering and the set of minimum spanning trees. The new minimum weight is 500+495=995.

Original paper, page 75 · Answer key