Dijkstra's algorithm with binary heap (Johnson 1977) (Nonnegative Weights Shortest Path (Directed Graphs))

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O((E + V) \log V)$

Space Complexity

$O(V)$ words

(keeping track of distances/previous node in path, along with heap)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word/Real RAM

Year

1977

Reference

https://dl.acm.org/citation.cfm?id=321993