European Starling (Sturnus vulgaris)
Starlings murmurate to confuse aerial predators. Each bird tracks just 6–7 nearest neighbors regardless of distance.
Cavagna et al. (2010) — PNAS
Bird murmurations are a classic example of emergent behavior; complex collective patterns arise from individual birds acting in response to a limited number of stimuli from their immediate neighbors. In doing so, they make a fluid defense that confuses predators, showing how decentralized signaling can contribute to the survival of the whole population.
Craig Reynolds' 1986 algorithm with three rules:
Starlings use topological neighborhoods, tracking the 6-7 nearest neighbors regardless of distance.
GPU-accelerated simulation running entirely in your browser: