For Educators · Genetic Algorithm
Genetic Algorithm for a traffic jam
Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a traffic jam live below — adjust the inputs and watch it respond, right in your browser.
Genetic AlgorithmLive
evolution as optimization
Controls
Presets
A population of candidate solutions is scored by fitness (bright = high). The fittest are selected, crossed over, and mutated each generation. Watch the swarm climb toward the global peak while dodging local optima.
Data Inspector
Generation0
Best fitness0.000
Population80
Governing equation
Reading this result: Balanced mutation (0.08) with population 80: enough diversity to escape local optima while still converging — the classic explore-vs-exploit sweet spot.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:StudentsResearchersEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Genetic Algorithm
Frequently asked questions
- Is this good for educators?
- Yes — this version of "Genetic Algorithm for a traffic jam" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.