Manuscript Offprint
arXiv:2611.03547Exact Sum-of-Radii Clustering under Any Constant Stability
Abstract
We establish a separation between the stability thresholds of Minimum Sum-of-Radii (MSR) clustering and two closely related objectives. Known hardness results show that, on general metrics, exact recovery for Minimum Sum-of-Diameters and symmetric -center is hard for every fixed , unless NP = RP. We show that MSR admits deterministic polynomial-time exact recovery for every fixed , extending Gao and Reyzin's result for . All three results use the same Bilu–Linial stability model: the optimal partition remains uniquely optimal when each pairwise distance is multiplied by any factor in , without requiring the perturbed distances to satisfy the triangle inequality. The number of clusters is part of the input. For , our algorithm runs in time.
The main structural insight is that a cheap merge in one part of the instance would allow a profitable split elsewhere under a suitable perturbation, contradicting stability. The resulting exchange inequality controls local cluster density, which gives linear growth and hence bounded treewidth in local interaction graphs. We use random partitions to obtain these regions, solve them by dynamic programming, and then derandomize the construction. For rational input and fixed rational , recognizing stability in this model is coNP-complete. Verifying that a supplied partition remains uniquely optimal under all allowed perturbations is coNP-complete for both arbitrary symmetric and metric perturbations.
1 Introduction
Minimum Sum-of-Radii (MSR), Minimum Sum-of-Diameters (MSD), and -center partition a finite metric space into clusters. Their objectives are, respectively, the sum of cluster radii, the sum of cluster diameters, and the maximum cluster radius. MSR allows a larger radius in one cluster to be offset by smaller radii elsewhere and is motivated by coverage problems such as placing base stations to serve demand points [19].
These closely related objectives have different thresholds for recovery under Bilu–Linial stability. On general metrics, when perturbations may be arbitrary symmetric distance increases, MSD [18, Theorem IV.2] and symmetric -center [5, Theorem 10] remain hard for every fixed , unless NP = RP. In the same model, we recover the unique MSR optimum in polynomial time for every fixed .
Formally, for a nonempty set , let
We require exactly nonempty clusters and choose each center from its own cluster. Singletons have radius zero. We write and omit the subscript when distances are measured by .
A -perturbation of is a symmetric function satisfying for every pair of points. We do not require to satisfy the triangle inequality. An instance is -stable if a partition is uniquely optimal under every such perturbation, including itself. The centers need not be unique or remain unchanged. This is the perturbation-stability model of Bilu and Linial [10].
Gao and Reyzin [18] showed that single-linkage recovers the optimum of every 2-stable MSR instance. We give a deterministic algorithm for the remaining range . By monotonicity of stability, our algorithm also handles by using parameter . Let .
Theorem 1.1. For every fixed , there is a deterministic polynomial-time algorithm that recovers the unique optimum of every -stable MSR instance under arbitrary symmetric perturbations. For , its running time is
On every finite metric input with , it halts and returns a feasible partition into exactly nonempty clusters.
Theorem 1.1 separates the stability threshold for MSR from the threshold 2 for MSD [18, Theorem III.2] and -center [5, Theorem 4]. The recovery algorithm rests on a structural consequence of stability: local cluster density is bounded strongly enough to yield bounded-treewidth interaction graphs. The key exchange argument uses the fact that fixing the number of clusters links otherwise distant parts of the instance. Merging two optimal clusters frees one place in the cluster count, allowing a third cluster to be split elsewhere. For every nonsingleton , we construct a perturbation that increases its radius by , while splitting off a suitable point removes that increase. The merge is unaffected by the perturbation. If it costs at most extra, the merge and split together give a different partition of no greater perturbed cost. Stability therefore forces
More generally, merging several clusters must cost more than the savings from the corresponding number of splits elsewhere. The clusters being split need not be near those being merged.
This exchange principle controls local cluster density at the radii used by our algorithm. Too many small clusters meeting a ball could be merged cheaply, allowing profitable splits of larger clusters elsewhere and contradicting stability. Large clusters satisfy a complementary bound from ordinary optimality: the sum of the radii of optimal clusters contained in a ball cannot exceed the ball's radius. Otherwise, one ball would cover them at smaller cost, and we could convert this cheaper cover back to exactly clusters. Together, these bounds limit how many clusters can meet a ball without any assumption on the dimension of the metric.
The algorithmic consequence is the progression
Within each region of sufficiently small diameter, choose points separated by more than twice the largest optimal radius and join points within a fixed multiple of that radius. Distinct vertices belong to distinct optimal clusters. The density bound then limits the number of vertices reachable in graph steps to for . A theorem of Campbell et al. [12] converts this linear growth into treewidth bounded solely by , permitting exact dynamic programming even when a region contains many clusters. The exponent comes from vertices per bag and candidate choices per vertex; enumeration itself costs only . These bounds establish polynomial-time tractability; they are too large for a practical algorithm.

Figure 1: A stable instance on which single-linkage fails. The dashed enclosure is the radius-1 optimal cluster; is a singleton. Single-linkage first merges along the unique length-1/2 edge.
The need to go beyond single-linkage already appears on five points (Figure 1). Take the shortest-path metric of a tree with a center , three leaves joined to by unit edges, and a point joined to by an edge of length . For , the optimum is , of cost 1; every other partition costs at least . Under any -perturbation, its cost is at most , while competitors still cost at least . Thus it is -stable for every . Nevertheless, single-linkage first merges the unique closest pair , crossing the optimal partition; subsequent merges cannot repair this error. The metric perturbation increasing only to makes tie the original optimum, so the instance is not -stable for any .
Our algorithm builds on the partition-and-enumerate approach of Gibson et al. [19]. Small clusters are recovered as connected components. If few large clusters remain, we enumerate them; otherwise we partition the instance, enumerate the few large clusters split by the partition, and solve each residual region by dynamic programming. The number guessed and the treewidth depend only on . One randomized run succeeds with probability at least ; Section 4.4 proves Theorem 1.1 using the order family constructed in Appendix B.
For unrestricted MSR, a quasi-polynomial-time approximation scheme is known [19], while a polynomial-time approximation scheme (PTAS) remains open [21]; the best known polynomial-time guarantee is for any fixed [11, 21]. To our knowledge, the earlier examples of recovery under every fixed stability factor discussed in Section 2 concern classes already admitting PTASs: clustering in fixed doubling dimension [16, 17], metric Max-Cut [9, 14], and planar independent set [1, 4].
We also prove coNP-completeness of recognizing stability and of verifying stability of a supplied partition, for fixed rational . Appendix D gives a corollary for power costs with fixed .
After previous work, Section 3 proves the structural results and Section 4 gives the recovery algorithm. Sections 5 and 6 state the recognition result and open questions. Implementation details and supporting proofs are in the appendices.
The closest stability result is Gao and Reyzin's single-linkage algorithm for 2-stable MSR [18,
Theorem III.3]. Below 2, their separation bound weakens to times the cluster radius and no longer guarantees single-linkage recovery. They also prove hardness below stability 2 for Minimum Sum-of-Diameters [18, Theorem IV.2].
For center-based clustering, recovery thresholds improved from 3 [3] to [6] and then 2 under metric perturbations [2]. For symmetric -center, recovery below 2 is hard unless NP = RP, even under our arbitrary symmetric perturbations [5, Theorem 10]. Ben-David and Reyzin [8] establish hardness for -median and min-sum clustering under weaker structural stability conditions.
Recovery for every fixed is known for discrete -means and -median in fixed-dimensional Euclidean and doubling metrics [16]. Those problems already admit PTASs [17]; their stability promise preserves the center set, whereas ours preserves the partition. Other examples include metric Max-Cut and a class of dense weighted Max-Cut instances [9] and planar weighted independent set [1], also on classes admitting PTASs [4].
Grandoni, Gupta, and Yadav [21] give approximation schemes for MSR with exponential dependence on , leaving a PTAS for variable open. Drexler et al. [13] give an XP algorithm parameterized by treewidth for MSR on weighted graph metrics; Kumar et al. [24] obtain fixed-parameter tractability parameterized by treedepth for unweighted graph metrics. In those results, graph distances define the input metric. Our graph instead records interactions among candidate clusters, and stability bounds its treewidth. Banerjee et al. [7] study parameterized radius objectives; Appendix D uses their transformation to transfer stability. Our remaining algorithmic ingredients are the linear-growth theorem of Campbell et al. [12], Korhonen's treewidth approximation [23], and Indyk's approximately minwise independent families [22].
3 Structural consequences of stability
Computational model. Running times count exact arithmetic operations and comparisons, with fixed parameters available as constants; random choices are uniform integers. On inputs with rational distances of total binary length , the same recovery guarantees hold for every fixed real with an additional poly() factor in bit time: expected for the randomized algorithm and worst-case for the deterministic one. Appendix A.5 gives the implementation. The coNP statements use rational distances and fixed rational .
Notation. Throughout the paper, and . In the recovery argument, triangle inequalities refer to the original metric . Balls are closed, and joins distinct points at distance at most ; denotes its subgraph induced by . Write , with value if either set is empty, and . We give the empty set diameter zero; radius statements concern nonempty sets. We use fixed input order to break ties, and log denotes the natural logarithm.
3.1 Separation and the merge-and-split inequality
Unless stated otherwise, denotes the unique optimum of a -stable instance. The results in this subsection hold for every .
The next two lemmas hold for arbitrary metric instances, without stability; their short proofs are in Appendix A.1.
Metric Max-Cut equivalently gives stable recovery for two-cluster min-sum clustering: on each perturbed instance, the within-cluster cost is the total pair weight minus the cut weight. This two-cluster objective also has a PTAS [15].
Lemma 3.1. Every cover of by at most balls centered in can be converted in polynomial time into an exact- partition of no greater cost.
Lemma 3.2. For any optimal exact- partition and every and ,
The first inequality below is Gao and Reyzin's center-separation bound. Appendix A.1 gives a proof in our exact-, in-cluster-center model; its perturbation need not be metric.
Lemma 3.3 (Gao-Reyzin [18, Lemma A.1(1)]). Let , let be any optimal center of , and let . Then
Consequently,
The separation consequence follows from the triangle inequality: for and , . The ball identities follow because all points of are within of and all other points are farther than .
Lemma 3.4. Let be a unique optimal exact- partition. If is a nonempty union of its clusters, then is the unique optimum on for its own number of clusters.
Proof. Extend any competing partition of by retaining the clusters of outside . Their outside costs cancel, proving optimality and uniqueness of the restriction.
We next construct the perturbation used in the exchange argument.
Lemma 3.5 (Split perturbation). For every nonsingleton set of radius , there are an optimal center , a point , and a perturbation that changes only distances within such that
Proof. We seek an optimal center and a point such that every point has a perturbed distance at least to another point, while the distances from to stay at most . The first condition forces every perturbed eccentricity to be at least ; the second makes splitting off inexpensive.
Form a graph on by joining pairs at distance at least . Every vertex has a neighbor, since otherwise its eccentricity would be below . For an optimal center and a graph neighbor , suppose we keep 's distances to unchanged and scale all other internal pairs by . The only possible obstruction is a degree-one neighbor of : its sole distance of at least stays unscaled, making a center of perturbed radius below . We choose to avoid this.
Start with an optimal center . If has a degree-one neighbor , choose and . Then and all other distances from are below , so is optimal and its only graph edge is . Otherwise choose and any neighbor of .
Leave unchanged for , and multiply all other internal distances by . In the first case, every graph edge is multiplied by . In the second case, each vertex other than has a graph edge not incident to : a neighbor of has degree at least two, and a nonneighbor has some edge. The edge supplies the required distance for and . Thus every vertex has perturbed eccentricity at least . The optimal center attains this bound, while all its distances to remain unchanged and at most .
The constructed perturbation need not be metric: for , the scaled distance may exceed the unchanged sum . This is one obstacle to extending the argument to metric perturbations (Section 6).
Lemma 3.6 (Merge-and-split inequality). Let , with , be distinct optimal clusters. Let be distinct nonsingleton optimal clusters outside this family. Then
Proof. Apply Lemma 3.5 independently inside each , increasing the optimum's cost by . Merge the and split the designated singleton from each . This removes and adds clusters, preserving the count . The merged set keeps its original radius; the remainder of each split cluster costs at most . The competitor therefore costs at most
Uniqueness under the perturbation forces this upper bound to exceed the optimum's perturbed cost, giving the inequality.
Corollary 3.7. For distinct optimal clusters , with nonsingleton,
Proof. Assume . Centering at an optimal center of D and traveling through a closest pair gives
Combine this with Lemma 3.6, splitting C.
3.2 Small clusters and local density
For the rest of this section, assume and fix a stable instance with k < n. Let
Call the clusters in large and the others small. In particular, and . The factors 4 leave room for both estimates used below: and . The radius is the range of the density estimate below; regions of diameter at most inherit the resulting treewidth bound.
Lemma 3.8. Every small optimal cluster is a connected component of the global graph . Every other component consists entirely of points belonging to large clusters.
Proof. A small cluster has diameter below , so it is connected in . Choose an optimal cluster of radius . For , Corollary 3.7 gives
For , separation gives . No edge leaves , proving both claims. □
Lemma 3.9 (Local cluster density). The following bounds hold for every .
(i) A union of at least small optimal clusters has radius greater than .
(ii) For , a ball meets at most small optimal clusters.
(iii) For every , a ball meets at most large optimal clusters.
Proof. For (i), choose an optimal center of the union and retain clusters including the one containing . The retained union has no larger radius when centered at . Lemma 3.6, splitting all large clusters, makes this radius greater than .
For (ii), let be the union of small clusters meeting , and choose . For , take in its cluster's intersection with the ball. Then
Thus , and
By (i), . For , apply Lemma 3.6 splitting large clusters, each of radius at least :
The asserted bound follows; s = 0, 1 is immediate.
For (iii), each meeting large cluster has diameter at most 2R, so it lies inside . Lemma 3.2 gives
This argument also covers the empty family.
Lemma 3.9 bounds the number of optimal clusters meeting by for . Both the partition and treewidth arguments below use this linear growth.
Use of stability. Recovery below needs only a unique optimum, center separation (Lemma 3.3), and the merge-and-split inequality (Lemma 3.6). It therefore applies whenever these conditions hold with and .
4 A randomized algorithm for recovery
For , run the algorithm below with parameter : every -stable instance is also -stable. Gao and Reyzin's single-linkage algorithm is a faster alternative in this range [18, Theorem III.3]. Henceforth and . We present the randomized algorithm first and prove the deterministic theorem at the end of this section.
Proof of Theorem 1.1 at a glance. The argument has three main dependencies:
-
Small-cluster recovery. Merge-and-split (Lemma 3.6) gives separation (Corollary 3.7), which identifies small clusters as components (Lemma 3.8).
-
Few split large clusters. Density (Lemma 3.9) bounds net sizes and splitting probabilities (Lemmas A.1 and A.2 in Appendix A.3), yielding Proposition 4.1.
-
Local recovery. Density and the linear-growth theorem (Theorem 4.3) bound treewidth (Lemma 4.4), enabling the local solver (Proposition 4.2).
Theorem 4.5 combines these steps. The order family of Theorem B.2 then removes randomness, as shown at the end of Section 4.4.
4.1 The search and its two branches
Either there are few large clusters, so we enumerate them, or their total radius is large enough to support a useful partition scale. Fix , a power of two large enough for the net-count lemma (Lemma A.1), as explained in Appendix A.2.
Table 1: The four scales used by the recovery algorithm.
| Scale | Role |
|---|---|
| Largest optimal radius; guessed from input distances. | |
| Threshold between small and large clusters. | |
| Region diameter bound for density and treewidth; is the total large-cluster radius. | |
| Partition scale, chosen so . |
-
Few large clusters (). There are at most large clusters. Enumerate them and recover the remaining small clusters as connected components.
-
Partition branch (). Choose with . With constant probability, the partition splits only large clusters. Enumerate those clusters and solve the residual regions.
In the partition branch, is where partitioning gives way to dynamic programming. The small-cluster density bound in Lemma 3.9(ii) is established only for radii at most , so our treewidth argument applies to aligned regions of diameter at most . Recursing from down to could require levels; since can grow with , repeating the enumeration at each level could lead to a quasi-polynomial running time. Instead, one partition at has : it splits few large clusters and leaves residual regions small enough for the treewidth argument.
The component test in Lemma 3.8 is one-sided: every small optimal cluster is a global -component of radius below , but a large cluster need not be connected in . Thus a component passing the test may instead contain pieces of one or more large clusters. The partition keeps these components whole, while the local solver decides whether to retain each as a cluster or cover it completely with large-cluster candidates.
The algorithm guesses among the positive input distances and runs both branches. For a guess , put . A candidate is a ball with a specified center and radius satisfying
All tests use the full metric, and the candidate's cost is . There are at most representations. At , every large optimal cluster occurs, by Lemma 3.3. Only disjoint candidate families are selected, so multiple representations of one set cannot be selected together.
Write and for the two enumeration bounds; their exact values appear in Table 2. The routine RandomPartitions() returns partitions into regions of diameter at most . The routine SolveRegion() either rejects or returns a table of feasible -cluster partitions of and their actual costs. Unavailable entries are ; .
Algorithm 1 Randomized recovery of a stable MSR clustering
1 If , return the singleton partition; otherwise initialize any feasible exact- answer.
2 For every positive input distance , form the candidates in (1) and run both branches:
3 A (few large clusters). Enumerate disjoint candidate families with . Combine with the components of .
4 B (partition branch). For every , , and every , enumerate disjoint candidate families with .
5 For each such choice, set and call SolveRegion() for all . If none rejects, combine their tables using (2).
6 Retain only feasible exact- proposals, updating the answer whenever its actual cost decreases. Return the cheapest answer.
The table combination minimizes
The table combination takes polynomial time by adding tables one at a time. Each partition is reused for all candidate families at its scale; each call to RandomPartitions uses a fresh ordering. The detailed implementations and feasibility checks are in Appendix A.
4.2 Partitions that split few clusters
A set is split by a partition if it meets more than one part.
Proposition 4.1. For every and , RandomPartitions() returns in polynomial time a nonempty family of partitions into nonempty regions of diameter at most . On a stable input at , every partition preserves all small optimal clusters. If also , then with probability at least 1/3 the family contains a partition with at most split large clusters.
Here is why the splitting bound depends on rather than . Keep components of of diameter at most whole. In every remaining component , choose a maximal strictly -separated set . Process these points in random order, assigning to each the unassigned points within a common radius . A final adjustment keeps every global -component of radius below whole. The implementation enumerates midpoint radii, so only the ordering is random.
For the analysis, choose uniformly from its interval. Fix a large cluster of radius in and an optimal center . Let be together with every global -component of radius below that meets . Keeping whole before the adjustment ensures that remains whole afterward. Moreover, and .
Figure 2 distinguishes two kinds of net centers. Connectivity supplies inner centers in , whose balls cover for every allowed radius. The density bound limits all relevant

Inner centers (filled dots) lie in . Their radius- balls always cover , since .
Relevant outer centers (open dots) lie outside that ball and within distance of . They lie in (not drawn), and their balls may meet only part of . Only a partial intersection at the first ball meeting can split it.
Figure 2: The partition analysis inside a wide component . Filled and open dots represent points of ; . The first center meeting splits it only if its radius- ball fails to cover it, as illustrated by . All radii are drawn to scale with and .
centers to (Lemma A.1). The ratio of outer to inner centers is therefore , independent of .
If is split, the first center whose ball meets it must meet it only partially. Averaging over the radius contributes a factor ; summing over the possible first centers gives a harmonic factor controlled by the outer-to-inner ratio. Consequently,
Since , summing this bound and applying Markov's inequality gives the claimed success probability. Appendix A.3 proves the bound and explains why enumerating midpoint radii preserves it.
4.3 Density, treewidth, and local recovery
The local solver uses two properties: alignment, meaning that is a union of whole optimal clusters, and bounded diameter, meaning . Together they guarantee complete local recovery.
Proposition 4.2. For every input, halts in time and either rejects or returns feasible partitions with their actual costs. If the input is stable, , and is aligned with , it does not reject, and its table contains at the true cluster count.
Choose a maximal strictly -separated set and join two vertices when their distance is at most ; call the resulting graph . Assign each candidate contained in to the vertex nearest its specified center. At the correct guess, each true large cluster assigned to lies in . Lemma 3.2 bounds their total radius by , so at most such clusters are assigned to any vertex. Selecting one representation per cluster, we can therefore restrict each variable to selected candidates, giving possible values.
The constraints enforce disjointness and coverage. A global -component contained in with radius below is optional. Because the component test is one-sided, the dynamic program either retains it as a cluster or covers it completely using selected large-cluster candidates. All other points must be covered. Every constraint involves a clique of , and each variable contributes its actual cost and cluster count. These facts, including their validity on arbitrary inputs, are proved in Appendix A.
Theorem 4.3 (Campbell et al. [12, Theorem 1]). If and, for every integer , every connected subgraph of a graph having graph radius at most , measured within that subgraph, has at most vertices, then .
Lemma 4.4. On a stable input at , an aligned region with satisfies .
Proof. Distinct vertices of belong to distinct optimal clusters, whose diameters are at most . For , a ball of graph radius lies in the metric ball of radius . Using and , Lemma 3.9 bounds its size by
where . Every connected subgraph of radius at most lies in a ball of radius in . Theorem 4.3 gives the bound with .
A net restricted to points in large optimal clusters, if it preserved the solver's coverage guarantees, would have growth constant and treewidth , reducing the running time to . The available tests do not identify the required points: the component test can accept pieces of large clusters, while the candidate tests can accept unions of small ones. The current construction therefore spans all of and uses both density bounds.
Proof sketch of Proposition 4.2. Korhonen's algorithm [23, Theorem I.1] supplies a decomposition of width at most , or correctly rejects because treewidth exceeds . Recording candidate choices and cluster counts in each bag gives time. Alignment and the candidate restriction preserve the local optimum. Appendix A.4 gives the full proof; Appendix A.6 gives the recurrence.
4.4 Correctness and running time
Theorem 4.5 (Randomized recovery). Algorithm 1 always returns a feasible exact-k partition in time. On a -stable input it returns the optimum with probability at least 1/3. Taking the cheapest result of independent runs reduces the failure probability to .
Proof sketch of Theorem 4.5. Every accepted proposal is feasible. On a stable input at the correct guess, Branch A enumerates all large clusters when ; Lemma 3.8 recovers the rest. Otherwise Lemma A.4 supplies a scale . With probability at least 1/3, Proposition 4.1 splits at most large clusters. Enumerating and removing them leaves aligned regions of diameter at most . Proposition 4.2 and (2) then recover . Only this one partition call needs to succeed. Local computation dominates the running time. Appendix A.5 gives the full proof.
Proof of Theorem 1.1. If , return the singleton partition. It suffices to treat : for , use parameter and monotonicity of stability. Theorem B.2, proved from Indyk's theorem in Appendix B, supplies a polynomial-size family of orders of the net points used by a partition call. Under a uniform choice from this family, each element of a nonempty is first in with probability at most . Replace the sampled order in each partition call by enumeration of , keeping the same midpoint radii and all other steps. When , keep the single partition already specified.
On a stable input with , Branch A already succeeds deterministically. Otherwise take the correct guess and scale from the proof sketch above. If , no cluster is split. For nonempty , apply the proof of Lemma A.2 with replaced by . Averaging over the order family and the independent auxiliary radius then gives by the factor-3/2 slack built into (Table 2). Some enumerated order and midpoint radius therefore split at most large clusters, and Theorem 4.5's recovery argument applies to this partition.
Enumerating orders adds only a polynomial factor. Feasibility and the running-time bounds hold for every order and every input, so the resulting deterministic algorithm always halts with a feasible exact- partition in time.
Returning the cheaper of this partition and a deterministic -approximate solution [11], converted using Lemma 3.1, preserves exact recovery on stable inputs and gives a guarantee on every input, for any fixed .
5 Recognizing stability
Recognition asks whether an instance is -stable; specified-partition verification asks whether a given partition remains uniquely optimal under every allowed perturbation. We also consider metric perturbations, which must satisfy the triangle inequality. Centers may change.
Theorem 5.1. For every fixed rational , on rational finite metric inputs:
(i) Specified-partition verification is coNP-complete, both for arbitrary symmetric perturbations and for metric perturbations.
(ii) Recognition is coNP-complete for arbitrary symmetric perturbations and coNP-hard for metric perturbations.
In all cases, the complement of exact MSR threshold decision reduces to the stability problem by a polynomial-time many-one reduction. The reduction supplies the unique unperturbed optimum, which has exactly one nonsingleton cluster.
Recovery assumes stability; recognition tests it. The reduction supplies the unique unperturbed optimum: the source instance and a hub form one cluster, with dummy points as singletons. A competitor merges the dummies, isolates the hub, and partitions the source instance. Increasing the hub-to-source distances creates a tie exactly when the source has a sufficiently cheap solution.
Deterministic recovery removes recognition's outer existential choice of an optimal partition: it produces a candidate in polynomial time on every input, equal to the stable optimum whenever one exists. The input is therefore unstable exactly when this candidate has an instability certificate, polynomially checkable by Lemma C.3. This gives coNP membership for arbitrary symmetric perturbations. The same argument is unavailable for metric perturbations, where recovery remains open. Appendix C gives the proofs.
6 Open questions
Can the smaller net discussed in Section 4.3 reduce the running time to ? More broadly, can the running time be made , or can this be ruled out, for example by W[1]-hardness parameterized by under reductions that preserve the stability promise? Can the extra factor in the exponent from storing candidate families be avoided? Letting each vertex of a finer net record at most one candidate covering it would avoid families, but a large cluster may contain arbitrarily many such vertices. Their choices must agree, and they form a clique under our current interaction rule, giving unbounded treewidth. Recovery under stability against metric perturbations alone remains open. Finally, the different thresholds for MSR and MSD suggest studying which cluster costs allow a split that removes the cluster's perturbation increase while preserving its center.
Acknowledgments
This work was supported in part by NSF grant ECCS-2217023.
AI methodology
We used Claude Fable 5.1, Claude Opus 5.5, ChatGPT 6, and Gemini 4 Argon to assist with developing and refining the mathematical results and with writing the paper. The authors selected the problem, identified the unresolved regime , directed parts of the research strategy, and decided which results and arguments to retain. Claude Opus 5.5 proposed the central proof idea after identifying failures in lower-bound approaches that the authors had asked it to investigate. All original theorems and lemmas were either proposed by these tools or refined with their assistance. The tools materially influenced all sections, including the appendices. The authors primarily determined the presentation and exposition, with AI assistance in drafting and revising the text. The authors verified the correctness and originality of all content, including references, and take full responsibility for the content of the paper.
References
[1] Haris Angelidakis, Pranjal Awasthi, Avrim Blum, Vaggos Chatziafratis, and Chen Dan. Bilu-Linial stability, certified algorithms and the independent set problem. In 27th Annual European Symposium on Algorithms (ESA), volume 144 of LIPIcs, pages 7:1–7:16, 2019.
[2] Haris Angelidakis, Konstantin Makarychev, and Yury Makarychev. Algorithms for stable and perturbation-resilient problems. In 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 438–451, 2017.
[3] Pranjal Awasthi, Avrim Blum, and Or Sheffet. Center-based clustering under perturbation stability. Information Processing Letters, 112(1–2):49–54, 2012.
[4] Brenda S. Baker. Approximation algorithms for NP-complete problems on planar graphs. Journal of the ACM, 41(1):153–180, 1994.
[5] Maria-Florina Balcan, Nika Haghtalab, and Colin White. k-center clustering under perturbation resilience. In 43rd International Colloquium on Automata, Languages, and Programming (ICALP), volume 55 of LIPIcs, pages 68:1–68:14, 2016.
[6] Maria-Florina Balcan and Yingyu Liang. Clustering under perturbation resilience. SIAM Journal on Computing, 45(1):102–155, 2016.
[7] Sandip Banerjee, Yair Bartal, Lee-Ad Gottlieb, and Alon Hovav. Improved fixed-parameter bounds for min-sum-radii and diameters k-clustering and their fair variants. In Proceedings of the AAAI Conference on Artificial Intelligence, 39(15):15481–15488, 2025. Full version: arXiv:2501.17708.
[8] Shalev Ben-David and Lev Reyzin. Data stability in clustering: A closer look. Theoretical Computer Science, 558:51–61, 2014.
[9] Yonatan Bilu, Amit Daniely, Nati Linial, and Michael Saks. On the practically interesting instances of MAXCUT. In 30th International Symposium on Theoretical Aspects of Computer Science (STACS), volume 20 of LIPIcs, pages 526–537, 2013.
[10] Yonatan Bilu and Nathan Linial. Are stable instances easy? Combinatorics, Probability and Computing, 21(5):643–660, 2012.
[11] Moritz Buchem, Katja Ettmayr, Hugo K. K. Rosado, and Andreas Wiese. A -approximation algorithm for the minimum sum of radii problem with outliers and extensions for generalized lower bounds. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1738–1765, 2024.
[12] Rutger Campbell, Marc Distel, J. Pascal Gollin, Daniel J. Harvey, Kevin Hendrey, Robert Hickingbotham, Bojan Mohar, and David R. Wood. Graphs of linear growth have bounded treewidth. The Electronic Journal of Combinatorics, 30(3):P3.1, 2023.
[13] Lukas Drexler, Jan Höckendorff, Joshua Könen, and Kevin Schewior. Clustering graphs of bounded treewidth to minimize the sum of radius-dependent costs. arXiv:2310.02130, 2023.
[14] Wenceslas Fernandez de la Vega and Claire Kenyon. A randomized approximation scheme for metric MAX-CUT. Journal of Computer and System Sciences, 63(4):531–541, 2001.
[15] Wenceslas Fernandez de la Vega, Marek Karpinski, Claire Kenyon, and Yuval Rabani. Approximation schemes for clustering problems. In 35th Annual ACM Symposium on Theory of Computing (STOC), pages 50–58, 2003.
[16] Zachary Friggstad, Kamyar Khodamoradi, and Mohammad R. Salavatipour. Exact algorithms and lower bounds for stable instances of Euclidean k-means. SIAM Journal on Computing, 54(6):1456–1488, 2025. Preliminary version in SODA 2019.
[17] Zachary Friggstad, Mohsen Rezapour, and Mohammad R. Salavatipour. Local search yields a PTAS for k-means in doubling metrics. SIAM Journal on Computing, 48(2):452–480, 2019.
[18] Xing Gao and Lev Reyzin. Non-center-based clustering under Bilu–Linial stability. In IEEE International Symposium on Information Theory (ISIT), pages 1–5, 2025.
[19] Matt Gibson, Gaurav Kanade, Erik Krohn, Imran A. Pirwani, and Kasturi Varadarajan. On metric clustering to minimize the sum of radii. Algorithmica, 57(3):484–498, 2010.
[20] Matt Gibson, Gaurav Kanade, Erik Krohn, Imran A. Pirwani, and Kasturi Varadarajan. On clustering to minimize the sum of radii. SIAM Journal on Computing, 41(1):47–60, 2012.
[21] Fabrizio Grandoni, Anupam Gupta, and Jatin Yadav. FPT approximation schemes for min-sum radii and min-sum diameters. In 67th IEEE Symposium on Foundations of Computer Science (FOCS), 2026. To appear. Full version: arXiv:2605.10895.
[22] Piotr Indyk. A small approximately min-wise independent family of hash functions. Journal of Algorithms, 38(1):84–90, 2001.
[23] Tuukka Korhonen. A single-exponential time 2-approximation algorithm for treewidth. In 62nd IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 184–192, 2021.
[24] Pankaj Kumar, Haiko Müller, Sebastian Ordyniak, and Melanie Schmidt. On the parameterized complexity of min-sum-radii. In 20th Scandinavian Symposium on Algorithm Theory (SWAT), volume 370 of LIPIcs, pages 26:1–26:18, 2026.
A Supporting details for recovery
A.1 Elementary structural facts
Proof of Lemma 3.1. Keep only the largest ball at each repeated center. Assign each remaining center to its own cluster and every other point to a ball containing it. Each cluster has radius at most its ball's radius. While there are fewer than clusters, choose a nonsingleton cluster, retain an optimal center of that current cluster, and split off another point as a singleton. Such a cluster exists because , and retaining its center prevents any cost increase.
Proof of Lemma 3.2. For a nonempty family in the sum, replace its center-radius balls by and retain those of the other clusters. The resulting balls cover , regardless of any overlaps, at total cost
Convert this cover by Lemma 3.1 and apply optimality. The empty family satisfies the bound trivially.
Proof of Lemma 3.3. Suppose for . Then . Multiply every distance by , except the pairs with , which remain unchanged. Every intra-cluster distance of is scaled, so . We construct a different exact- partition of no greater cost.
If , choose and replace by and . Centered at , the nonsingleton set has radius at most .
If has an optimal center other than , replace by and . Keeping and that other center gives radii at most and .
In the remaining case, is the unique optimal center of and . Replace by and . For ,
Thus the replacement costs at most , saving at least compared with the two original clusters under . All three cases contradict uniqueness under .
A.2 Parameters and enumeration bounds
The exact bounds used by the algorithm are listed below. Fix . This choice is a power of two, so the doubling list of partition scales contains a value in whenever , as shown in Lemma A.4; the scale index therefore starts at 9. The lower bound in Lemma A.1 uses . Set : the factors come from the radius interval of length and the bound in Lemma A.2. Use the abbreviations
Table 2: Bounds used in the search and local computation.
| Parameter | Value | Role |
|---|---|---|
| Clusters enumerated in Branch A | ||
| Clusters enumerated in Branch B | ||
| Selected candidates at each vertex | ||
| Treewidth threshold |
A.3 Partition construction
The routine RandomPartitions() takes . Keep every component of of diameter at most as one region. Call each remaining component wide. In each wide component , greedily choose a maximal strictly -separated set , using input order. Strict separation means that distinct points of have distance greater than . Put
If , return the single partition consisting of the components of .
The final adjustment ensures that small clusters move whole: at the correct guess, they are global -components of radius below . For each global -component with , fix a representative by input order. For an order of and , define Partition() as follows. In each wide component , process in the restriction of . Assign to each center the unassigned points of within distance , producing the initial parts. Give the components kept whole their own initial labels. Then simultaneously give every point of each component with the initial label of its representative . Discard empty labels. The sets and representatives are fixed before choosing or .
Form the breakpoints
Sort the distinct values as and let
There are at most radii. Choose a uniformly random permutation of and enumerate
using the same sampled order for every radius. Repeated partitions may be retained. All choices other than are deterministic.
The next lemma combines a lower bound from connectivity with an upper bound from local density. Their ratio depends only on ; this is what makes the harmonic factor in the subsequent splitting bound independent of .
Lemma A.1. On a stable input with and , for every wide component and ,
Proof. Since , some satisfies . Follow a -path from x to y; distance from x changes by at most R per edge. For
we have . Let be the first path vertex at distance at least from . Its distance is at most . Maximality supplies a point within of , so
These intervals are disjoint, so the are distinct. Their upper endpoints satisfy because and . Their number is .
For the upper bound, different points of belong to different optimal clusters. Applying Lemma 3.9 at gives
The last inequality uses and .
For a large cluster C of radius r, define
If c is an optimal center of C, then
since every added point is within 2b of and . If lies in one initial part, every representative affecting has that label, so the adjustment leaves whole.
For the analysis, let be the uniform random permutation chosen by the routine and independently choose uniformly from . This auxiliary random radius is used only in the proof; the algorithm enumerates the midpoint radii in .
Lemma A.2. Suppose , , and the input is -stable. If and , then every large cluster of radius satisfies
Hence, if Z is the number of split large clusters,
Proof. A cluster in a component kept whole cannot split. Otherwise, let be its component, , , and an optimal center of . Every center in covers for every allowed , since
Put . Every center that can meet at an allowed radius lies within of . Let count the centers in outside the inner set. Lemma A.1 gives
Order the other relevant centers by nondecreasing , with fixed tie-breaking. If is split by the initial partition, the first center whose ball meets it cannot cover it: no point of has yet been assigned, so a first ball covering would place it in one part. That center is some for which
-
; smaller radii miss , and radii at least cover it by the triangle inequality;
-
precedes the inner centers and , all of which meet when .
The two events depend on independent choices. The first has probability at most , since the radius interval has length L/16. In a uniform random order, each of these centers is equally likely to come first, so the second event has probability . Thus
where and . If the initial partition preserves , the adjustment preserves . Summing over large clusters proves the expectation bound; no independence between their splitting events is needed.
Proof of Proposition 4.1. We first verify coverage, the diameter bound, and preservation of small clusters. For any order and radius , maximality of places every point of within of a center. Thus the initial parts cover and have diameter at most . Since , each component moved by the routine lies in one -component. Every moved point is within of its representative in the receiving initial part. The final regions from wide components therefore have diameter less than
Components kept whole have diameter at most . For , Lemma 3.8 implies that no small optimal cluster is split. Every optimal cluster is connected through its center in , so each -component is a union of whole optimal clusters.
The radius list has entries, and each partition takes polynomial time to compute. If , each -component is kept whole and is a union of optimal clusters at a correct guess, so .
Suppose and . Since , we have . Lemma A.2 gives
Here for . Markov's inequality therefore gives .
For a fixed order, every test involving has the form , so the partition is constant on every open interval . The breakpoints have probability zero. Whenever an order and a radius outside the breakpoints give , the midpoint of that interval gives the same partition. Thus the probability, over alone, that the enumerated family contains such a partition is at least .
A.4 Local solver implementation
The routine SolveRegion() returns a table indexed by the number of clusters, or rejects. For nonempty , retain the candidates in (1) contained in , with their original representations and actual radii as costs. All ball tests use the full set and the global parameters and .
A global -component is optional in if and . A component only partially contained in is not optional. The routine selects disjoint candidates. Each optional component must be fully covered or fully uncovered; an uncovered component becomes one cluster. Every point outside the optional components must be covered.
Greedily choose a maximal strictly -separated set , and form a graph on with edges between points at distance at most . Assign each candidate to the vertex nearest its specified center, using fixed tie-breaking. The variable at each vertex records a disjoint family of at most candidates assigned to , including the empty family. Thus each variable has possible values.
Impose the following constraints and contributions:
-
Every point is covered at most once, and every nonoptional point is covered exactly once.
-
All points of an optional component have the same coverage indicator. If it is zero, contributes one cluster and cost ; otherwise it contributes neither.
-
Each vertex contributes the number of selected candidates assigned to it and the sum of their actual radii.
Appendix A.6 defines these contributions on every assignment, including assignments violating the constraints.
Remark (optional components). An optional component need not be an optimal small cluster. At the correct guess it can instead meet several large optimal clusters. Its points may then be covered by different candidates: the constraint requires equal coverage indicators, not a common covering candidate. Selecting all true large clusters covers every point of such a component exactly once.
We use the following algorithm to obtain a tree decomposition.
Theorem A.3 (Korhonen [23, Theorem I.1]). Given a graph and an integer , a deterministic algorithm runs in time and either returns a tree decomposition of width at most or correctly reports tw() > w.
Apply this algorithm to with , rejecting only if it reports tw() > . On a returned decomposition, run the dynamic program in Appendix A.6. Its states record the candidate choices at the vertices in a bag and a cluster count. Each constraint is checked once, and each contribution is counted once. For every , return the minimum cost DP and a corresponding partition, or if no assignment with count is available.
Proof of Proposition 4.2. The empty region is immediate, so assume . We first show that the optimum is a permitted assignment, then verify that the constraints can be enforced by the dynamic program.
On a stable input at , with a union of optimal clusters, Lemmas 3.3 and 3.8 show that the restricted optimum consists of candidates and uncovered optional components. For every true large cluster , select exactly one representation , choosing an optimal center by input order. Every point of is within of , so each such cluster assigned to lies in . Lemma 3.2 bounds their total radius by , even if lies outside their union. Hence at most are assigned to , and the limit of selected candidates per vertex retains the optimum.
On every input, each constraint involves a clique of . The specified center of a retained candidate belongs to and hence to , so its assigned vertex is within of . Since , a candidate containing is assigned to a vertex within of . The vertices involved in a point constraint are therefore pairwise within . For an optional component , , so its constraint involves vertices pairwise closer than . Each vertex's own cost and cluster count depend only on its variable.
A tree decomposition is a tree of bags such that every graph vertex appears, the endpoints of each edge appear together in some bag, and the bags containing any vertex form a connected subtree. The width is the largest bag size minus one. Every clique lies in a bag, so each constraint and contribution can be assigned to a containing bag. The decomposition returned by Theorem A.3 has width at most . A bag therefore has variables, each with values. Combining tables over cluster counts adds only a polynomial factor, so the recurrence in Appendix A.6 runs in time. For , this also absorbs the decomposition algorithm's factor. These bounds hold on every input, and the constraints ensure that every finite entry represents a partition of with its actual cost.
Finally, on a stable input with and aligned of diameter at most , Lemma 4.4 prevents rejection. The permitted assignment above gives table cost at most cost() at the true cluster count. Feasibility and Lemma 3.4 give equality and the same unique partition.
A.5 Full correctness and bit-complexity analysis
Lemma A.4. If , then . Otherwise the list
contains a value satisfying and . For this value, a call to RandomPartitions() returns a family containing a partition with at most split large clusters with probability at least 1/3.
Proof. If , then , so . Otherwise choose the largest value , with integer , that does not exceed . Since , it satisfies . Also , because . We have , so this value occurs in the stated list. In particular, implies , ensuring that the index range is nonempty. The probability bound now follows from Proposition 4.1.
Proof of Theorem 4.5. The case is immediate, so suppose . The initialized answer is feasible, and every proposal in Branch A is checked explicitly. In Branch B, the guessed candidates are disjoint, the residual regions partition their complement, and every finite local table entry gives a partition of its region. Equation (2) enforces exactly clusters. Thus every output is feasible, regardless of the sampled permutations.
Now suppose the input is stable and consider the guess . If , Lemma A.4 gives at most large clusters. Each has a candidate representation with an optimal center, by Lemma 3.3, so Branch A enumerates their family. The remaining small clusters are global -components by Lemma 3.8. Deleting the large clusters does not change these components. This iteration therefore proposes O, for every choice of the random permutations.
If , fix the value supplied by Lemma A.4. With probability at least , the call at returns a family containing a partition that splits at most large clusters. Condition on this event. Branch B enumerates this partition and the family of its split large clusters. Every remaining optimal cluster lies in a single region: no small cluster is split, by Proposition 4.1, and every split large cluster has been removed. Each residual set is a union of optimal clusters and has diameter at most . By Proposition 4.2, its local table contains the restricted optimum at the true count. These counts together with sum to . Combining the tables therefore gives a feasible partition of cost at most cost(), which must be by uniqueness. Since the algorithm retains only cheaper feasible partitions, this event guarantees that its final output is . Only this one call needs to succeed.
There are at most guesses, values of per guess, and candidate representations. Each call to RandomPartitions samples one permutation and returns partitions. A uniform permutation of at most elements can be generated with uniform integer choices. Branch A enumerates families. Branch B enumerates families per partition and solves at most local problems per family. Each local problem takes time by Proposition 4.2. Combining tables and checking feasibility add polynomial factors. The total is therefore
These bounds hold on arbitrary inputs and for every sampled permutation.
For independent runs, the probability that none returns is at most . If any run returns , the cheapest output is , since every output is feasible. This proves the amplified guarantee and its running-time bound.
Bit complexity. For rational input and a fixed rational parameter , all thresholds and radius midpoints have polynomial binary length: with , and . Each cluster radius is an input distance, and each stored cost is a sum of at most such distances. Thus every arithmetic operation and comparison takes poly bit time. The order family in Appendix B uses integers of bits, so the deterministic algorithm has the same polynomial bit overhead. Rejection sampling implements a uniform integer choice from at most options using expected fair bits, giving the randomized algorithm's expected bit bound.
Recovery does not require to be rational. For each fixed real , choose a fixed rational with
Every -stable instance is also -stable. Using as the algorithm's parameter therefore gives the same recovery guarantee, with running time and the bit bounds above. For , the fixed rational parameter gives polynomial bit time.
A.6 Dynamic programming recurrence
We give the recurrence for the dynamic program used by SolveRegion in Section A.4.
Let be the set of permitted families of candidates assigned to in Section A.4, including the empty family. For a choice of one family at every vertex, let count the selected candidates containing . Require everywhere and outside optional components. For each optional component , require all , , to be equal. An uncovered contributes one cluster and cost ; a covered contributes neither. Each selected candidate contributes one cluster and its actual radius. Thus every feasible assignment specifies a partition with these costs and counts.
Define each contribution for every choice of the variables it depends on, including choices that violate the constraints: an optional contributes one cluster if for every , and zero otherwise. Its cost is times this count. These definitions agree with the preceding contributions on feasible assignments and allow evaluation before constraints assigned to other bags have been checked.
The constraint for a point depends on the variables at vertices to which candidates containing are assigned. The constraint for an optional component depends on the variables at all such vertices for . Each of these vertex sets forms a clique in by Section A.4. Each vertex's cost and cluster count depend only on its own variable. Root the tree decomposition and assign every constraint and every contribution to a bag containing all vertices whose variables it depends on, exactly once; assign those involving no variables to the root bag.
For a node with bag , an assignment , and , let be the minimum cost of assignments in the subtree rooted at that agree with on , satisfy all constraints assigned in that subtree, and have exactly clusters counted there. Infeasible states have value . Let and be the cost and count assigned to , evaluated after its constraints pass. For a child of , put and define
For an assignment passing the constraints at , the recurrence is
At a leaf, the value is precisely when . At the root , set
The running-intersection property makes agreement on adjacent bags equivalent to a consistent choice at every vertex. Every constraint and contribution is assigned once, so the recurrence counts each cluster and its cost once. Store minimizing choices and backtrack to recover the selected candidates and uncovered optional components. Their point constraints give disjoint coverage of , proving that every finite entry stores a feasible partition. Counts are nonnegative, so discarding partial counts above cannot exclude a feasible partition.
Each variable has values, and each bag has at most vertices, since the returned decomposition has width at most . The count index has at most values. Computing the tables and combining cluster counts add polynomial factors. The running time is therefore , including the polynomial number of constraints.
B Derandomization
We construct the deterministic family of orders used in the proof of Theorem 1.1. The construction starts from the following theorem of Indyk.
Theorem B.1 (Indyk [22, Theorem 1.1 of the author version]). There are absolute constants and an integer with the following property. For every positive integer , let be an -wise independent uniform hash. For every nonempty set of size and ,
We turn these hash functions into orders, accounting for ties explicitly.
Theorem B.2 (Permutation family). For every nonempty finite ordered set , one can deterministically enumerate, in time, a nonempty multiset of permutations of such that every nonempty and satisfy
The probability is uniform over the multiset, counting repetitions.
Proof. Fix from Theorem B.1; these constants do not depend on the input. Put . Choose a prime satisfying
and label by distinct elements of . Enumerate every polynomial of degree at most over . For each polynomial, sort the elements of by their values, interpreted as integers in , breaking ties by the given order on . Retain the resulting orders with multiplicity to obtain .
Uniform coefficients give -wise independent uniform hash values on distinct field elements. Fix of size and . If is first in the resulting order, either its hash is strictly smallest or it shares a hash value with another point of . Pairwise independence and a union bound give the latter event probability at most
Since , Indyk's theorem bounds the former by . Their sum is , as required.
There are coefficient tuples. A suitable prime can be found by deterministic search in polynomial time, and evaluating the constant-degree polynomials and sorting also take polynomial time. Thus the multiset is nonempty and can be enumerated within the claimed time bound.
Theorem B.2 supplies everything needed from this appendix in the proof of Theorem 1.1.
C Proofs for recognizing stability
We prove Theorem 5.1, with rational input distances and a fixed rational . Perturbations may still be real-valued.
Let denote the minimum cost of an exact- partition of a nonempty finite metric . Given and , deciding whether is NP-hard even for
For absolute constants , the theorem states: “for any and any log -wise independent family of functions is -min-wise independent.” The source uses for both the domain and range; its is our . Its preceding definition concerns and , with strict-minimum probability . We set , , , and .
integer distances of polynomial binary length [19, Section 3 of the author version]. The ball-cover formulation permits at most balls centered at input points, including radius-zero balls. Lemma 3.1 and the converse map from clusters to centered balls give equality of the two optimum values. Splitting off singletons while retaining a center in each remaining cluster also gives
The construction has a known optimum of cost , while its cheapest alternative has cost , with and defined below. A metric perturbation raises the known optimum to that alternative's cost without changing the alternative.
Fix and write
For a singleton source, D = 0. These choices ensure
Adjoin a hub to , put , and add a disjoint set of dummy points. On retain the distances in and set
The target cluster count is , and its supplied partition is
The instance has points. Its distances have polynomial binary length, and the construction takes polynomial time. It is metric: hub/source triangles have sides with ; dummy triangles are equilateral; and triangles meeting X and Z have two sides and a third side less than .
Lemma C.1. Let . Then , , and
In particular, is the unique original optimum.
Proof. Refining a one-cluster solution gives . The hub serves at radius , and every source point sees the hub at distance , so .
Consider a different exact-K partition Q. If a cluster meets both X and Z, each possible center sees a point in the other set at distance . Its cost is therefore at least .
Otherwise, let and count its clusters in and . We have and . If , then and . Hence and , so at least one dummy cluster is nonsingleton and costs . If shares its cluster with a source point, that cluster costs , giving a total of at least . If is a singleton, has clusters and costs at least . The total is again at least .
Equality is attained by an optimal k-partition of , the singleton , and the single cluster . This uses exactly clusters. Finally, by (3), proving uniqueness.
Proposition C.2. For the constructed instance, put
Under either perturbation convention, is -stable exactly when . A metric perturbation creates a tie at .
Proof. Under any -perturbation, the original hub serves at radius at most , so . Every competitor has perturbed cost at least its original cost and hence at least , by Lemma C.1. Thus remains uniquely optimal whenever .
At , change only the hub-to-source distances from to . Every point of now has eccentricity , since the unchanged source distances are at most . The partition consisting of an optimal -partition of , , and uses none of the changed distances and retains cost . It therefore ties .
The perturbation remains metric. Hub/source triangles have two equal hub sides and a source side at most . Triangles spanning and retain two sides and a third side less than , because . All other triangles are unchanged. This same witness is allowed at every .
It follows that
Since is the unique original optimum, recognition and verification have the same answer. This proves the hardness claims in Theorem 5.1. Computing also recovers the source optimum by . The reduction is exact; need not be bounded away from zero.
For membership, we use certificates of instability.
Lemma C.3. For rational input distances and rational , instability of a specified partition under either perturbation convention has a rational witness of polynomial binary length and can be verified in polynomial time.
Proof. Suppose that a partition fails to be uniquely optimal under an allowed, possibly real-valued perturbation. Choose a distinct competing partition and an optimal center for each under that perturbation. For every center in each cluster , choose attaining its eccentricity.
Use symmetric distance variables , radius lower bounds for the candidate clusters, and radius upper bounds for the competitor clusters. With , impose
For metric perturbations, additionally impose for every triple.
The original witness makes this system feasible by using its actual distances and cluster radii. Conversely, every feasible point satisfies
The first inequality holds because every possible center of is at distance at least from its chosen point ; the last holds because serves all of at distance at most .
This bounded polyhedron has polynomially many variables and constraints, with rational coefficients of polynomial binary length. If it is nonempty, it has a vertex whose coordinates also have polynomial binary length: after clearing denominators, Cramer’s rule and the determinant bound for an integer matrix with entries of absolute value at most give the required encoding bound. Thus any real perturbation witnessing instability can be replaced by a rational one of polynomial binary length. The certificate consists of this perturbation and the distinct competing partition . Checking that is a distinct feasible partition, checking the perturbation bounds (and triangle inequalities, when required), and comparing the two partition costs takes polynomial time.
For a singleton candidate cluster, forces . The case of no distinct feasible partition has no instability witness.
Lemma C.3 puts specified-partition verification in coNP under either convention. Together with the reduction, this proves part (i) of Theorem 5.1.
The recovery algorithm removes the need to supply a candidate partition.
Proposition C.4. For rational input and every fixed rational , recognizing stability under arbitrary symmetric perturbations belongs to coNP.
Proof. Run the deterministic recovery algorithm of Theorem 1.1, constructed in its proof in Section 4.4, with fixed tie-breaking, to obtain a feasible candidate partition in polynomial bit time. An input is unstable if and only if this candidate admits an instability certificate: stable inputs give their stable optimum, whereas on unstable inputs every candidate fails verification. Apply Lemma C.3 to this candidate to obtain a polynomially checkable certificate, proving coNP membership.
This proves part (ii) of Theorem 5.1. The membership argument uses recovery under arbitrary symmetric perturbations and does not apply to instances stable only under metric perturbations. For metric perturbations, recognition is shown only to be coNP-hard.
D A consequence for power costs
For fixed , consider . Stability refers to this objective on exact- partitions with in-cluster centers, under arbitrary symmetric perturbations. The distance transformation appears in Banerjee et al. [7, Section 6.1.3 of the full version]; its effect on stability gives a direct consequence of our main theorem.
Corollary D.1 (Power costs). Fix and . For every finite metric , is a metric, and
Under these equivalent stability conditions, the common unique optimal partition can be recovered deterministically in time, where . On every finite metric input with , the algorithm halts and returns a feasible exact- partition.
Proof. The inequality for shows that satisfies the triangle inequality. Since is strictly increasing, finite minima and maxima commute with it, giving for every symmetric perturbation . Raising each distance to the power gives a bijection between the perturbations and those satisfying ; the inverse is exponentiation by . Thus partition costs agree under corresponding perturbations, proving the stability equivalence. Compute and apply Theorem 1.1 with stability factor .
The running time counts exact arithmetic and power evaluations. The transformed distances may be irrational even for rational input, so no bit-complexity bound is asserted here.