The algorithm selects the next node with the _______ shortest distance from the source node.

  • Average
  • Largest
  • Median
  • Smallest
In Dijkstra's algorithm, the next node is selected based on having the smallest shortest distance from the source node. The algorithm prioritizes nodes with the minimum known distance, ensuring that it explores the most promising paths first.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *