Single Choice Easy

QHow is the time complexity of Dijkstra's algorithm for finding the shortest path in a graph characterized?

ID: #21496 Time Complexity 122 views
Question Info
#21496Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(N) ✔ ✖
  • B O(log N) ✔ ✖
  • C O(N^2) ✔ ✖
  • D O(E + V log V), where E is the number of edges and V is the number of vertices. ✔ ✖
Correct Answer

Explanation

Dijkstra's algorithm has a time complexity of O(E + V log V) for finding the shortest path in a graph.

Share This Question

Challenge a friend or share with your study group.