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

PYQ GATE 2005

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 601 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…