Processed locallyRust WASMCompute-heavy2-opt
Route optimizer
Solve the traveling salesman problem with Rust WASM nearest-neighbor + 2-opt, add or randomize points and export the shortest route as SVG.
Compute-heavy
2-opt evaluates swaps across many pairs of points; more points and iterations take longer.
Route optimization
40 pointsPoints40
Route length—
Time0.00s
Click the canvas to add points; the shortest route appears after optimization.
Route canvas
Not optimized