Comparing City Swaps vs 2-Opt Moves
Understand why 2-opt is superior for TSP optimizationCurrent Tour: A → B → C → D → E → A
Total Distance: 0
Neighbor: A tour that can be reached by making a small change to the current tour.
How it works:
Problem: Often creates crossing edges and poor tours!
How it works:
Advantage: Eliminates crossing edges and finds better tours!
2-opt moves are designed specifically for TSP geometry. By systematically removing crossing edges, they're much more likely to find tour improvements than random city swaps.