Metric k-supplier: 3-approximation and 3 - ε hardness gap #
In the k-supplier problem ([HS86]), the metric space separates a finite set F of
candidate facilities from a finite nonempty set C of clients. One must choose at most k
facilities S ⊆ F minimizing max_{c ∈ C} d(c, S). Unlike k-center (where F = C = V), the
best possible polynomial-time approximation factor for metric k-supplier is 3.
Contents #
- Model:
supplierRadius d C hC SandsupplierOptimum d F C hC kinWithTop α, reusingcenterDistfromCslibFrontier.Algorithms.Lean.KCenter.Basicand specializing tooptRadiuswhenF = C = Finset.univ(supplierOptimum_univ). - Hochbaum–Shmoys
3-approximation (hochbaumShmoysSupplier): at candidate thresholdr,supplierThresholdStepcomputes the greedy2r-packingTof clientsCviathresholdPackingand picks for eacht ∈ Ta facilityf ∈ Fwithin distancer(failing if anyt ∈ Thas nor-close facility). If anyS ⊆ Fof size at mostkcoversCwithinr, then|T| ≤ k(bylength_le_card_of_pairwise_lt) and everyt ∈ Thas anr-close facility; conversely, every client inClies within2rof somet ∈ Tand hence within3roft's chosen facility. Searching over{d c f | c ∈ C, f ∈ F}gives a certified3-approximation (hochbaumShmoysSupplier_approx). - Tight
3 - εhardness gap ([HS86], generalizingDominatingSet.lean): given a bipartite incidence relationR : U → W → Propbetween universe elementsU(facilities) and setsW(clients),hittingDist RonU ⊕ Wputs distance1on incident facility–client pairs,2on distinct same-side pairs, and3on non-incident facility–client pairs. This is a metric (hittingDist_symm,hittingDist_triangle) whose optimalk-supplier radius is at most1iff ak-hitting set exists (exists_isHittingSet_iff_supplierOptimum_le_one), and equals3otherwise (supplierOptimum_eq_three_of_not_exists_hittingSet). Consequently, anyρ-approximate solution withρ < 3decidesk-Hitting Set (exists_isHittingSet_iff_of_supplierRadius_le_mul).
Limitations #
The 3-approximation is a pure Lean function over facility and client lists; no machine-level
Word-RAM running time is certified (tracked in #9248). The 3 - ε hardness section formalizes
the combinatorial gap reduction on bipartite incidence relations, not the encoded NP-hardness
statement (P = NP from a polynomial-time < 3-approximation).
Main definitions #
Cslib.Algorithms.Lean.KCenter.supplierRadius:max_{c ∈ C} d(c, S).Cslib.Algorithms.Lean.KCenter.supplierOptimum: optimalk-supplier radius overS ⊆ F,|S| ≤ k.Cslib.Algorithms.Lean.KCenter.supplierThresholdStep: thresholdrclient packing and facility selection step.Cslib.Algorithms.Lean.KCenter.hochbaumShmoysSupplier: parametric threshold3-approximation.Cslib.Algorithms.Lean.KCenter.IsHittingSet: hitting-set predicate for an incidence relation.Cslib.Algorithms.Lean.KCenter.hittingDist,hittingFacilities,hittingClients: the{1, 2, 3}hitting-set metric onU ⊕ W.
Main results #
supplierRadius_le_coe_iff,supplierOptimum_le_iff,exists_supplierRadius_eq_supplierOptimum,supplierOptimum_univ: core API for thek-supplier objective.hochbaumShmoysSupplier_subset,card_hochbaumShmoysSupplier_le,hochbaumShmoysSupplier_approx: feasibility and3-approximation for metrick-supplier.hittingDist_symm,hittingDist_triangle: metric axioms forhittingDist.exists_isHittingSet_iff_supplierOptimum_le_one,supplierOptimum_eq_three_of_not_exists_hittingSet,isHittingSet_of_supplierRadius_le_mul,exists_isHittingSet_iff_of_supplierRadius_le_mul: the tight3 - εhardness gap.
References #
The k-supplier objective #
The k-supplier radius max_{c ∈ C} d(c, S) of a set S of facilities serving a nonempty
finite set C of clients. It is ⊤ when S is empty.
The optimal k-supplier radius min_{S ⊆ F, |S| ≤ k} supplierRadius d C hC S. It is ⊤
when k = 0 or F = ∅.
The supplier radius of S is at most r iff every client in C is within r of some
facility in S.
Opening additional facilities never increases the supplier radius.
Any nonempty set of facilities achieves a finite supplier radius.
Some subset of at most k facilities attains supplierOptimum.
With at least one available facility and k ≥ 1, the optimal supplier radius is finite.
When F = C = Finset.univ, supplierOptimum coincides with the k-center optRadius.
Hochbaum–Shmoys 3-approximation for k-supplier #
Threshold r step of Hochbaum–Shmoys for k-supplier ([HS86]): compute a
greedy 2r-packing T of the clients C, and pick for each t ∈ T the first facility f ∈ F
with d t f ≤ r. Returns none if some t ∈ T has no r-close facility in F.
Hochbaum–Shmoys parametric threshold 3-approximation for metric k-supplier
([HS86]): searches all client–facility distances d c f (c ∈ C, f ∈ F) for the
smallest threshold r at which supplierThresholdStep d F C r succeeds with at most k
facilities, returning that facility set (or ∅ if none is feasible).
Feasibility (subset): every facility chosen by hochbaumShmoysSupplier belongs to F.
Feasibility (cardinality): hochbaumShmoysSupplier opens at most k facilities.
Hochbaum–Shmoys threshold algorithm is a 3-approximation for metric k-supplier
([HS86]): on any symmetric distance satisfying the triangle inequality over a
linearly ordered cancelative semiring (ℕ, ℚ, ℝ, …), the returned facility set has supplier
radius at most 3 * r for every bound r on the optimal k-supplier radius.
Tight 3 - ε hardness gap via Hitting Set #
The {1, 2, 3} hitting-set distance ([HS86]) on U ⊕ W associated to a
bipartite incidence relation R : U → W → Prop: 0 on identical points, 1 on incident
facility–client pairs, 2 on distinct same-side pairs, and 3 on non-incident facility–client
pairs.
A subset S of facilities achieves radius at most 1 in hittingDist R exactly when its
elements form a hitting set for R.
Because client–facility distances in hittingDist R take only values 1 and 3, radius
strictly below 3 is also equivalent to being a hitting set.
Hitting sets are k-supplier solutions of radius 1 ([HS86]): a
k-hitting set for R exists iff the optimal k-supplier radius of hittingDist R is at
most 1.
NO-instance radius is 3 ([HS86]): when U is nonempty, k ≥ 1, and no
k-hitting set for R exists, the optimal k-supplier radius of hittingDist R is 3.
The 3 - ε hardness gap for metric k-supplier ([HS86]): if a
k-hitting set exists, then any ρ-approximate facility set S ⊆ hittingFacilities U W with
ρ < 3 is a hitting set.
A ρ-approximation with ρ < 3 decides k-Hitting Set ([HS86]): if
S ⊆ hittingFacilities U W has at most k facilities and is ρ-approximate with ρ < 3, then a
k-hitting set exists iff S itself is a hitting set.