Incomplete solution? -> Find all minimum spanning trees for graph G that can be obtained using (a) Kruskal's algorithm and (b) Prims's algorithm starting with vertex t
To solve: Find all minimum spanning trees for graph G that can be obtained using (a) Kruskal's algorithm and (b) Prims's algorithm starting with vertex t.
Graph G:
Incomplete solution:
Isn't it that there are 4 orders when using Kruskal's since we have two choices of 2's and two choices of 5's (2 x 2 = 4 ways to order edges)?
Isn't it that there are 2 orders when using Prim's since we have two choices of 2's (starting from vertex t: t -> w -> x -> u -> either v or y -> z)?