Question: Let a random 4 x 4 matrix represent the adjacency matrix for a graph with 4 nodes V = { A , Z , C

Let a random 4x4 matrix represent the adjacency matrix for a graph with 4 nodes V={A,Z,C,D}
Draw the graph. Make sure to set the weights between -2 and 2.
Part 1b:
Run the first 2 iterations of Bellman-Ford on the graph above. Show both d array and pi array.
Part 1c:
Now chante all the negative weights in the graph above to positive weights+3. so if the weight is -2 it becomes 2+3=5.
Run Dijstra on the graph showing the Extract min actions and working through the adj. lists of each popped nodes as we did in class. Show both d array and pi array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!