Let G be a weighted graph with edge weights greater than one and G’be the graph constructed by squaring the weights of edges in G. Let T and T’ be the minimum spanning trees of G and G’, respectively, with total weights t and t’. Which of the following statements is TRUE?

**(A)** T’ = T with total weight t’ = t^{2}

**(B)** T’ = T with total weight t’ < t^{2}

**(C)** T’ != T but total weight t’ = t^{2}

**(D)** None of the above

**Answer:** **(D)** **Explanation:** **Squaring the weights of the edges in a weighted graph will not change the minimum spanning tree**. Assume the opposite to obtain a contradiction. If the minimum spanning tree changes then at least one edge from the old graph G in the old minimum spanning tree T must be replaced by a new edge in tree T’ from the graph G’ with squared edge weights. The new edge from G’ must have a lower weight than the edge from G. This implies that there exists some weights C1 and C2 such that C1 < C2 and C12 >= C22. This is a contradiction.

Source: http://www.cs.nyu.edu/courses/spring06/V22.0310-001/hw3.htm

Sums of squares of two or more numbers is always smaller than square of sum.

Example: 2^2 + 2^2 < (4)^2

But

there is one counter example when the graph has only one edge. In that case, the two values are same.

## Recommended Posts:

- GATE | GATE CS 2012 | Question 1
- GATE | GATE CS 2012 | Question 2
- GATE | GATE CS 2012 | Question 3
- GATE | GATE CS 2012 | Question 4
- GATE | GATE CS 2012 | Question 5
- GATE | GATE CS 2012 | Question 65
- GATE | GATE CS 2012 | Question 7
- GATE | GATE CS 2012 | Question 8
- GATE | GATE CS 2012 | Question 9
- GATE | GATE CS 2012 | Question 10
- GATE | GATE CS 2012 | Question 11
- GATE | GATE CS 2012 | Question 12
- GATE | GATE CS 2012 | Question 65
- GATE | GATE CS 2012 | Question 14
- GATE | GATE CS 2012 | Question 15
- GATE | GATE CS 2012 | Question 16
- GATE | GATE CS 2012 | Question 17
- GATE | GATE CS 2012 | Question 18
- GATE | GATE CS 2012 | Question 19
- GATE | GATE CS 2012 | Question 65