Algorithms

Shortest Path Algorithms

How Dijkstra and Bellman-Ford find shortest paths, their limits and how Dijkstra differs from Prim.

What Are the 7 Types of Algorithms?

There is no single official list of algorithm types. Learn seven common design approaches, with a classic example of each and how they overlap.

3 min read

What Is the Bellman-Ford Algorithm?

Bellman-Ford finds shortest paths from one source vertex, even when some edges are negative. Learn how it relaxes edges and detects negative cycles.

3 min read

Related topics

More in algorithms