There will be an explanation for non-trivial questions.
Activity 1
1
Dijkstra’s algorithm guarantees finding the shortest path from a single source to all other vertices under which of the following conditions?
Answer: All edge weights must be non-negative.
2
Consider an undirected graph with 5 vertices . At a certain point +vertex to mark as processed, which vertex will be chosen?'>
secret note jfgp3d7rrx0
There will be an explanation for non-trivial questions.
Activity 1
1
Dijkstra’s algorithm guarantees finding the shortest path from a single source to all other vertices under which of the following conditions?
Answer: All edge weights must be non-negative.
2
Consider an undirected graph with 5 vertices . At a certain point in Dijkstra’s algorithm (starting from ), the current tentative distances are: . And the processed set is: . Assuming the next step is to select an unvisited @@ -80,4 +80,33 @@ there exists a negative cycle in the graph.
parent[v] = u
return False
-