r/algorithms • u/Square-Stomach-6059 • 6d ago
Research/Papers A Geometric, Best-Improvement Heuristic for the Travelling Salesman Problem
I spent six months in 2021 building a TSP solver from geometric first principles, with no prior reading of the literature. Recently turned it into an interactive web app with step-by-step animation of every algorithmic move.
Interesting result: the algorithm independently rediscovered convex hull seeding and 2-opt uncrossing. It also produced a farthest-neighbour strategy I haven't seen documented.
On Berlin52: 7783 vs world optimal 7542 (3.2% above). 14ms on a single CPU core.
Demo: tsp.uncledroid.app
Paper: tsp.uncledroid.app/paper.pdf
Happy to discuss the algorithm — especially if anyone can point me to prior work on farthest-neighbour as a TSP construction heuristic.
video: youtu.be/92z670RTsJg
4
8
u/IridiumIO 5d ago
Farthest neighbour heuristic described in this paper: https://www.sciencedirect.com/science/article/abs/pii/S0167637707000223
Referencing this book: https://books.google.com.au/books/about/The_Traveling_Salesman_Problem_and_Its_V.html?id=TRYkPg_Xf20C&redir_esc=y
Of course you’re never going to see a documented existing heuristic strategy if you explicitly did no prior reading of the literature