Given the graph below one of the following edges cannot be added in that order to find a minimum spanning tree algorithm.

Q
I. a-b
II. d-f
III. b-f
IV. d-c
V. d-e
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. II, I, III, V, IV
Explanation
The MST uses a–b (1), d–f (1), b–f (2), d–c (2) and d–e (3). Kruskal adds edges in non-decreasing weight order, so d–e (3) cannot come before d–c (2). Sequence C (II, I, III, V, IV) does exactly that; the other orders are valid.
More Data Structures and Algorithms questions
- Statement 1: su Given a graph G=(V, E) in which each vertex v € V has an associated positive weight w(v), we can Q use linear programming t…
- The solution of the recurrence T(n) = 3T(n/4) + n log n is
- Consider a B-tree of height h and minimum degree t ≥ 2 containing n keys, n ≥ 1. Which is correct?
- How many rotations are required during the construction of an AVL tree if the elements 35, 50, 40, 25, 30, 60, 78, 20, 28 are added in this…
- For the graph shown, the following depth-first search sequences are given: (A) abcghf (B) abfchg (C) abfhgc (D) afghbc. Which of the follow…
- Match each algorithm with its running time. (A) Breadth-first search, (B) Rabin–Karp algorithm, (C) Depth-first search, (D) Heap sort (wors…