encyclopegia.org

3-opt

In optimization, 3-opt is a simple local search heuristic for finding approximate solutions to the travelling salesperson problem and related network optimization problems.[src] Compared to the simpler 2-opt algorithm, it is slower but can generate higher-quality solutions.[src] 3-opt analysis involves deleting three edges from the current solution to the problem, creating three sub-tours.[src] There are eight ways of connecting these sub-tours back into a single tour, one of which consists of the three deleted edges.[src] These reconnections are analysed to find the optimum one.[src] This process is then repeated for a different set of 3 connections, until all possible combinations have been tried in a network.[src] A single pass through all triples of edges has a time complexity of O(n^3) .[src] Iterated 3-opt, in which passes are repeated until no more improvements can be found, has a higher time complexity.[src] In an array representation of a tour with k nodes S=[n_0, n_1, n_2, ..., n_{k-1}, n_k] , where n_0 = n_k , deleting three edges separates S into four segments S_1 , S_2 , S_3 and S_4 .[src] Note that the segments S_1 and S_4 are connected.[src] The reconnection of the Subtours is done by a combination of reversing one or both of S_2 and S_3 and switching their respective positions.…[src]

In optimization, 3-opt is a simple local search heuristic for finding approximate solutions to the travelling salesperson problem and related network optimization problems.[src] Compared to the simpler 2-opt algorithm, it is slower but can generate higher-quality solutions.[src] 3-opt analysis involves deleting three edges from the current solution to the problem, creating three sub-tours.[src] There are eight ways of connecting these sub-tours back into a single tour, one of which consists of the three deleted edges.[src] These reconnections are analysed to find the optimum one.[src] This process is then repeated for a different set of 3 connections, until all possible combinations have been tried in a network.[src] A single pass through all triples of edges has a time complexity of O(n^3) .[src] Iterated 3-opt, in which passes are repeated until no more improvements can be found, has a higher time complexity.[src] In an array representation of a tour with k nodes S=[n_0, n_1, n_2, ..., n_{k-1}, n_k] , where n_0 = n_k , deleting three edges separates S into four segments S_1 , S_2 , S_3 and S_4 .[src] Note that the segments S_1 and S_4 are connected.[src] The reconnection of the Subtours is done by a combination of reversing one or both of S_2 and S_3 and switching their respective positions.[src] The 8 possible new tours are [S_1, S_2, S_3, S_4] , [S_1, \overleftrightarrow{S_2}, S_3, S_4] , [S_1, S_2, \overleftrightarrow{S_3}, S_4] , [S_1, \overleftrightarrow{S_2}, \overleftrightarrow{S_3}, S_4] , [S_1, S_3, S_2, S_4] , [S_1, \overleftrightarrow{S_3}, S_2, S_4] , [S_1, S_3, \overleftrightarrow{S_2}, S_4] and [S_1, \overleftrightarrow{S_3}, \overleftrightarrow{S_2}, S_4] .[src] Here \overleftrightarrow{S_i} indicates that segment i is reversed.[src] ==See also== 2-opt Local search Lin–Kernighan heuristic ==References== ==Further reading==[src]

25 sentences · 25 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"3-opt." encyclopegia.org, 2026, https://encyclopegia.org/wiki/3-opt. Accessed 25 November 2026.

Chicago

"3-opt." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/3-opt.

APA

encyclopegia.org. (2026). 3-opt. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/3-opt

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

opt-in email

stub · references available

OPT

stub · references available

Opt-out

enwiki · references available

List of marketing opt-out registries

enwiki · references available

2-opt

enwiki · references available

Opt-outs in the European Union

enwiki · references available

Opt out (disambiguation)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1341143907 · 0.5 · snapshot enwiki-001341143907

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.