Overview
2-Opt applies reversing crossing tour segments when the swap shortens the tour to handle traveling salesperson improvement with a named, inspectable procedure.
2-Opt uses reversing crossing tour segments when the swap shortens the tour for traveling salesperson improvement.
Compact metadata for implementation and discovery.
2-Opt applies reversing crossing tour segments when the swap shortens the tour to handle traveling salesperson improvement with a named, inspectable procedure.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n^2)
Average
O(n^2)
Worst
O(n^3)
Space
O(n)
Show reversing crossing tour segments when the swap shortens the tour on a small traveling salesperson improvement example.
2-Opt operates in O(n^2) time and O(n) space within the Local Search family. Often compared with Held-Karp TSP and Christofides Algorithm.
What each reference supports for this entry.
TSP reference for 2-Opt's tour construction, local-search neighborhood, or heuristic tradeoffs.
Early reference for 2-opt style edge-exchange improvements for the traveling-salesman problem.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Optimization · Core
Both address traveling salesperson improvement, but they make different modeling or performance tradeoffs.
Compare with thisBoth address traveling salesperson improvement, but they make different modeling or performance tradeoffs.
Both address traveling salesperson improvement, but they make different modeling or performance tradeoffs.
Both address traveling salesperson improvement, but they make different modeling or performance tradeoffs.