3,028 views

1 Answer

Best answer
17 votes
17 votes
Dijkstra running time complexity is =>

$O\left ( E . T_{dk} + V . T_{em} \right )$

where $T_{dk}$ and $T_{em}$ are the decrease key and extract minimum operations of vertex set Q respectively.

For AVL tree, all the operations are $O\left ( Log V \right )$

Hence, Time complexity to run dijkstra becomes =>

=> $O\left ( E.|Log V| + V . | Log V| \right )$
selected by

Related questions

1 votes
1 votes
1 answer
1
Souvik33 asked Dec 19, 2022
697 views
If a -ve weight cycle is reachable from source, the Dijkstra's algorithm gets into an infinite loop TRUEFALSE
1 votes
1 votes
1 answer
2
vaishali jhalani asked Nov 4, 2016
1,069 views
When the graph contain negetive weight edges but no negetive weight cycle, in this case can dijkstra leads to incorrect result?
2 votes
2 votes
1 answer
3