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 x matrix represent the adjacency matrix for a graph with nodes VAZCD
Draw the graph. Make sure to set the weights between and
Part b:
Run the first iterations of BellmanFord on the graph above. Show both d array and pi array.
Part c:
Now chante all the negative weights in the graph above to positive weights so if the weight is it becomes
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
