Dijkstra and Shortest Path Algorithms - Implementations in C++

Download Q&A
Q. How does Dijkstra's algorithm handle nodes that have already been visited?
  • A. It ignores them
  • B. It re-evaluates their distances
  • C. It adds them to a stack
  • D. It removes them from the graph
Q. Which of the following is NOT a step in Dijkstra's algorithm?
  • A. Initialize distances
  • B. Select the node with the smallest distance
  • C. Update distances of adjacent nodes
  • D. Sort the entire graph
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely