Traveling Salesman Problem. route visualizer
INSERTION HEURISTIC
Language
Local mode
01 · input

Build your scene

Choose how points enter the map. The route is calculated in your browser; an optional backend can replace it when configured.

3500 · fluid limit

One edge at a time: fast for exploring many cities.

Uses the route produced directly by the selected heuristic.

Execution mode result or interactive lesson

In investigation mode, the map follows desire → agreement → circuit and the local scan from the video. Pause, rewind or advance without losing your zoom.

Watch the video

The Manim explainer follows the same reciprocity construction and local refinement shown in the interactive lesson.

How should I read this experiment?

Each point is a city and the green line is a closed cycle. The interface runs the heuristic locally as a static page; when configured, a compatible backend can return a route for comparison.

02 · result

Route map

9 points
Canvas ready to draw Click to add a vertex · drag to move.
100%
NORMALIZED X / Y
Hover over a point to see its coordinates
selected edge —
Click a cycle edge — map units

Scroll to zoom · drag to pan · edge measures, vertex details.

start backend route local preview desire mutual agreement local candidate removed by swap focus / closure
03 · quick read

Cycle summary

total distance — map units
response time — measured in the client
route source — preview or backend
visit order

The route will appear here after calculation.