Question: Please read the question thoroughly and answer correctly as the person who previously answered this did not do either of those. Thanks! (a) (10pt) Suppose
Please read the question thoroughly and answer correctly as the person who previously answered this did not do either of those. Thanks!


(a) (10pt) Suppose Dijkstra's algorithm runs on the following graph, starting at node A. Fill in the following table with the intermediate distance values of all the nodes at each iteration of the algorithm. The first two columns are already filled in for you. (c) (10pt) Draw a graph with at least two negative weight edge for which Dijkstra's algorithm produces the correct answer. Your graph must have no more than five vertices. Indicate the source where Dijkstra's algorithm will be started from. Label each vertex with the distance produced by Dijkstra's as well as with the correct distance. (d) (10pt) Professor Johnson suggests the following algorithm for finding the shortest path from node u to node w in a directed graph with some negative edges: add a large constant to each edge weight so that all the weights become positive, then run Dijkstra's algorithm starting at node u, and return the shortest path found to node w. You realize though that this algorithm will not always work. Give an example of a weighted directed graph for which Professor Johnson's strategy won't work. Your example should not have more than 5 vertices. You can use handwriting for this part
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
