Nagel-Schreckenberg Traffic Simulation

The most annoying thing about driving for some people are certainly traffic jams. I get even more upset when I leave the traffic jam and there was no reason for it in the first place: so-called “phantom traffic”. A simple, yet good model of traffic is the Nagel-Schreckenberg model. It explained, for the first time, phantom congestion as a result of dawdling and tailgating.
Observations
Cars move along a road with a periodic boundary condition (ring), accelerate when they can and brake before they crash into the car in front of them. This boundary condition is often used in theoretical solid state physics and is a good approximation for large distances. With some probability


Of course, drivers (hopefully) don’t just slow down out of the blue. One important correction is the velocity-dependent randomization (VDR). It is assumed that when starting





