GATE CS 2020 · Question 41 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
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 weighted edge (u, v) ∈ V × V is added to G. The worst case time complexity of determining if T is still an MST of the resultant graph is
- (A) Θ(|E| + |V|)
- (B) Θ(|E||V|)
- (C) Θ(|E| log |V|)
- (D) Θ(|V|)
Answer
Answer (D)
Answer from the official GATE CS 2020 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes