Nonnegative Integer Weights: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
== Parameters ==  
== Parameters ==  


V: number of vertices
$V$: number of vertices


E: number of edges
$E$: number of edges


L: maximum absolute value of edge cost
$L$: maximum absolute value of edge cost


== Table of Algorithms ==  
== Table of Algorithms ==  
Line 26: Line 26:
|-
|-


| [[Dijkstra's algorithm with Fibonacci heap (Johnson 1981; Karlsson & Poblete 1983) (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Dijkstra's algorithm with Fibonacci heap (Johnson ; Karlsson & Poblete 1983)]] || 1981 || $O(E log log L)$ || $O(V+L)$ || Exact || Deterministic || [https://www.sciencedirect.com/science/article/pii/0166218X8390104X?via%3Dihub Time & Space]
| [[Dijkstra's algorithm with Fibonacci heap (Johnson 1981; Karlsson & Poblete 1983) (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Dijkstra's algorithm with Fibonacci heap (Johnson ; Karlsson & Poblete 1983)]] || 1981 || $O(E \log \log L)$ || $O(V+L)$ || Exact || Deterministic || [https://www.sciencedirect.com/science/article/pii/0166218X8390104X?via%3Dihub Time & Space]
|-
|-
| [[Gabow Ahuja Algorithm (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Gabow Ahuja Algorithm]] || 1990 || $O(E + V*((log(L))^{0.5}) )$ || $O(m + log C)$ || Exact || Deterministic || [https://dl.acm.org/doi/10.1145/77600.77615 Time & Space]
| [[Gabow Ahuja Algorithm (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Gabow Ahuja Algorithm]] || 1990 || $O(E + V*((\log(L))^{0.5}) )$ || $O(E + \log C)$ || Exact || Deterministic || [https://dl.acm.org/doi/10.1145/77600.77615 Time & Space]
|-
|-
| [[Thorup's algorithm (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Thorup's algorithm]] || 2004 || $O(E + V min(log log V, log log L))$ || $O(V)$? ("linear-space queue") || Exact || Deterministic || [https://dl.acm.org/doi/10.1016/j.jcss.2004.04.003 Time & Space]
| [[Thorup's algorithm (Nonnegative Integer Weights Shortest Path (Directed Graphs))|Thorup's algorithm]] || 2004 || $O(E + V min(log log V, log log L))$ || $O(V)$? ("linear-space queue") || Exact || Deterministic || [https://dl.acm.org/doi/10.1016/j.jcss.2004.04.003 Time & Space]
Line 34: Line 34:
|}
|}


== Time Complexity graph ==  
== Time Complexity Graph ==  


[[File:Shortest Path (Directed Graphs) - Nonnegative Integer Weights - Time.png|1000px]]
[[File:Shortest Path (Directed Graphs) - Nonnegative Integer Weights - Time.png|1000px]]
== Space Complexity graph ==
[[File:Shortest Path (Directed Graphs) - Nonnegative Integer Weights - Space.png|1000px]]
== Pareto Decades graph ==
[[File:Shortest Path (Directed Graphs) - Nonnegative Integer Weights - Pareto Frontier.png|1000px]]


== References/Citation ==  
== References/Citation ==  


https://dl.acm.org/doi/10.1016/j.jcss.2004.04.003
https://dl.acm.org/doi/10.1016/j.jcss.2004.04.003

Latest revision as of 09:06, 28 April 2023

Description

The shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized. Here, the weights are restricted to be nonnegative integers.

Related Problems

Generalizations: nonnegative weights

Related: General Weights, Nonnegative Weights, Second Shortest Simple Path, st-Shortest Path, 1-sensitive (3/2)-approximate ss-shortest paths, 2-sensitive (7/5)-approximate st-shortest paths, 1-sensitive decremental st-shortest paths, 2-sensitive decremental st-shortest paths, Replacement Paths Problem

Parameters

$V$: number of vertices

$E$: number of edges

$L$: maximum absolute value of edge cost

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Dijkstra's algorithm with Fibonacci heap (Johnson ; Karlsson & Poblete 1983) 1981 $O(E \log \log L)$ $O(V+L)$ Exact Deterministic Time & Space
Gabow Ahuja Algorithm 1990 $O(E + V*((\log(L))^{0.5}) )$ $O(E + \log C)$ Exact Deterministic Time & Space
Thorup's algorithm 2004 $O(E + V min(log log V, log log L))$ $O(V)$? ("linear-space queue") Exact Deterministic Time & Space

Time Complexity Graph

Shortest Path (Directed Graphs) - Nonnegative Integer Weights - Time.png

References/Citation

https://dl.acm.org/doi/10.1016/j.jcss.2004.04.003