Dijkstra and Shortest Path Algorithms - Implementations in C++ - Competitive Exam Level

Download Q&A
Q. In the context of Dijkstra's algorithm, what does 'relaxation' refer to?
  • A. Updating the distance of a node
  • B. Removing a node from the graph
  • C. Adding a new edge
  • D. Sorting the nodes
Q. What is the time complexity of Dijkstra's algorithm when using a binary heap?
  • A. O(V^2)
  • B. O(E log V)
  • C. O(V log V)
  • D. O(E + V)
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