The MST 2-approximation for metric Steiner tree #
In the Steiner tree problem we must connect a set R of terminals as cheaply as possible, and
may route through other points (Steiner points). This module proves that a minimum spanning tree
on the terminals alone costs at most twice the optimum when the cost is symmetric and satisfies the
triangle inequality ([WS11], Exercise 2.5(a)). Williamson and Shmoys attribute the
factor 2 to Moore, as described in [GP68] ([WS11], Chapter 12
notes). We prove the sharper form |R| · MST ≤ 2 (|R| - 1) · OPT.
Model #
Points have an arbitrary type α and a cost δ : α → α → ℕ. An edge set is a list of ordered
pairs T : List (α × α) with additive cost edgeCost δ T. Connects T R says that the equivalence
relation generated by the edges of T relates every two terminals. The edges may use any points of
α, so T may pass through Steiner points. steinerOpt δ R is the least cost of a list that
connects R. Costs are in ℕ, hence nonnegative, so this is also the least cost of a tree that
connects R: dropping edges that close cycles keeps connectivity and does not increase the cost.
The algorithm steinerMST δ R takes a duplicate-free list of terminals R. It runs Kruskal's
algorithm (Cslib.Algorithms.Lean.Kruskal.kruskalEdges) on the complete graph on the indices
Fin R.length with costs terminalCost δ R i j = δ R[i] R[j], and maps the resulting tree back to
the terminals. This is the minimum spanning tree of the subgraph G[R] induced by the terminals in
the source. The bounds need R.Nodup because δ x x may be positive. With δ x x = 5, the
heuristic pays 5 to join the two copies in R = [1, 1], while steinerOpt δ [1, 1] = 0 (see
CslibFrontierTests.SteinerTree). When the diagonal cost is zero (∀ x, δ x x = 0), repeated
terminals do not increase the cycle cost, and the bounds hold for arbitrary terminal lists
(length_mul_edgeCost_steinerMST_le_of_diag).
Source mapping #
- [WS11], Exercise 2.5(a): for costs that satisfy the triangle inequality, a
minimum spanning tree of
G[R]is a 2-approximation for Steiner tree. The Lean statement isedgeCost_steinerMST_le_two_mul_steinerOpt. The exercise's complete graph has symmetric costsc_ij, which is the hypothesishsymm. The exercise asks only for factor2. length_mul_edgeCost_steinerMST_leis the sharper bound2 (1 - 1/|R|). Kou, Markowsky and Berman [KMB81] prove the still sharper2 (1 - 1/ℓ), whereℓ ≤ |R|is the number of leaves of an optimal tree. That leaf bound is not formalized here.- The graph version (the metric completion and Kou–Markowsky–Berman's expansion of the tree into
shortest paths, [WS11], Exercise 2.5(b)) is in
CslibFrontier.Algorithms.Lean.SteinerTree.Graph.
Proof #
Restrict a connecting list T to the component that contains the terminals, then double each
edge. Every vertex now has even degree, so Hierholzer's algorithm
(Cslib.Algorithms.Lean.Euler.eulerCircuit) gives an Euler circuit of cost 2 · cost(T).
Shortcutting it to the terminals (Cslib.Algorithms.Lean.TSP.cycleCost_le_of_sublist) gives a
Hamiltonian cycle on R of cost at most 2 · cost(T). Deleting its most expensive edge leaves a
Hamiltonian path that costs at most (1 - 1/|R|) of the cycle, and the path weighs at least the
minimum spanning tree (mul_totalWeight_kruskalEdges_le).
Main definitions #
Connects,edgeCost: feasibility and cost of an edge list.terminalCost,steinerMST: the MST heuristic on the terminals.steinerOpt: the optimum Steiner cost.
Main results #
totalWeight_kruskalEdges_le_sum_consecutivePairs: Kruskal's tree on a complete graph weighs at most any Hamiltonian path (throughTSP.totalWeight_kruskalEdges_completeEdges_le).mul_totalWeight_kruskalEdges_le:k · MST ≤ (k - 1) · cost(C)for every Hamiltonian cycleConkvertices. This sharpens [WS11], Lemma 2.10, which statesMST ≤ cost(C).connects_steinerMST: the heuristic connects the terminals.length_mul_edgeCost_steinerMST_le:|R| · cost(steinerMST) ≤ 2 (|R| - 1) · cost(T)for every listTthat connectsR, assumingR.Nodup.length_mul_edgeCost_steinerMST_le_of_diag:|R| · cost(steinerMST) ≤ 2 (|R| - 1) · cost(T)when∀ x, δ x x = 0, without assumingR.Nodup.edgeCost_steinerMST_le_two_mul,edgeCost_steinerMST_le_two_mul_steinerOpt,length_mul_edgeCost_steinerMST_le_steinerOpt: approximation bounds for duplicate-free terminals.edgeCost_steinerMST_le_two_mul_of_diag,edgeCost_steinerMST_le_two_mul_steinerOpt_of_diag,length_mul_edgeCost_steinerMST_le_steinerOpt_of_diag: the zero-diagonal approximation bounds for arbitrary terminal lists.
Limitations #
The statements are about the output and the optimum, not about running time. No time bound for
steinerMST is stated here.
References #
The problem #
The optimum Steiner cost: the least cost of an edge list that connects R. The set is never
empty, since steinerMST δ R connects R (exists_connects_edgeCost_eq_steinerOpt).
The algorithm #
The heuristic connects the terminals.
Minimum spanning trees of complete graphs #
Kruskal's tree on the complete graph weighs at most any Hamiltonian path.
Minimum spanning tree versus Hamiltonian cycle, sharpened: for every Hamiltonian cycle q
of the complete graph on k vertices, k · MST ≤ (k - 1) · cost(q). Deleting the most expensive
of the k edges of q leaves a Hamiltonian path costing at most (1 - 1/k) · cost(q). This
sharpens [WS11], Lemma 2.10 (totalWeight_kruskalEdges_le_cycleCost).
The approximation guarantee #
Filtering an edge list T by a vertex predicate P that is invariant along edges of T
preserves connectivity (Relation.EqvGen) among vertices satisfying P.
Filtering T to edges in u's connected component preserves connectivity within that
component.
The MST heuristic for metric Steiner tree, sharp form: for a symmetric cost with the
triangle inequality and duplicate-free terminals R, |R| · cost(steinerMST δ R) ≤ 2 (|R| - 1) · cost(T) for every edge list T connecting R. This is the factor 2 (1 - 1/|R|),
a restricted form of [KMB81]'s 2 (1 - 1/ℓ) with ℓ the number of leaves of an
optimal tree.
The MST heuristic for metric Steiner tree with zero diagonal: when ∀ x, δ x x = 0,
|R| · cost(steinerMST δ R) ≤ 2 (|R| - 1) · cost(T) for every edge list T connecting R,
without assuming R.Nodup. Steps between duplicate visits inside a block cost zero.
The MST heuristic for metric Steiner tree ([WS11], Exercise 2.5(a)): the heuristic costs at most twice any edge list connecting the terminals.
The 2-approximation for zero-diagonal costs and arbitrary terminal lists.
The MST 2-approximation for metric Steiner tree ([WS11], Exercise 2.5(a)):
cost(steinerMST δ R) ≤ 2 · OPT.
The 2-approximation against the optimum for zero-diagonal costs.
The sharp form against the optimum: |R| · cost(steinerMST δ R) ≤ 2 (|R| - 1) · OPT.
The sharp form against the optimum for zero-diagonal costs.