Predicting when and how collections of particles, robots, or animals become orderly remains a challenge across science and engineering.
In the 19th century, scientists and engineers developed the discipline of statistical mechanics, which predicts how groups of simple particles transition between order and