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?
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? Correct Answer (a, b), (b, c), (c, i), (c, f), (f, g), (g, h), (c, d), (d, e)
The correct answer is option 1 and option 3.
Concept:
A minimum spanning tree (MST) or minimum weight spanning tree is a subset of the edges(V – 1 ) of a connected, edge-weighted undirected graph G(V, E) that connects all the vertices together, without any cycles and with the minimum possible total edge weight.
Key Points
[ alt="F1 Shraddha Raju 03.04.2021 D21" src="//storage.googleapis.com/tb-img/production/21/04/F1_Shraddha_Raju_03.04.2021_D21.png" style="width: 348px; height: 140px;">
[ alt="F1 Shraddha Raju 03.04.2021 D22" src="//storage.googleapis.com/tb-img/production/21/04/F1_Shraddha_Raju_03.04.2021_D22.png" style="width: 348px; height: 140px;">
[ alt="F1 Shraddha Raju 03.04.2021 D23" src="//storage.googleapis.com/tb-img/production/21/04/F1_Shraddha_Raju_03.04.2021_D23.png" style="width: 348px; height: 139px;">
Another final sequence is (a, b), (a, h), (g, h), (f, g), (c, f), (c, i), (c, d), (d, e) with a cost is 37(Two sequences possible ).