GATE CS 2016, set 1 · Question 24 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Let G 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 ?
P: Minimum spanning tree of G does not change
Q: Shortest path between any pair of vertices does not change
- (A) P only
- (B) Q only
- (C) Neither P nor Q
- (D) Both P and Q
Answer
Answer (A)
Answer from the official GATE CS 2016 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes