Let be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE?
- : Minimum spanning tree of does not change.
- : Shortest path between any pair of vertices does not change.
View worked solution
Answer: A
To determine which statements are true, let us analyze and individually.
Analysis of Statement : Minimum Spanning Tree (MST)
Let be a connected undirected graph with vertices. Any spanning tree of contains exactly edges.
Let the original weight of an edge be . If every edge weight is increased by a constant , the new weight of the edge becomes .
The total weight of any spanning tree under the new weight function is:
Since is a constant added to the weight of every spanning tree, the relative ordering of the weights of all spanning trees remains unchanged. Therefore, the spanning tree that minimizes will also minimize .
Alternatively, greedy algorithms like Kruskal's or Prim's rely solely on the relative order of edge weights. Since , the sorted order of edges remains identical. Thus, the MST does not change. Statement is TRUE.
Analysis of Statement : Shortest Path
The shortest path between two vertices depends on the number of edges in the path. Adding a constant to each edge penalizes paths with more edges more heavily than paths with fewer edges.
Let us consider a counterexample:
- Suppose we have two paths between vertices and :
- Path consisting of edges with weights and (Total weight = ).
- Path consisting of edge with weight (Total weight = ).
- Initially, the shortest path is with a cost of .
- Now, increase every edge weight by :
- New weight of .
- New weight of .
After the increase, the shortest path changes to (cost ). Thus, the shortest path can change. Statement is FALSE.
Hence, only statement is true.
Free practice · Your answers on this page are not saved.
