📚 Question Bank Q23 — Algorithms
Tags
Algorithms
Q23. Marks: +2.0 UGC NET Paper 2: Computer Science 2020

Consider the undirected graph below:

Using Prim's algorithm to construct a minimum spanning tree starting with node a, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?

1.(a, b), (b, h), (g, h), (f, g), (c, f), (c, i), (c, d), (d, e) 
2.(a, b), (b, h), (g, h), (g, i), (c, i), (c, f), (c, d), (d, e) 
3.(a, b), (b, c), (c, i), (c, f), (f, g), (g, h), (c, d), (d, e)  ✓ Correct
4.(a, b), (g, h), (g, f), (c, f), (c, i), (f, e), (b, c), (d, e) 
📄 All “Algorithms” questions across papers
🏷 Change Tag for this Question