Professional KnowledgeHardIBPS SO IT

In a network using Dijkstra's algorithm the time complexity with a binary heap on V vertices and E edges is:

  1. A. O((V+E) log V)
  2. B. O(V^3)
  3. C. O(VE)
  4. D. O(E)

Correct answer: A. O((V+E) log V)

Heap-based Dijkstra runs in O((V+E) log V).

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic