learngraphtheory.org

Interactive Graph Theory Learning

Guest User

Using app without sign in

Cover of the book Optimization in Python

New book

Optimization in Python

PuLP, OR-Tools and Pyomo by Example

By Mohammed Islam Hadjoudj

Turn real business decisions into optimization models and solve them in Python with free, open-source tools.

Available inKindlePaperback

412 pages

Learning Path

Master graph theory through interactive lessons

0 of 8 completed0%

Shortest Path Algorithms

Intermediate
Key Concepts:
DijkstraBellman-FordA* Algorithm+6 more
Ready to learn?

Click to open the full interactive lesson experience.

Shortest Path Algorithms

Master the fundamental algorithms for finding shortest paths in weighted graphs, including Dijkstra's, Bellman-Ford, A*, and Floyd-Warshall algorithms.

40 minutes
Intermediate
0/7 sections
DijkstraBellman-FordA* AlgorithmFloyd-WarshallBFSJohnson's AlgorithmShortest PathWeighted GraphsNegative Cycles

Shortest Path Algorithms

Introduction

The shortest path problem seeks the minimum-cost path between points in a graph, where cost can represent distance, time, or any numerical metric. This problem underpins critical applications in navigation, computer networks, robotics, logistics, social network analysis, and many other fields.

Problem Definition

Given a weighted graph G = (V, E) and vertices s (source) and t (target), find the path from s to t with minimum total weight.

Types of Shortest Path Problems

  1. Single-Source Shortest Path: From one vertex to all others
  2. Single-Destination Shortest Path: From all vertices to one target
  3. Single-Pair Shortest Path: Between two specific vertices
  4. All-Pairs Shortest Path: Between every pair of vertices
Cover of the book Optimization in Python

New book

Optimization in Python

PuLP, OR-Tools and Pyomo by Example

By Mohammed Islam Hadjoudj

Turn real business decisions into optimization models and solve them in Python with free, open-source tools.

  • Every chapter goes from a business story to tested code
  • Routing, scheduling, facility location, finance and more
  • Free solvers only: HiGHS, CBC, SCIP and CP-⁠SAT
Available inKindlePaperback

412 pages

Section 1 of 7