2-opt

In optimization, 2-opt is a simple local search algorithm first proposed by Croes in 1958 for solving the traveling salesman problem. The main idea behind it is to take a route that crosses over itself and reorder it so that it does not.

 - O   O -             - O - O -
     X         ==>     
 - O   O -             - O - O -

References

See also

External links