AlgorithmsGraphsEdit on GitHubEdit history
2-opt
2-opt Heuristic1958
A local-search technique for the traveling salesman problem that repeatedly removes two edges from the tour and reconnects it by reversing the segment between them, as long as the tour length decreases.
Origin
G. A. Croes (1958). A Method for Solving Traveling-Salesman Problems. Operations Research 6(6).doi:10.1287/opre.6.6.791 — checked against Crossref, 2026-11-08
Lineage
Algorithms 3 · Relations 2
Derived algorithms
What it led to
Lin–Kernighan Heuristic1973
Structural analysisIt generalizes local search with a fixed number of exchanged edges, such as 2-opt, into a variable-depth search that decides the exchange depth each time.
Notable implementations
Paths checked against the GitHub default branch
- jgrapht/jgrapht/jgrapht-core/src/main/java/org/jgrapht/alg/tour/TwoOptHeuristicTSP.javaJava
- google/or-tools/ortools/constraint_solver/local_search.ccC++
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…