1. Consider the following graph: 20 17 C A 5 22 00 E F 11 G (a) Use Kruskal's algorithm to compute the MST. It will suff
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Consider the following graph: 20 17 C A 5 22 00 E F 11 G (a) Use Kruskal's algorithm to compute the MST. It will suff
1. Consider the following graph: 20 17 C A 5 22 00 E F 11 G (a) Use Kruskal's algorithm to compute the MST. It will suffice to indicate the order in which edges are added to the MST. (15 points) (b) Now use Prim's algorithm starting at node A to compute the MST, again by indicating the order in which edges are added to the MST. (15 points) (c) Is it possible to change the starting node for Prim's algorithm such that it adds edges to the MST in the same order as Kruskal's algorithm? If so, which starting node(s) would work? Justify your answer.(15 points) Note: For parts (a) and (b), let (Nodel, Node2) represent the edge between two nodes Nodel and Node2. Therefore, your answer should have the form: (Nodel, Node2). (Node4, Node5), etc. Solution: 9
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!