When a colony outgrows its hive, it raises a new queen and roughly half the workers depart with the old queen as a swarm. The swarm does not fly straight to a new home — it first settles into a temporary bivouac cluster on a branch while a few hundred scout bees search the surrounding area for hollow cavities to nest in.
Thomas Seeley's decades of field experiments showed that swarms almost always choose the best available site, even when scouts start out split between several options — a form of collective decision-making comparable to neurons voting inside a brain.
A bivouacked swarm cluster hangs from a branch while scout bees search two candidate nest cavities, dance to advertise what they've found, and recruit nestmates until one site earns enough committed votes to trigger the whole colony's move.
Scouts evaluate cavities faster and dance more vigorously for higher-quality sites, so better options accumulate committed votes quicker — a real quorum-sensing mechanism that lets a leaderless swarm reliably pick the best home.
Adjust the quality of Site A and Site B, change how many scouts are searching, and set the quorum threshold. Watch the vote bars fill until one site wins and the entire cluster relocates there.
Biologist Thomas Seeley showed swarms choose correctly around 90% of the time even when scouts initially split their support between multiple sites of differing quality.