You are given an undirected graph with the following adjacency matrix.
Suppose we use Prim’s algorithm to determine the minimum spanning tree of this graph, and we start building the three with node A.
Question 1: What is the second node that we put onto the minimum spanning tree?
[ 12, D ] [ 91, B ]We then pull the smallest node off the multimap and put it on the spanning tree. That is Node D.
Question 2: What is the third node that we put onto the minimum spanning tree?
[ 84, G ] [ 91, B ]We then pull the smallest node off the multimap and put it on the spanning tree. That is Node G.
Question 3: What is the fourth node that we put onto the minimum spanning tree?
[ 20, H ] [ 45, E ] [ 91, B ]We then pull the smallest node off the multimap and put it on the spanning tree. That is node H.
Question 4: After we put the fourth node onto the spanning tree and process its edges, what is the order of the nodes on the multimap (give your answer as node letters with no spaces with no spaces, such as “ABCD”).
[ 39, F ] [ 45, E ] [ 91, B ] [ 112, I ]So the answer is "FEBI".