Let G(V, E) an undirected graph with positive edge weights. Dijkstra's…

GATE · 2005 · CS

Let G(V, E) an undirected graph with positive edge weights. Dijkstra's single-source shortest path algorithm can be implemented using the binary heap data structure with time complexity:

  1. A.

    O(| V |2)

  2. B.

    O (| E | + | V | log | V |)

  3. C.

    O (| V | log | V |)

  4. D.

    O ((| E | + | V |) log | V |)

Attempted by 518 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…