Show the worked solutionDijkstra's algorithm fixes a vertex's distance as final the moment the vertex is picked as the closest unvisited one. That is safe only if no path found later can be shorter.With a negative edge, a path through a vertex picked later can still lower the distance of a vertex already fixed, and Dijkstra never revisits it. So the answer can be wrong.Cycles, undirected graphs and ties are all handled correctly. For negative edges (without negative cycles), use Bellman-Ford.Answer: When some edge weights are negativeClick to Join Our Telegram Group for Latest Update of MOCK TEST Click Here to Practice ALL Previous MOCK TEST FREE
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com