Gale–Shapley Stable Matching

A stable matching always exists and is findable in O(n^2), but it's optimal for the proposing side. Mechanism design in twenty lines.

LP Duality

Every optimization problem has a shadow problem whose optimum is the same number, and it certifies your answer: the only post in the series about proving your...

Max-Flow Min-Cut

The bottleneck equals the capacity, exactly. A duality result you can see, and the workhorse behind matching and segmentation.

Competitive Analysis and Ski Rental

How to reason about decisions made without the future, with a provable ratio. Rent-vs-buy shows up in caching, autoscaling, and connection pooling.