[Did you know Cards](https://didyouknow.cards/) › [Computer science](https://didyouknow.cards/topics/computer-science) › 2-opt

# 2-opt

2-opt: local search algorithm. No. 604,746 of 4,515,532 cards by fame.

## 2-opt: quick facts

- **Description**: Local search algorithm
- **Rarity in the game**: Epic card
- **Fame**: [No. 604,746 of 4,515,532 cards by fame](https://didyouknow.cards/about#how)
- **In its topic**: No. 5,876 of 9,102 “[Computer science](https://didyouknow.cards/topics/computer-science)” cards
- **Wikipedia**: article in 5 languages
- **Wikidata**: [Q291440](https://www.wikidata.org/wiki/Q291440)
- **Wikipedia page views**: about 1,600 a month (November 2025 – October 2026)

Fame score: Wikipedia page views (July 2015 – October 2026, 39 languages). Updated November 23, 2026.

![Picture illustrating “2-opt”](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/2-opt_wiki.svg/960px-2-opt_wiki.svg.png)

*Photo: PierreSelim, CC BY-SA 3.0 ([Wikimedia Commons](https://commons.wikimedia.org/wiki/File:2-opt_wiki.svg))*

## 2-opt: summary

In optimization, 2-opt is a simple local search algorithm for solving the traveling salesman problem. The 2-opt algorithm was first proposed by Croes in 1958, although the basic move had already been suggested by Flood. The main idea behind it is to take a route that crosses over itself and reorder it so that it does not. A complete 2-opt local search will compare every possible valid combination of the swapping mechanism.

Source: [Wikipedia](https://en.wikipedia.org/wiki/2-opt) ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/))

## More cards: Computer science

- [Snark](https://didyouknow.cards/c/142153854) — connected, bridgeless cubic graph with chromatic index equal to 4
- [Amstrad CPC 6128](https://didyouknow.cards/c/142144600) — home computer produced by Amstrad
- [Dave Thomas](https://didyouknow.cards/c/377261) — British computer programmer
- [Mylo (Sony)](https://didyouknow.cards/c/142151287) — handheld device made by Sony
- [Lftp](https://didyouknow.cards/c/142171552) — free software command-line client for several file transfer protocols
- [Canaima](https://didyouknow.cards/c/142148797) — Linux distribution
- [ISO 3166-2:SB](https://didyouknow.cards/c/143934879) — entry for the Solomon Islands in ISO 3166-2
- [ISO 3166-2:NE](https://didyouknow.cards/c/143929274) — entry for Niger in ISO 3166-2
- [Macintosh IIsi](https://didyouknow.cards/c/142147600) — Apple personal computer of early 1990s
- [ESIEA](https://didyouknow.cards/c/143884585) — French graduate school of engineering
- [Per Georg Scheutz](https://didyouknow.cards/c/964243) — Swedish inventor and businessman
- [Poser](https://didyouknow.cards/c/143883491) — 3D computer graphics program optimized for modeling of human figures

- [.tm](https://didyouknow.cards/c/143793530) — No. 2,938 of the “Computer science” cards
- [Open Archival Information System](https://didyouknow.cards/c/142123714) — No. 4,876 of the “Computer science” cards
- [Fetchmail](https://didyouknow.cards/c/285939) — No. 5,977 of the “Computer science” cards

[The best-known of the 9,102 “Computer science” cards](https://didyouknow.cards/topics/computer-science)

## This card's topics

- [Mathematics](https://didyouknow.cards/topics/mathematics) (10,238 cards)
- [Computer science](https://didyouknow.cards/topics/computer-science) (9,102 cards)
- [Theoretical computer science](https://didyouknow.cards/topics/theoretical-computer-science) (197 cards)
- [Events](https://didyouknow.cards/themes/events) (235,034 cards)
- [Science](https://didyouknow.cards/topics/science) (6,388 cards)

“2-opt” is one of the 4,515,532 cards of Did you know Cards, the free Wikipedia card game where you learn as you play: every card is a piece of knowledge from Wikipedia. Open boosters, complete your albums and challenge other players to duels.

---

Did you know Cards: https://didyouknow.cards/c/142158673
