News for hackers. Stuff that matters.
Re:Why Do Buses Bunch? by brian_cloutier on Tuesday April 02, 2019 @06:45PM (#19559302)
I enjoyed the callout to this when I was reading Google's Percolator paper a few years ago:

> The random-scanning approach requires one additional tweak: when it was first deployed we noticed that scanning threads would tend to clump together in a few regions of the table, effectively reducing the parallelism of the scan. This phenomenon is commonly seen in public transportation systems where it is known as “platooning” or “bus clumping” and occurs when a bus is slowed down (perhaps by traffic or slow loading). Since the number of passengers at each stop grows with time, loading delays become even worse, further slowing the bus. Simultaneously, any bus behind the slow bus speeds up as it needs to load fewer passengers at each stop. The result is a clump of buses arriving simultaneously at a stop [19]. Our scanning threads behaved analogously: a thread that was running observers slowed down while threads “behind” it quickly skipped past the now-clean rows to clump with the lead thread and failed to pass the lead thread because the clump of threads overloaded tablet servers. To solve this problem, we modified our system in a way that public transportation systems cannot: when a scanning thread discovers that it is scanning the same row as another thread, it chooses a new random location in the table to scan. To further the transportation analogy, the buses (scanner threads) in our city avoid clumping by teleporting themselves to a random stop (location in the table) if they get too close to the bus in front of them.

From here: https://ai.google/research/pubs/pub36726

Re:Why Do Buses Bunch? by zhte415 on Tuesday April 02, 2019 @08:26PM (#19559813)
> To further the transportation analogy, the buses (scanner threads) in our city avoid clumping by teleporting themselves to a random stop (location in the table) if they get too close to the bus in front of them.

Subway trains do this "to regulate service" iirc is the term used on the London Underground.

Takt time[1]and Drum Buffer Rope[2]both related concepts of regulating flow through a process/system.

[1] https://en.m.wikipedia.org/wiki/Takt_time

[2] https://en.m.wikipedia.org/wiki/Theory_of_constraints

Re:Why Do Buses Bunch? by etaerc on Thursday April 11, 2019 @04:17PM (#19638707)
I don't really understand why they don't "teleport". There are additional ways to get to a point ahead of a slowed down train with a replacement train, right? When you see one is dragged down too much and starts clogging, introduce a new train in front that jumps in at an expected schedule, then slowly empty the old train and take it out of the loop when its empty.

I haven't seen that but I'm not sure why its not done. I don#t think it will be more expensive in the long run than increasing slack. And the service experience and maintenance level is increased drastically.

Re:Why Do Buses Bunch? by icebraining on Wednesday April 03, 2019 @03:52AM (#19561596)
London subway trains teleport themselves?
Re:Why Do Buses Bunch? by joncrocks on Wednesday April 03, 2019 @04:20AM (#19561708)
No they don't. When you hear "to regulate the service" what they actually do in my experience is delay trains to try and introduce a more even service.

So if you have trains that are:

|--|--|--|------------|--|

Then they will delay some of the trains such that it becomes:

---|--|--|--|--------|----|

i.e. reduce the speed of the lead trains to try and reduce bunching.

So generally if you hear "to regulate the service" it means you're in for a longer journey than normal.

I believe there are passing points along the tracks, I don't think they can be used to leapfrog, and there's no such thing as "express" services.

Re:Why Do Buses Bunch? by mcv on Wednesday April 03, 2019 @07:22AM (#19562452)
I've often felt that maybe the front bus should skip a few stops, but unfortunately, the fuller a bus is, the bigger the chance that someone has to get out at every stop, and that means people are going to get in at every stop too.

Maybe the empty rear bus should overtake the front bus, but that's not always possible.

Teleporting to a random stop would be really annoying for people who had to get out at the next stop. That's only an acceptable solution when the bus is completely empty.

Re:Why Do Buses Bunch? by theluketaylor on Wednesday April 03, 2019 @09:46AM (#19563240)
When I was growing up in Calgary when buses bunched the lead bus would linger at a stop specifically so the other buses could pass and even out the ridership.

The transit system even employed this on purpose at busy times since Calgary is such a suburban city. It's fairly rare in the morning for people to need to get off until a major intersection or light rail station. Buses were sent in pairs (sometimes three) to run the same route, leapfrogging each other at every stop. If someone did ask for a stop the driver would radio ahead and the lead bus would skip the stop. Taking the bus route at a leapfrog time really did cut the journey time down significantly. The technique doesn't work quite as well coming home since you can't predict when people will need to get off.

Re:Why Do Buses Bunch? by zaphod12 on Wednesday April 03, 2019 @01:27PM (#19565266)
This happens with the subway in NYC all of the time - a very crowded train will announce that it's running express to X stop...a thousand people get off and onto the next one to continue on.

It's quite annoying when it's you that has to get off and wait, again, haha, but appears to be the right move for the system

Re:Why Do Buses Bunch? by falsedan on Wednesday April 03, 2019 @06:18AM (#19562167)
Lothian buses regulate as well, but only to maintain published timetables (if a bus is running fast, it will sit at a stop until it's back on schedule)

The usual clumping is multiple buses on separate routes arriving at one, since they enforce strict stacking (can disembark in the approach to the stop but can only embark passengers at the stop sign)

Re:Why Do Buses Bunch? by Mvandenbergh on Wednesday April 03, 2019 @06:49AM (#19562296)
There are express services but only on the metropolitan line (which uses above ground tracks shared with non-TFL trains).
Re:Why Do Buses Bunch? by joncrocks on Wednesday April 03, 2019 @08:45AM (#19562830)
Ah, you learn something new every day!

https://en.wikipedia.org/wiki/Metropolitan_line#Services

Re:Why Do Buses Bunch? by Tarean on Wednesday April 03, 2019 @04:59AM (#19561860)
This also happened with routing messages - they are periodic and start at random offsets but they bunch up without added randomness https://ee.lbl.gov/papers/sync_94.pdf
Re:Why Do Buses Bunch? by dominotw on Tuesday April 02, 2019 @08:36PM (#19559863)
This is possible with public transportation too. Trains run express and skip stops all the time.

I think that would be too much hassle with buses but it's possible.

Re:Why Do Buses Bunch? by jpatokal on Tuesday April 02, 2019 @09:26PM (#19560067)
I have seen full or near-full buses skip scheduled stops to alleviate this. Although from a waiting passenger's POV, having an already delayed bus that has space left zoom past you without stopping is pretty infuriating...!
Re:Why Do Buses Bunch? by btbuildem on Wednesday April 03, 2019 @12:22AM (#19560710)
Perhaps the bus that caught up to the full bus should pass it, and relieve the next stop - presumably there are extra passengers waiting at that one too, since the bus is late.

This way the bus that caught up will now risk slowing down (dealing with fuller stops), but the original full bus that was slow is likely to not speed up that much, having an above-average number of potentially disembarking passengers.

Re:Why Do Buses Bunch? by Izkata on Wednesday April 03, 2019 @11:59AM (#19564437)
This is what CTA buses in Chicago do, though the full bus doesn't slow down. They end up leapfrogging down the route.
Re:Why Do Buses Bunch? by mjevans on Wednesday April 03, 2019 @02:10AM (#19561160)
Yeah, the correct customer service solution is to have the full bus HOLD at a stop and let the emptier bus leave first (and stay ahead).
Re:Why Do Buses Bunch? by adrianN on Wednesday April 03, 2019 @02:18AM (#19561195)
That delays all people who are already on the delayed bus even more.
Re:Why Do Buses Bunch? by jakobegger on Wednesday April 03, 2019 @04:32AM (#19561759)
Not necessarily. If the full bus stays in front, then there will be lots of people waiting at every future stop, trying to get on the full bus, taking ages to do so.

If the full bus lets the empty bus pass, then all the people waiting at the next stop can get into the empty bus. When the full bus arrives at the next stop, right behind the formerly empty bus, nobody needs to get on, only people need to get off, so they don't need to stop as long at the next stop.

Re:Why Do Buses Bunch? by mcv on Wednesday April 03, 2019 @07:25AM (#19562464)
Or at least the bus gets a little less crowded. Being able to sit in the delayed bus is also worth something.
Re:Why Do Buses Bunch? by sasaf5 on Wednesday April 03, 2019 @05:46AM (#19562049)
Buses in my town back in the 2000's would just turn off their signs when they were doing this.
Re:Why Do Buses Bunch? by thatoneuser on Tuesday April 02, 2019 @11:27PM (#19560504)
It probably be not too much of you had two way communication with the bus. One can leapfrog the one in front, alleviate the front bus, and everyone's faster. However it probably has limits ie when a passenger on the passing bus wants to stop at the same place as the slow bus next stop.
Re:Why Do Buses Bunch? by phinnaeus on Tuesday April 02, 2019 @06:49PM (#19559326)
TL;DR - Teleportation will solve public transit problems.
Re:Why Do Buses Bunch? by Aeolun on Tuesday April 02, 2019 @07:08PM (#19559439)
Except for all those poor people that are still in the bus when it teleports :P
Re:Why Do Buses Bunch? by gpderetta on Wednesday April 03, 2019 @05:29AM (#19561974)
then again, if you have teleportation, you probably do not need the bus in the first place (did I just explain the joke?).
Re:Why Do Buses Bunch? by m463 on Wednesday April 03, 2019 @01:49AM (#19561072)
if teleportation is impractical you could just use a faster bus, like USB 3.0 or more lanes like PCIe
Re:Why Do Buses Bunch? by angel_j on Wednesday April 03, 2019 @07:10AM (#19562395)
everybody gets on/off at the same time instead of one by one (every seat has it's own door?)
Re:Why Do Buses Bunch? by Skye on Wednesday April 03, 2019 @08:16AM (#19562695)
On old British rail trains, commuter trains had many doors, I think on each side there was a door for each pair of row of seats?

There was also no door lock, so people could start leaving the train before it fully stopped.

The lack of a door lock is also why they're not used anymore.