Optimization objective: The TSP objective is to minimize total route weight, often written as the sum of chosen edge weights. A common expression is , where is travel cost and indicates whether edge is used. This formal view clarifies that the problem is about global route structure, not local shortest moves.
Triangle inequality and metric structure: If the network satisfies for all vertices, direct movement is never worse than detouring through an intermediate vertex. This property justifies shortcutting repeated paths when building upper bounds and supports nearest-neighbour reasoning on complete metric graphs. It also underpins least-distance tables because shortest-path distances naturally satisfy this inequality.
Bounding logic: For TSP, useful reasoning often starts with A lower bound proves no feasible tour can be cheaper than a threshold, and an upper bound comes from any concrete feasible tour. When both match, optimality is certified without checking every Hamiltonian cycle.
Constructing a least-distance table: Build a matrix of shortest pairwise distances, place dashes on the diagonal, and enforce symmetry for undirected networks. For each vertex pair, confirm whether a direct edge or an indirect path is shorter, then record the minimum value. This turns an incomplete practical network into a complete one suitable for classical TSP techniques.
Upper bound from minimum spanning tree (MST): Find an MST using Prim's or Kruskal's algorithm, then double its weight to get an initial feasible closed walk upper bound. Replacing repeated segments with valid shortcuts can reduce this value while preserving feasibility. This method is strong when structure is sparse but edge weights satisfy metric behavior.
Lower bound via deleted-vertex method: Remove one vertex, compute a residual MST on the remaining vertices, then add the two smallest edges reconnecting the deleted vertex. The result is a valid lower bound because any Hamiltonian cycle must connect each vertex with degree two. Repeating for different deleted vertices and taking the maximum gives a tighter bound.
Nearest neighbour heuristic: Start from a chosen vertex and repeatedly move to the nearest unvisited vertex until all are visited, then return to start. The produced Hamiltonian cycle gives an upper bound, but not necessarily the optimum because greedy local choices can block better global routes. Running from multiple starting vertices usually improves the best-found bound.
| Feature | Classical TSP | Practical TSP |
|---|---|---|
| Visit rule | Each vertex once | Each vertex at least once |
| Typical graph use | Complete graph | Often incomplete graph |
| Common preprocessing | Usually none | Build least-distance table |
| Feature | Prim/Kruskal (MST) | Nearest Neighbour |
|---|---|---|
| Output | Tree (no cycle) | Hamiltonian cycle |
| Main use in TSP | Bounds construction | Feasible upper bound |
| Guarantee | Minimum tree weight | No optimality guarantee |
Tour quality vs proof of optimality: A short route is not automatically optimal unless it matches a proven lower bound or is established by exhaustive exact search. Bounding methods separate "good candidate" from "mathematically certified best." This distinction is central in exam reasoning and in real optimization workflows.
Complete vs incomplete network reasoning: Hamiltonian-cycle enumeration assumes every required pair connection is available as an edge in the working model. In incomplete practical networks, least-distance completion embeds multi-edge travel into single effective distances so classical reasoning can proceed. Without this step, feasible cycle comparisons can be invalid or inconsistent.
Choose the correct framework first: Identify whether the question asks for an exact optimum, an upper bound, a lower bound, or a heuristic cycle. This prevents using Prim's algorithm when a Hamiltonian cycle is required, or using nearest neighbour when a tree-based bound is requested. Most lost marks come from selecting the wrong method before any arithmetic begins.
Track constraints explicitly: Keep a clear visited/unvisited record, enforce return to start, and avoid revisiting vertices in classical TSP unless the method temporarily allows it for a bound. Write edge choices in order and keep a running total to catch arithmetic drift. A disciplined ledger makes final checks much faster and more reliable.
Use symmetry and sanity checks: In undirected distance tables, verify and diagonal cells are excluded. If a shortcut violates triangle inequality intuition, recheck the route logic because a supposed improvement may be infeasible. Always compare your final cycle weight against known bounds to validate reasonableness.
Memorize certifying statements: A powerful exam conclusion is that a feasible route equal to the lower bound is optimal.
Key certification rule: if a valid tour has weight and a proven lower bound is also , then is the optimal TSP value. This concise statement often earns method and reasoning marks together.