retagged by
755 views

1 Answer

Best answer
1 votes
1 votes

The answer should be none of these as it depends on the values we take.

In both cases - it may or may not change the shortest path.

 

Consider this case between 0 and 2 - if we reduce by one, the path doesn't change. If we, however, reduce by six, the path changes.

Similarly, consider this graph:

For the same source and destination as before, if we add one to all the edges, the path doesn't change. If we add 10 to all the edges, the shortest path changes.

 

edited by

Related questions

0 votes
0 votes
0 answers
2
DhruvaKashyap asked Dec 29, 2023
187 views
I have not been able to answer many of the Graph theory questions, I feel my comprehension of the topic is inadequate, could someone guide me to some reference material I...
1 votes
1 votes
1 answer
3
rahul sharma 5 asked Nov 18, 2017
5,452 views
Can someone share some multistage graph where dijkstra will fail but DP works correct?