GATE CS 2016 · Set-1 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0070

Let G be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increasedby 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
  1. A
    P only
  2. B
    Q only
  3. C
    Neither P nor Q
  4. D
    Both P and Q

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/39673/gate2016-1-14

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com