Nearest neighbour algorithm

Used to determine solution to travelling salesman problem

The nearest neighbour algorithm was one of the first algorithms used to solve the travelling salesman problem approximately. In that problem, the salesman starts at a random city and repeatedly visits the nearest city until all have been visited.

Nº Q1374523 ★

Common · Knowledge

Nearest neighbour algorithm

Used to determine solution to travelling salesman problem

The nearest neighbour algorithm was one of the first algorithms used to solve the travelling salesman problem approximately. In that problem, the salesman starts at a random city and repeatedly visits the nearest city until all have been visited.

From Wikipedia

The nearest neighbour algorithm was one of the first algorithms used to solve the travelling salesman problem approximately. In that problem, the salesman starts at a random city and repeatedly visits the nearest city until all have been visited. The algorithm quickly yields a short tour, but usually not the optimal one.

Text: Wikipédia, CC BY-SA 4.0. · Image: Saurabh.harsh (CC BY-SA 3.0) ·

Related cards

Open

…

Confirmation