Give Simple Example Directed Graph Negative Weight Edges Dijkstra S Algorithm Produces Inc Q37233166

Give a simple example of a directed graph with negative weightedges for which Dijkstra’s algorithm produces incorrect answers.Why doesn’t the proof of Theorem 24.6 go through whennegative-weight edges are allowed? NO NEGATIVE WEIGHT CYCLES!!


Answer


n Dijkts gest once a vente is mseds losed Cand out of the opea se) it assuma thaf any node ontindli on it lend to grfey to ithe get け Paths the M Klodej, to all otle? d Cie nod 2 oud node s) 3t gives 3 e shostedt pedt to nodez Al ue See, fuom node A

n

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.