Minimum spanning tree Created 2026-10-07 Updated 2026-11-05
A minimum spanning tree of a finite connected undirected weighted graph minimizes the sum of edge weights over all spanning trees. Kruskal's algorithm repeatedly accepts a least-weight edge joining different current connected components. The cut-exchange argument preserves an optimum containing every accepted edge, including when weights tie.
For nonnegative edge costs, an MST gives a lower bound on a travelling salesman tour: removing one tour edge leaves a spanning path whose cost is no greater than the tour cost, and the minimum spanning tree costs no more than that path.
Nonnegativity is needed for this comparison. A triangle with all three edge weights equal to minus one has tour cost and minimum spanning tree cost , so the latter is not a lower bound. The MST optimization problem itself permits negative edge weights.
Travelling salesman tour 2026-11-05
A travelling salesman tour is a cyclic visiting order that visits each required vertex exactly once before returning to its start. In a complete graph, it is a Hamiltonian cycle. For an ordering of vertices and costs , its length is .
In a symmetric problem, rotations and reversal represent the same undirected tour, giving tours for . Thus four labeled locations have three distinct tours under this convention. Asymmetric costs generally distinguish a tour from its reversal. A closed walk allowed to revisit vertices is a different feasible object unless the problem explicitly permits that change.