×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

The best-case time complexity of Dijkstra's Algorithm is ______.

8. The best-case time complexity of Dijkstra's Algorithm is ______.

  1. O(V^2)
  2. O(E + V)
  3. O(V + E log V)
  4. O(E log V)

Answer

The correct answer is: D) O(E log V)

Explanation

When using an adjacency list along with a priority queue, the time complexity of Dijkstra's Algorithm is O (E log V), where:

  1. E is the number of edges
  2. V is the number of vertices.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.