Order from chaos: flocks and synchrony

← Back to specs
Secondary 7 Rooms Chaos Modelling

Teaching objectives

How can a school of fish move in perfect unison with no one leading the way? How do thousands of fireflies manage to flash at the same time? This secondary-school lab explores flocks and coupled oscillators to show that collective order can arise from very simple local rules: each individual only looks at its neighbours and nobody runs the whole. This lab is worth highlighting in particular for its first room, where fish magically begin to form shoals; the fourth, where fireflies synchronize; and the seventh, where the Millennium Bridge starts to sway as soon as enough people walk on. The fish and firefly simulations are each followed by a room where students apply the rule by hand. Rooms 3, 6 and 7 bring together in a single room the explanation, the simulation, several challenges checked against it and the history of the discovery. It continues in the Emergent patterns lab, with cellular automata.

What you'll learn

Students discover that self-organization requires no central intelligence: it is enough for each element of the system to look at its neighbours and follow a simple rule.

  • Reynolds's three rules (separation, alignment, cohesion) explain flocking behaviour; students apply them to a single fish to understand the model.
  • The starlings compare two ways of choosing neighbours: those closer than a distance R (metric rule) or the k nearest (topological rule). The topological rule, the one Ballerini and colleagues measured in Rome (2008), keeps the flock together even when it stretches or a hawk crosses it.
  • Kuramoto synchronization shows how fireflies adjust their phase toward the average of their neighbours until they all flash in unison.
  • The Kuramoto curve measures synchrony r as a function of the coupling K and compares it with the theoretical critical coupling K_c = 2/(π g(0)).
  • The Millennium Bridge (London, 2000) shows the same synchrony in people: beyond a critical number of pedestrians, the sway and the matched steps appear suddenly.

Key mathematical ideas

  • Local rules → global behaviour: macroscopic complexity is not encoded in any individual agent.
  • Metric versus topological interaction and the interaction graph: the groups are its connected components.
  • Kuramoto model: coupled oscillators that converge to a common phase through gradual adjustment; order parameter r and critical coupling K_c = 2/(π g(0)) (≈ 1.60 σ for a Gaussian, 2γ for a Lorentzian).
  • Instability with a threshold: in the model by Strogatz et al. (2005), the critical number of pedestrians is proportional to the damping of the bridge.

Room-by-room contents

Room 1 · The flock invents itself

Boids simulation (Reynolds): each point follows only 3 rules looking at its nearby neighbours — no leader, no destination — and a coordinated flock emerges.

Student tasks

  • Observe how the flock appears from the initial chaos.
  • Tweak the separation, alignment and cohesion parameters to see when the formation breaks apart.

Room 2 · Three rules about a fish

Applied quiz: for each presented situation, the student decides in which direction each of the 3 rules (separation, alignment, cohesion) pushes the central fish.

Student tasks

  • Identify which rule pushes the fish in each scenario.
  • Combine the three resulting arrows to predict the net movement.

Room 3 · Starlings: who do they watch?

Metric versus topological neighbours (Ballerini et al., PNAS 2008): 300 starlings follow the three rules of the fish, coordinating with everyone closer than R or with their k nearest neighbours. The flock is stretched, a hawk is released and the groups of the interaction graph are counted.

Student tasks

  • Compare what happens with each rule when the flock is spread out.
  • Measure the minimum k for which the flock withstands the hawk in at least 8 out of 10 runs.
  • Explain why real starlings coordinate with about 7 neighbours and not with 50.

Room 4 · Fireflies that come into agreement

Kuramoto synchronisation simulation: each firefly flashes at its own rhythm, but by watching its neighbours it adjusts its phase until all flash in unison.

Student tasks

  • Observe how many cycles it takes for synchronisation to be achieved.
  • Vary the coupling strength and see how the speed of synchronisation changes.

Room 5 · Speeds up or slows down?

Quiz on the phase-adjustment rule: if a slow firefly watches one that is ahead in the cycle, does it correct by speeding up or slowing down? The student applies the rule to specific cases.

Student tasks

  • Read the phase-adjustment rule towards the mean.
  • Answer for each case whether the firefly speeds up or slows down.

Room 6 · The Kuramoto curve

Sweep of the coupling K: final order parameter r against K, with the theoretical K_c, 2/(π g(0)), marked. Gaussian rhythms (K_c ≈ 1.60 σ) or Lorentzian ones (K_c = 2γ and r = √(1 − K_c/K)), and the live phase circle.

Student tasks

  • Check with two curves that K_c doubles when σ doubles.
  • Compute K_c and r for a Lorentzian with γ = 0.5.
  • Explain why r is not exactly 0 below K_c (r ≈ 1/√N).

Room 7 · The Millennium Bridge

Model by Strogatz et al. (Nature, 2005): the bridge is a damped oscillator and each pedestrian a phase oscillator pulled along by the sway. As people walk on one at a time, the sway and the synchrony of the steps appear suddenly beyond a critical number, proportional to the damping.

Student tasks

  • Measure on the graph from how many pedestrians the sway starts.
  • Fit dampers (ζ × 3) and check that the critical number is multiplied by 3.
  • Explain why the problem was sideways and not vertical.

Rooms to project

The most striking ones to show and discuss in class.

★
Room 1 · The flock invents itself — The most immediate "wow" effect in the lab: global order visible within seconds from three local rules; ideal for opening the discussion of what emergence is.
★
Room 3 · Starlings: who do they watch? — A recent research result turned into an experiment: stretching the flock and releasing a hawk tells the metric rule apart from the topological one at a glance.
★
Room 6 · The Kuramoto curve — The phase transition of synchrony in a single graph: the measured curve falls on the K_c of the formula, and doubling σ shows how it shifts.
★
Room 7 · The Millennium Bridge — A real story (London, 2000) reproduced on screen: the sway appears suddenly and the pedestrians can be seen falling into step.