# A simple directional bias makes TSP heuristics find better routes

Original title: Adding a directional cost bias to a TSP heuristic reveals better local optima

> Hacker News story 49415793 · language: en · submitted 2026-08-24
> Web version: https://zeli.app/story/49415793
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 8 · by [Abhijit8086](<https://news.ycombinator.com/user?id=Abhijit8086>) · 💬 1
[original](<https://tsp.uncledroid.app>) · [HN discussion](<https://news.ycombinator.com/item?id=49415793>)

## Summary

An interactive TSP solver demonstrates that adding a directional cost bias to a heuristic can lead to better local optima. By tweaking the heuristic's cost function to favor certain directions, the solver consistently finds shorter tours than the standard approach. The tool lets you experiment with seeds, drop points, and connect modes to see the effect in real time.

## Key quote

> Adding a directional cost bias to a TSP heuristic reveals better local optima.

---

## Cite

- Page: https://zeli.app/story/49415793
- Date: 2026-08-24
- Source: tsp.uncledroid.app (https://tsp.uncledroid.app)
- Hacker News: https://news.ycombinator.com/item?id=49415793

## Other languages

- zh: https://zeli.app/zh/story/49415793 · markdown: https://zeli.app/zh/story/49415793.md
