Home Page - YouTube Channel



Travelling Salesman Problem - Simple English Wikipedia, the free encyclopedia

Travelling Salesman Problem

From the Simple English Wikipedia, the free encyclopedia that anyone can change

S salesman wants to visit all cities,A, B, C and D. What is the best way to do this (cheapest airline tickets, and minimal travel time)?
S salesman wants to visit all cities,A, B, C and D. What is the best way to do this (cheapest airline tickets, and minimal travel time)?

The Travelling Salesman Problem (often called TSP) is a problem to solve. It is about optimisation. Optimisation is about finding a better solution or answer to a problem. In this context better solution often means a solution that is cheaper. TSP is a mathematical problem. But it can be shown as a picture very easily with graph theory.

[change] Stating the problem

The problem is that of a salesman. To do his job, he has a number of places (cities) he should go to. Some of those cities are connected with each other, for example by airplanes, or by road or railway. Each of those links between the cities has one or more weights (cost) attached. The cost is how much it takes to travel the route, for example, the cost of an airplane ticket or train ticket. The question is how to find the best route for the salesman to go to the cities. The salesman wants to keep both the travel costs, as well as the distance he travels as low as possible. He must go to each city exactly once, and at the end, he must be in the city he started in.

[change] How hard the problem is

The travelling salsesman problem is among the problems that are very hard to solve. If there is a way to break this hard problem into smaller problems, the smaller problems will be at least as hard as the original one. This is what computer scientists call NP-hard problems.

Many people have studied this problem. The easiest (and most expensive solution) is to simply try all possibilities. The problem with this is that for N cities you have (N-1) factorial possibilities. This means that for only 11 cities there are about 3.5 million combinations to try.

  • Exact solutions to the problem can be found, using branch and bound algorithms. This is currently possible for about 40-60 cities
  • There are heuristics out there. Heuristics are approximations. They will not give the best solution, but hopefully a good one. These give either seemingly good or seemingly accurate solutions. But it is not possible to prove that those solutions are optimal or the best. See Monte Carlo algorithms and Las Vegas algorithms
  • Some people try to find special cases of the problem, which are usually easier to solve.

[change] Other websites


Wikipedia HTML 2008 in other languages

100 000 +

Česká (Czech)  •  English  •  Deutsch (German)  •  日本語 (Japanese)  •  Français (French)  •  Polski (Polish)  •  Suomi (Finnish)  •  Svenska (Swedish)  •  Nederlands (Dutch)  •  Español (Spanish)  •  Italiano (Italian)  •  Norsk (Norwegian Bokmål)  •  Português (Portuguese)  •  Română (Romanian)  •  Русский (Russian)  •  Türkçe (Turkish)  •  Українська (Ukrainian)  •  中文 (Chinese)

10 000 +

العربية (Arabic)  •  Български (Bulgarian)  •  Bosanski (Bosnian)  •  Català (Catalan)  •  Cymraeg (Welsh)  •  Dansk (Danish)  •  Ελληνικά (Greek)  •  Esperanto  •  Eesti (Estonian)  •  Euskara (Basque)  •  Galego (Galician)  •  עברית (Hebrew)  •  हिन्दी (Hindi)  •  Hrvatski (Croatian)  •  Magyar (Hungarian)  •  Ido  •  Bahasa Indonesia (Indonesian)  •  Íslenska (Icelandic)  •  Basa Jawa (Javanese)  •  한국어 (Korean)  •  Latina (Latin)  •  Lëtzebuergesch (Luxembourgish)  •  Lietuvių (Lithuanian)  •  Latviešu (Latvian)  •  Bahasa Melayu (Malay)  •  Plattdüütsch (Low Saxon)  •  Norsk (Norwegian Nynorsk)  •  فارسی (Persian)  •  Sicilianu (Sicilian)  •  Slovenčina (Slovak)  •  Slovenščina (Slovenian)  •  Српски (Serbian)  •  Basa Sunda (Sundanese)  •  தமிழ் (Tamil)  •  ไทย (Thai)  •  Tiếng Việt (Vietnamese)

1 000 +

Afrikaans  •  Asturianu (Asturian)  •  Беларуская (Belarusian)  •  Kaszëbsczi (Kashubian)  •  Frysk (Western Frisian)  •  Gaeilge (Irish)  •  Interlingua  •  Kurdî (Kurdish)  •  Kernewek (Cornish)  •  Māori  •  Bân-lâm-gú (Southern Min)  •  Occitan  •  संस्कृत (Sanskrit)  •  Scots  •  Tatarça (Tatar)  •  اردو (Urdu) Walon (Walloon)  •  יידיש (Yiddish)  •  古文/文言文 (Classical Chinese)

100 +

Nehiyaw (Cree)  •  словѣньскъ (Old Church Slavonic)  •  gutisk (Gothic)  •  ລາວ (Laos)