Вопрос

First: The general running time of Dijkstras Shortest Path algorithm is

Dijkstra generalrunning time

where m is the number of edges and n the number of vertices

Second: the number of expected decreasekey operations is the following

expected running time

Third: The expected running time of dijkstra with a binary Heap which allows all operations in log(n) time is

expected binary heap

But why is the running time on dense graphs linear if we consider a graph dense if dense graph

Can someone help with the O-notation and log calculations here?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top