Overview
Nearest Neighbor TSP applies repeatedly visiting the nearest unvisited city to handle traveling salesperson heuristic with a named, inspectable procedure.
Nearest Neighbor TSP uses repeatedly visiting the nearest unvisited city for traveling salesperson heuristic.
Compact metadata for implementation and discovery.
Nearest Neighbor TSP applies repeatedly visiting the nearest unvisited city to handle traveling salesperson heuristic with a named, inspectable procedure.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n^2)
Average
O(n^2)
Worst
O(n^2)
Space
O(n)
Show repeatedly visiting the nearest unvisited city on a small traveling salesperson heuristic example.
Nearest Neighbor TSP operates in O(n^2) time and O(n) space within the Greedy Heuristics family. Often compared with Held-Karp TSP and Christofides Algorithm.
What each reference supports for this entry.
Algorithm catalog support for Nearest Neighbor TSP's problem context, known alternatives, and practical selection tradeoffs.
Open sourceTSP reference for Nearest Neighbor TSP's tour construction, local-search neighborhood, or heuristic tradeoffs.
Good next jumps from the relationship graph, ranked for useful discovery.
Optimization · Core
Both address traveling salesperson heuristic, but they make different modeling or performance tradeoffs.
Compare with thisBoth address traveling salesperson heuristic, but they make different modeling or performance tradeoffs.
Both address traveling salesperson heuristic, but they make different modeling or performance tradeoffs.
Both address traveling salesperson heuristic, but they make different modeling or performance tradeoffs.