Blog topic

Algorithms

How the classic graph algorithms work and where they came from: Dijkstra's shortest paths, greedy colouring, max flow, and Google's PageRank. Units 2, 5, 7, 9, and 12 of the masterclass present these algorithms with their proofs.

Articles

Preparing for the graph theory problems of the IMO and the IOI
26 Nov 2026

Preparing for the graph theory problems of the IMO and the IOI

Graph theory is the heart of the combinatorics problems of the Mathematical Olympiad and the core of the tasks of the Informatics Olympiad. The theorems to know, the algorithms to implement, where the past problems are, and a training rhythm that works.

A new upper bound for Ramsey numbers, 88 years later
20 Nov 2026

A new upper bound for Ramsey numbers, 88 years later

The bound R(k) at most 4 to the power k dates from 1935. In March 2023 four mathematicians replaced the 4 by a smaller number, and within a year four others brought it to 3.8. Here is what was proved, what a book is, and what Erdős's two unpaid prizes still ask.

How Google ranked the web with an eigenvector
14 Nov 2026

How Google ranked the web with an eigenvector

PageRank treats a web surfer as a random walk on the graph of links and ranks pages by how often the walk visits them. The ranking is an eigenvector, the number 0.85 keeps the walk from getting stuck, and a four-page web can be worked by hand.

Max flow, min cut, and a Cold War railway
27 Oct 2026

Max flow, min cut, and a Cold War railway

In 1955 two Air Force analysts computed how to cut the Soviet rail network to Eastern Europe most cheaply. A year later Ford and Fulkerson proved that the cheapest cut equals the largest flow. The report was secret until 1999. The theorem runs every network today.

What the greedy colouring algorithm gets wrong
4 Oct 2026

What the greedy colouring algorithm gets wrong

Colour the vertices one at a time, each with the first colour its neighbours have not used. On the right graph in the wrong order this uses n/2 colours where two would do. Here is the example, the order that fixes it, and what Brooks proved in 1941.

Six degrees of separation, measured
29 Aug 2026

Six degrees of separation, measured

Milgram sent letters across America in 1967 and counted the hands they passed through. Facebook ran the same experiment on 721 million people in 2011 and 1.6 billion in 2016. The numbers are 5.2, 4.74, and 3.57, and breadth-first search is how the last two were found.

How Dijkstra found the shortest path in twenty minutes
17 Aug 2026

How Dijkstra found the shortest path in twenty minutes

The algorithm behind every route planner was designed on a café terrace in Amsterdam in 1956, without pencil and paper, to show off a new computer. Here is the story, the three-page paper of 1959, and the algorithm run by hand on a small map.