3-opt

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In optimization, 3-opt is a simple local search heuristic for finding approximate solutions to the travelling salesperson problem and related network optimization problems. Compared to the simpler 2-opt algorithm, it is slower but can generate higher-quality solutions.

3-opt analysis involves deleting three edges from the current solution to the problem, creating three sub-tours. There are eight ways of connecting these sub-tours back into a single tour, one of which consists of the three deleted edges. These reconnections are analysed to find the optimum one. This process is then repeated for a different set of 3 connections, until all possible combinations have been tried in a network. A single pass through all triples of edges has a time complexity of O(n3).[1] Iterated 3-opt, in which passes are repeated until no more improvements can be found, has a higher time complexity.

In an array representation of a tour with k nodes S=[n0,n1,n2,...,nk1,nk], where n0=nk, deleting three edges separates S into four segments S1S2, S3 and S4. Note that the segments S1 and S4 are connected. The reconnection of the Subtours is done by a combination of reversing one or both of S2 and S3 and switching their respective positions. The 8 possible new tours are [S1,S2,S3,S4], [S1,S2,S3,S4], [S1,S2,S3,S4], [S1,S2,S3,S4], [S1,S3,S2,S4], [S1,S3,S2,S4], [S1,S3,S2,S4] and [S1,S3,S2,S4]. Here Si indicates that segment i is reversed.

See also

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".

Further reading

  • Script error: No such module "Citation/CS1".
  • Script error: No such module "Citation/CS1".
  • Script error: No such module "Citation/CS1".
  • Script error: No such module "citation/CS1".