Kou–Markowsky–Berman leaf bound and non-terminal leaf pruning for Steiner tree #
This module extends CslibFrontier.Algorithms.Lean.SteinerTree.Metric and
CslibFrontier.Algorithms.Lean.SteinerTree.Graph with two results from the heuristic of Kou,
Markowsky and Berman [KMB81]:
- The
2 (1 - 1/ℓ)leaf bound: for any Steiner treeTconnecting the terminalsRwithℓ = leafCount Tleaves,ℓ · cost(steinerMST δ R) ≤ 2 (ℓ - 1) · cost(T)(leafCount_mul_edgeCost_steinerMST_leand_of_diag), strictly sharpening the2 (1 - 1/|R|)bound ofSteinerTree.Metricwhenever some terminals are internal vertices ofT(ℓ < |R|). The same leaf bound carries over tokmbEdgesin edge-weighted graphs (leafCount_mul_sum_kmbEdges_le). - Non-terminal leaf pruning:
pruneNonTerminalLeaves R Titeratively deletes degree-1 non-terminal vertices and their incident edges. It preserves terminal connectivity (connects_pruneNonTerminalLeaves), preserves the tree structure (isTreeEdges_pruneNonTerminalLeaves), never increases edge cost (edgeCost_pruneNonTerminalLeaves_le), and leaves every remaining degree-1 vertex inR(mem_of_degree_pruneNonTerminalLeaves_eq_one), soleafCount ≤ |R.dedup| ≤ |R|.
Model #
- Edge lists
T : List (α × α)use the connectivity predicateConnects, additive costedgeCost, and Euler-module vertex degreeEuler.degree(where a self-loop counts twice). vertices Tis the duplicate-free list of endpoints of edges ofT,leaves Tis the list of vertices ofTof degree1, andleafCount T := (leaves T).length.IsTreeEdges Tcharacterizes an edge list forming a finite tree (either empty, or connected onvertices TwithT.length + 1 = (vertices T).length, which precludes self-loops, parallel edges and cycles viaKruskal.SimpleGraph).
Proof of the 2 (1 - 1/ℓ) bound #
Given a nonempty tree T connecting R with ℓ ≥ 2 leaves, double each edge of T and take an
Euler circuit W starting at a leaf l₀. Every leaf has degree 2 in the doubled tree, so W
visits each leaf exactly once (with l₀ repeated at the end) and splits into ℓ edge-disjoint
leaf-to-leaf segments whose costs sum to 2 · cost(T). Deleting the heaviest segment leaves an
open walk W' of cost at most 2 (1 - 1/ℓ) · cost(T) that still visits all ℓ leaves of T.
Because T is a tree, removing any internal vertex disconnects its neighbors into components each
containing a leaf of T, so W' must visit every vertex of T — hence every terminal in R.
Shortcutting the open walk W' to R yields a Hamiltonian path on R costing at most W',
which upper-bounds steinerMST δ R.
Limitations #
The statements are purely about solution cost and structure, with no machine-level running-time certificate. Primary-source details for [KMB81] come from the abstract and secondary sources; the full text was not inspected directly.
Main definitions #
vertices,leaves,leafCount: endpoints and degree-1 vertices of an edge list.IsTreeEdges: tree predicate for edge lists.pruneNonTerminalLeaves: iterative pruning of degree-1 non-terminal vertices.
Main results #
pruneNonTerminalLeaves_sublist,edgeCost_pruneNonTerminalLeaves_le,connects_pruneNonTerminalLeaves,mem_of_degree_pruneNonTerminalLeaves_eq_one,leafCount_pruneNonTerminalLeaves_le,isTreeEdges_pruneNonTerminalLeaves: specification of KMB non-terminal leaf pruning.two_le_leafCount_of_isTreeEdges: every nonempty finite tree has at least two leaves.leafCount_mul_edgeCost_steinerMST_le,leafCount_mul_edgeCost_steinerMST_le_of_diag:ℓ · cost(steinerMST δ R) ≤ 2 (ℓ - 1) · cost(T)for every treeTconnectingR.exists_optimal_pruned_steinerTree: existence of a pruned optimal Steiner tree attainingsteinerOpt δ Rwith all leaves inRand satisfying the2 (1 - 1/ℓ)bound.leafCount_mul_sum_kmbEdges_le: the2 (1 - 1/ℓ)leaf bound forkmbEdgesin graphs.
References #
Open-walk shortcutting and block splitting (decidability-free helpers) #
Vertices, leaves, and tree edge lists #
The duplicate-free list of endpoints of edges in T.
The degree-1 vertices (leaves) of the edge list T.
The number of leaves (degree-1 vertices) of the edge list T.
T is a finite tree: either empty, or connected on its endpoints with |E| + 1 = |V|.
Every nonempty finite tree has at least two leaves.
KMB non-terminal leaf pruning #
Whether e is incident to a degree-1 vertex of T outside the terminal list R.
Iterative pruning loop with fuel k.
Kou–Markowsky–Berman non-terminal leaf pruning: iteratively remove edges incident to
degree-1 vertices outside R.
Non-terminal leaf pruning never increases the edge cost.
Non-terminal leaf pruning preserves terminal connectivity.
Non-terminal leaf pruning preserves the tree structure.
After KMB pruning, every remaining degree-1 vertex is a terminal in R.
After KMB pruning, the number of leaves is at most the number of distinct terminals.
Tree reindexing and the leaf-segment coverage lemma #
The 2 (1 - 1/ℓ) Kou–Markowsky–Berman leaf bound #
The Kou–Markowsky–Berman 2 (1 - 1/ℓ) leaf bound for metric Steiner tree
([KMB81]): for symmetric δ with the triangle inequality, duplicate-free
terminals R, and any tree T connecting R,
leafCount T · cost(steinerMST δ R) ≤ 2 (leafCount T - 1) · cost(T).
The Kou–Markowsky–Berman 2 (1 - 1/ℓ) leaf bound with zero diagonal: when
∀ x, δ x x = 0, the leaf bound holds for arbitrary terminal lists R without assuming
R.Nodup.
Any connecting edge list T contains a pruned tree T' connecting R with all leaves in R
and cost at most edgeCost δ T.
There exists an optimal pruned Steiner tree attaining steinerOpt δ R whose leaves all lie in
R and which satisfies the 2 (1 - 1/ℓ) Kou–Markowsky–Berman leaf bound.
The Kou–Markowsky–Berman 2 (1 - 1/ℓ) leaf bound in edge-weighted graphs: for any
shortest-walk oracle P and any tree edge list T of G connecting R,
leafCount T · cost(kmbEdges w P R) ≤ 2 (leafCount T - 1) · cost_w(T).