GATE CS 2020 · Shortest Path Algorithms

MCQ · 2 marks · Problem PROG-GRPH-0055

Let \(G=(V,E)\) be a weighted undirected graph and let T be a Minimum Spanning Tree (MST) of G maintained using adjacency lists. Suppose a new weighed edge \((u,v)\in V \times V\) is added to G. The worst case time complexity of determining if T is still an MST of the resultant graph is
  1. A
    \(\Theta (|E|+|V|)\)
  2. B
    \(\Theta (|E||V|)\)
  3. C
    \(\Theta (|E|\log |V|)\)
  4. D
    \(\Theta (|V|)\)

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/333200/gate2020-cs-31

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