Skip to content
RED SAGSkills
hard20 pts · first answer countsgraphsshortest-path

Making all weights positive by adding a constant

To remove negative weights, a developer adds the same constant c to every edge, then runs Dijkstra. Why can this give the wrong path?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions