Discrete math · Trees and graph algorithms

Minimum spanning trees

Connecting all points at minimum cost is a common network problem, and a simple greedy idea solves it, though greed often fails elsewhere.