- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Smile)
Suppose that we are given a weighted, directed graph $G=(V,E)$ at which the edges that begin from the initial node s could also have negative weights, but the weights of all the ther edges are non-negative and there are no cycles of negative weight.
Show that the Dijkstra's algorithm computes correctly the shortest paths from the vertex s at this graph.
Could you give me a hint how we could do this? (Thinking)
Suppose that we are given a weighted, directed graph $G=(V,E)$ at which the edges that begin from the initial node s could also have negative weights, but the weights of all the ther edges are non-negative and there are no cycles of negative weight.
Show that the Dijkstra's algorithm computes correctly the shortest paths from the vertex s at this graph.
Could you give me a hint how we could do this? (Thinking)