Skip to content

Shortest paths

  • 3.1 Shortest path problems

    Optimality of subpaths

    Open

  • 3.2 Optimality conditions and potentials

    Open

  • 3.3 The linear programming formulation

    The single-source model

    Open

  • 3.4 Shortest paths in acyclic graphs

    Open

  • 3.5 The Bellman–Ford algorithm

    Open

  • 3.6 Dijkstra's algorithm

    Dijkstra's algorithm on the reference graph · Negative lengths

    Open

Prerequisites

Objectives

At the end of this chapter you will be able to:

  • state the \(s\)–\(t\) and the single-source shortest path problems, and recognize when a negative cycle makes them ill-posed;

  • use the optimality of subpaths, Bellman's equations and the shortest path tree;

  • write the LP model of a shortest path as a unit flow, write its dual with the potentials \(\pi_i\), and use feasible potentials as a certificate of optimality;

  • run the algorithm for acyclic graphs, the Bellman–Ford algorithm (with the detection of a negative cycle) and Dijkstra's algorithm, prove their correctness and give their running time.


Next: 3.1 Shortest path problems


Exercises on this chapter: Shortest paths

In the interactive lab: Shortest paths: Dijkstra, Bellman–Ford, acyclic graphs.