In the fourth century, the Greek mathematician Pappus of Alexandria praised bees for their “geometrical forethought.” The hexagonal structure of their honeycomb seemed like the optimal way to partition two-dimensional space into cells of equal area and minimal perimeter — allowing the insects to cut down on how much wax they needed to produce, and to spend less time and energy building their hive.