Can you beat the traffic jam?
Every crossroads runs a little program that decides who goes and who waits. Be the traffic engineer: change the timing, watch the queues, and get everyone home faster without anyone running a red light.
Controls
Watch it work
A short film of this machine in action. Watch it, then try the challenges yourself.
What you're seeing
Two roads cross. When one road has green, the other must wait on red, then amber warns drivers that red is coming. Cars arrive at random, like real traffic, so queues grow and shrink. The gauge on the cabinet shows the average time cars spend stopped.
Every change starts a fair test: the junction is cleared and exactly the same 5 minutes of traffic is replayed with your new settings (about a minute at ×5, 15 seconds at ×20). That way you know any difference comes from your timing, not from luck. The challenges are judged when a test ends. Last result: no test finished yet.
Try this
0 of 4 solved- With normal traffic, get the average wait under 10 s with no near misses.Long greens make the other road wait a long time. Try shorter ones, but not too short.
- Press Rush hour (lots of east–west cars). With the fixed timer, get the wait under 12 s and no near misses.Give the busy road more green than the quiet one.
- Normal traffic, Walkers on. Keep cars under 20 s and walkers under 35 s.Every cycle now has a 12 s walk phase. Longer cycles mean walkers wait longer.
- Rush hour, walkers off, both greens back at 60 s or more. Switch the timer to Smart and get under 15 s.Smart sensors end a green early when no more cars are coming.
Why it works
A green light is only useful while cars are actually using it. Too long, and cars on the other road sit waiting in front of an empty junction. Too short, and lots of time is lost: each time the lights change there's amber, a moment of all-red, and the first cars need time to get moving.
Amber can't be cut too far. A driver at 50 km/h needs about 1 second to react and 2.3 seconds to stop. With less than about 3.3 s of amber, some drivers are caught in between: too close to stop gently, too far to get through in time. They slam on the brakes or cross on red. Engineers never trade safety for speed.
Smart signals use sensor loops in the road (you can see them in front of each stop line) to feel cars coming. That's an algorithm: a set of rules ("keep green while cars keep coming; switch when there's a gap") that adapts to the traffic instead of following a fixed clock.
Go deeper AGES 14–16
Engineers estimate the delay at a fixed-time signal with Webster's formula (1958). With cycle time C, a share of green λ = g/C, cars arriving q per second and how full the green is x:
On your crossroads right now: cycle 88 s, Webster predicts –. The first part grows with the cycle length; the second part explodes as x gets close to 1, when the green can barely clear the queue. The best cycle is short, but long enough for every queue to empty.
This is queueing theory, the same maths that sets how many tills a supermarket opens and how a computer shares its processor between programs.