Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “为什么贪心算法无法找到TSP的最优解?”

2 keyword matches

Understanding your question. You can explore the search results below now.

Meet the concept

↗

The Traveling Salesman Problem (TSP) is a classic optimization problem that asks for the shortest possible route that visits a given set of cities exactly once and returns to the starting city. For an instance with 8 cities, there are 5040 possible routes.

Conditions: The route must visit every city in the set exactly once.; The route must return to the starting city.; The goal is to minimize the total distance traveled.

Meet the concept

↗

A 2-opt swap is a local search heuristic for the Traveling Salesman Problem. It involves removing two edges from the current tour and reconnecting the resulting paths in a different way to form a new tour.

Conditions: Applied to a valid TSP tour.; Involves exactly two edge removals and reconnections.