Flocking is a decentralized coordination pattern for multi-agent systems where collective, lifelike group movement emerges from each agent (a boid) applying three simple, local behavioral rules. These rules are separation (steer to avoid crowding local flockmates), alignment (steer towards the average heading of local flockmates), and cohesion (steer to move toward the average position of local flockmates). The model, created by Craig Reynolds in 1986, demonstrates how complex global order can arise from minimal local interactions, a core principle of swarm intelligence and emergent coordination.
