Nonnegative Weights

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.

Parameters

  • VV: number of vertices
  • EE: number of edges
  • LL: maximum absolute value of edge cost

Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 5 of 5 algorithms

See more
Dijkstra's algorithm with Fibonacci heap (Fredman & Tarjan 1984; Fredman & Tarjan 1987)1984O(E+VlogV)O(E + V \log V)O(V)O(V)
Gabow's algorithm1983O(ElogL/log(2+(E/V)))O(E \log L/\log(2+(E/V)))O(V+E)O(V+E)
Dijkstra's algorithm with binary heap (Johnson 1977)1977O((E+V)logV)O((E + V) \log V)O(V)O(V)
Bellman–Ford algorithm (Dantzig 1960)1960O(V2logV)O(V^2 \log V)O(E)O(E)
Dijkstra's algorithm with list (Whiting & Hillier 1960)1960O(V2)O(V^2)O(V)O(V)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table