Weighted directed graph


Question:

Weighted directed graph

Give an example of a weighted directed graph with at most 5 vertices such that Dijkstra's algorithm will NOT give the correct results for the shortest path lengths from source s to every other vertex. Your graph may have negative edge weights but NO negative weight cycles. Indicate what answer Dijkstra's algorithm would give and what the correct answer should be.

Solution Preview :

Prepared by a verified Expert
Operating System: Weighted directed graph
Reference No:- TGS01937555

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)