Bellman-Ford Shortest-Path Algorithm

From NovaOrdis Knowledge Base
Revision as of 02:41, 30 November 2021 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

External

Internal

Overview

A dynamic programming algorithm that can compute shortest path in graphs with negative length edges. The running time complexity is O(mn): there are n2 subproblems, and we might spend more than linear time for each subproblem: we have to do brute force search through a list of candidates that might be super-constant (each arc that comes into the vertex v provides a candidate for what the correct solution to the subproblem may be, and the number of candidates is proportional to the degree of vertex v).