LearndleNo. 5Wednesday 2 December 2026
The flock with no leader
Who is leading a flock of thousands of starlings?
This browser is not keeping data, so your progress will be lost when you close the page.
This discovery is not open yet
1 The question
A cloud that nobody steers
Welcome back. This is where you were.
A flock of starlings can hold thousands of birds. It twists, splits and turns as one piece, and no bird is the leader.
Each bird only looks at the few birds nearest to it. This page has a toy flock where you can break that, one rule at a time, and send in a falcon.
In about 8 minutes you will be able to
- Explain how a flock can move as one with no leader.
- Say what each of the three flocking rules prevents.
- Tell why a few neighbours are enough, and spot the same idea in a school of fish or a robot swarm.
2 Your guess
How many birds does a starling watch?
Welcome back. This is where you were.
Picture one starling in the middle of a flock of thousands. It cannot follow them all. Scientists measured where every bird in real flocks was, and worked out which other birds each one reacts to.
How many other birds does one starling pay attention to?
Pick a number in your head before you read on.
3 Try it
Break the flock, one rule at a time
Welcome back. This is where you were.
This is a toy model. Every bird does three things, looking only at its nearest neighbours: it keeps apart so it does not bump into them, it lines up with the way they point, and it stays close by turning towards them. Nobody tells it where to go. Switch a rule off and the flock changes in a way you can predict. Give each change about ten seconds.
The rules (on means the birds follow it)
Neighbours each bird watches
- Birds pointing the same way
- 0%
- Birds touching another bird
- 0%
- Separate groups
- 1
Groups are birds closer than a fixed distance to one another. The numbers belong to the toy flock, not to real starlings.
You switch off “Stay close”, send the falcon through, and wait. What does the flock look like?
Lining up keeps birds flying the same way, but it does not pull them back together. After the falcon has scattered them, nothing brings the pieces back to each other.Each bird still lines up with its neighbours, so every little group flies smoothly. But no rule pulls a bird towards the others, so the groups never meet again. That is what “stay close” is for.A heap is what happens when “keep apart” is off. Switch that one off and look at the number of birds touching.- Still one tight flock. The other two rules hold it together.
- Several groups, each flying as one, drifting apart.
- One heap, with all the birds touching.
Show the answer
Several groups, each flying as one, drifting apart.
Each bird still lines up with its neighbours, so every little group flies smoothly. But no rule pulls a bird towards the others, so the groups never meet again. That is what “stay close” is for.
Try these
- Press Play and let the flock fly for a few seconds.not done yet
- Switch off two of the three rules, one at a time, and watch what changes.not done yet
- Send the falcon through the flock.not done yet
4 Why
Order without an order-giver
Welcome back. This is where you were.
Every rule has its own job, and the flock needs all three. Nothing in the picture is steering. The order comes from each bird copying the few birds around it.
Each rule fixes one failure
With a rule off, the birds fail in a way you can predict. These are the numbers from your own flock. They are the toy’s numbers, and they change a little with every run.
- Line up off. Not tried yet. Switch this rule off, press Play and give it a few seconds. They still kept apart and stayed close, but each bird flew its own way, like a swarm of midges.
- Keep apart off. Not tried yet. Switch this rule off, press Play and give it a few seconds. The birds crowded into a heap.
- Stay close off, after the falcon. Not tried yet. Switch this rule off, send the falcon and wait about ten seconds. Each little group flew smoothly, but nothing pulled the groups back together.
- All rules on, after the falcon. Not tried yet. Press “Start again”, send the falcon and wait about ten seconds. Usually far fewer pieces, because “stay close” pulls them back together.
A turn passes from bird to bird
When the falcon comes, only the birds near it see it. They turn away, and their neighbours copy them, and those neighbours’ neighbours copy them. The turn crosses the flock like a message passed along a line of people. The sources say that real flocks respond almost at once, whatever their size.
The number of neighbours
Try one neighbour and the flock breaks into many pieces. With about seven it holds together. Real starlings seem to watch about six or seven neighbours, and it does not matter how close they are. A study of that number found it is a good bargain: six or seven neighbours give the most robustness for each neighbour a bird has to follow. The best number depends on how thick the flock is, not on how many birds it has.
If you guessed fewer than 5
You guessed {guess}. That is fewer than real starlings seem to watch. Your toy flock showed why: with only one or two neighbours it fell into pieces. About seven keeps it together.
If you guessed 5 to 9
You guessed {guess}. That is where the measurements land: about six or seven neighbours for each bird. That is a very small number for a cloud of thousands.
If you guessed 10 or more
You guessed {guess}. The measurements say far fewer: about six or seven neighbours. Most people expect birds to track a crowd. A few are enough, because each of them is tracking a few more.
Is this how real flocks work?
Partly. The three rules go back to Craig Reynolds’s 1987 program for films. The seven neighbours come from measuring real starlings in 3D. How birds sense each other, and how much more is going on, is still being studied. A toy flock shows that rules like these are enough to make a flock. It does not prove that these are the rules starlings use.
5 Use it
Three new situations
Welcome back. This is where you were.
Use what you found out. A wrong answer explains itself, and you can try again. Only your first try counts for your result.
A light show flies 300 small drones. Each drone only knows where its few nearest drones are and which way they point. In a test, the drones all fly the same way as a smooth group, but a few collide. Which rule is too weak?
Lining up and staying close gave a smooth group, but nothing pushes a drone away from one that is too near. That is the rule that stops the heap in your toy flock.They already fly the same way. If this rule were too weak, they would point in different directions.They already stay together as a group. Too weak a pull would let the group drift apart, not make it collide.- Keep apart.
- Line up.
- Stay close.
Show the answer
Keep apart.
Lining up and staying close gave a smooth group, but nothing pushes a drone away from one that is too near. That is the rule that stops the heap in your toy flock.
A fish predator darts in at the edge of a school. Fish on the far side, who cannot see it, turn almost at the same moment. Why?
No leader is needed. In your toy flock nobody gave a signal, and the falcon still turned the whole flock.The fish that see the danger turn, their neighbours copy them, and so on. The turn can cross the whole school very quickly.The ones on the far side could not. The turn reached them through the fish between them and the edge.- A leader fish saw it and gave the signal.
- Each fish copies the few fish next to it, so the turn passes along the school.
- Every fish saw the predator itself.
Show the answer
Each fish copies the few fish next to it, so the turn passes along the school.
The fish that see the danger turn, their neighbours copy them, and so on. The turn can cross the whole school very quickly.
You build a swarm of 200 small robots. Which plan survives better when a few robots break: every robot follows one leader robot, or every robot follows its seven nearest robots?
It is a single point of failure. If the leader breaks, everyone loses their plan at once.Losing a few robots leaves most robots’ neighbours in place, so the rest keep going. A flock loses birds to a falcon and keeps flying in the same way.The rules differ in what they depend on. One depends on a single robot, the other on no robot in particular.- Follow one leader. A single plan is more reliable.
- Follow the seven nearest. No robot is more important than another.
- They are equally reliable, because both are rules.
Show the answer
Follow the seven nearest. No robot is more important than another.
Losing a few robots leaves most robots’ neighbours in place, so the rest keep going. A flock loses birds to a falcon and keeps flying in the same way.
6 Done
What you found out
Welcome back. This is where you were.
A flock needs no leader. Each bird follows three short rules about the few birds nearest to it, and the order of the whole flock comes from that. Real starlings seem to watch only about seven neighbours.
When a large group moves as one, look for a short rule that everyone follows with their neighbours before you look for someone in charge.
Your result
A day counts for the streak when you finish that day’s discovery on that day, by your own clock. Finishing an older one from the archive marks it done, but it does not add to the streak.
Sources, and what the models leave out
The pages below could not all be opened directly while this edition was made, so most facts were checked through search results that quote them, and each was found in at least two places. The seven neighbours (six or seven in the first paper, 7 plus or minus 1.5 in a later review) come from the Rome study of flocks of a few thousand starlings and the models that followed it. The page’s flock is a toy model after Craig Reynolds’s boids and says so: it is flat and wraps around at the edges, every bird flies at nearly the same speed, a bird sees its nearest neighbours exactly, and the strengths of the three rules are made up to show the idea. Its numbers (the share of birds pointing the same way, the share touching, the number of groups) are the toy’s own and say nothing about real starlings. No leader appears in any real flock described in the sources. How birds sense each other is still an open question, and the page does not claim to know. Nothing is sent from your browser.
- Ballerini and others (2008), PNAS: interaction ruling animal collective behaviour (arXiv copy)Field study of starling flocks of a few thousand birds. Each bird interacts with a fixed number of neighbours, six or seven, not with everything within a set distance.
- Princeton University: birds of a feather track seven neighboursSeven is the best balance between the work of watching neighbours and the gain in coordination, and it depends on the thickness of the flock, not on its size.
- Young and others (2013), PLoS Computational Biology: starling flock networks (PMC)Six or seven neighbours give the most robustness for each neighbour a bird has to follow.
- Young and others (2013): starling flock networks (arXiv copy)The same finding in a second copy of the paper.
- Wikipedia: BoidsCraig Reynolds’s 1986 program and 1987 paper, and the three rules: separation, alignment and cohesion.
- University of Alaska Fairbanks: Boids, flocking behaviour (lecture notes)The three rules in a second description, and that the flock comes from local rules with no central control.
- Cornell Lab of Ornithology, All About Birds: how do starling flocks create murmurationsNo bird leads. A change in direction spreads through the flock from bird to bird.
- The Irish Times: seven is the magic number for starlingsA news report of the Rome study: each bird follows about seven neighbours, whatever the distance.
- Physics Today: statistical physics is for the birdsThe three dimensional flock measurements and what they said about how birds respond to each other.
- University of Bristol (2017): starlings flock together to confuse predatorsLarger and denser flocks make it harder to pick out one starling, and murmurations are larger when predators are about.
- Smithsonian Magazine: waves rippling through bird flocksWaves of turning that pass through a flock when a predator comes near.