Who Waits Longest? Lifts, Trains and Smart Scheduling

Race four lift rules on the same busy morning and timetable trains on a single track. Two new simulators show why scheduling is hard.
When you press a lift button, a small computer decides which lift comes. When two trains share one track, someone decides which one waits. These choices sound simple, but they decide how long thousands of people wait every day. Two new simulators let you make the decisions yourself.
Elevator dispatch tournament
The Elevator dispatch tournament fills a building with people. You choose the floors, the lifts, how many people arrive each minute and the kind of day: a morning rush up from the lobby, an evening rush down, lunch, or mixed traffic.
Four rules compete:
- Nearest lift: send the lift on the closest floor.
- Best estimated arrival: add up the travel time and the stops each lift already has, and send the quickest.
- Everyone shares every call: every free lift heads for every waiting person.
- Each lift has its own floors: split the building into zones.
The tournament runs exactly the same people through all four rules, so the comparison is fair. In our default building, "nearest lift" often comes last. The nearest lift may be heading the other way with a car full of stops. Sharing every call gives short waits but sends lifts chasing the same person, so they travel much further.
Look beyond the average wait. Check the longest wait and the share of people who waited over a minute too.
Railway timetable & signalling lab
The Railway timetable & signalling lab starts with a single-track line. Trains in opposite directions can only pass at a station loop, and only one train may be in a section at a time.
Type the stations and trains, press the button, and the lab draws a time-distance chart. Each train is a line. Where two lines cross at a station, two trains passed each other. Flat parts show where a train stood waiting.
Try adding a station in the middle of the longest section. Many waits shrink at once, because that one section was the bottleneck.
The second tab asks how close trains can follow each other on a double-track line. Faster trains need much longer braking distances. So more speed does not always mean more trains per hour, and the chart shows a peak. Moving block signalling, where computers keep trains a braking distance apart, packs them closer than fixed signals.
This lab is a teaching model, not a tool for real railway signalling.
What both teach
A rule that looks fair for one person can be poor for the whole system, and the bottleneck is often not where you expect. The queue and traffic simulators beside this post show the same ideas on roads and at service counters.