Dijkstra and Shortest Path Algorithms - Typical Problems - Competitive Exam Level

Download Q&A
Q. In Dijkstra's algorithm, what data structure is commonly used to select the next node with the smallest tentative distance?
  • A. Array
  • B. Stack
  • C. Priority Queue
  • D. Linked List
Q. What is the output of Dijkstra's algorithm if the graph is disconnected?
  • A. Shortest path to all nodes
  • B. Shortest path to reachable nodes only
  • C. No path found
  • D. An error
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