closed by
280 views
0 votes
0 votes
closed with the note: duplicate of https://gateoverflow.in/69507/made-easy-test

For the graph given below Dijkstra’s algorithm does not provide correct shortest path tree.

Suppose a new graph that is different only in weight between Q to S is created. The number of values of edge [Q to S] that ensures that Dijkstra’s provide the correct shortest path tree where the values of edge (Q to S) ∈ [–20, 20] and ‘P’ is the source vertex are ______.

closed by

Related questions

0 votes
0 votes
0 answers
2
Ray Tomlinson asked Aug 9, 2023
272 views
what they want to tell and it is true or false?
0 votes
0 votes
1 answer
3
Ray Tomlinson asked Aug 9, 2023
461 views
How many times is the comparison $i >= n$ performed in the following program?int i = 200 n = 80; main() { while (i >= n) { i = i - 2 n = n + 1 } }