Clustering in Varying Metrics
Abstract
We introduce the aggregated clustering problem, where one is given instances of a center-based clustering task over the same points, but under different metrics. The goal is to open centers to minimize an aggregate of the clustering costs – e.g., the average or maximum – where the cost is measured via -center/median/means objectives. More generally, we minimize a norm over the cost values. We show that for , the problem is inapproximable to any finite factor in polynomial time. For , we give constant-factor approximations. We also show W[2]-hardness when parameterized by , but obtain -time 3-approximations when parameterized by both and .
When the metrics have structure, we obtain efficient parameterized approximation schemes (EPAS). If all metrics have bounded -scatter dimension, we achieve a -approximation in time. If the metrics are induced by edge weights on a common graph of bounded treewidth , and is the sum function, we get an EPAS in time. Conversely, unless (randomized) ETH is false, any finite factor approximation is impossible if parametrized by only , even when the treewidth is .
Keywords and phrases:
Clustering, approximation algorithms, LP rounding, parameterized and exact algorithms, dynamic programming, fixed parameter tractability, hardness of approximationFunding:
Deeparnab Chakrabarty: Work partially funded by NSF grants CCF-2041920 and CCF-2402571.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Facility location and clustering ; Theory of computation Fixed parameter tractabilityEditors:
C. Aiswarya, Ruta Mehta, and Subhajit RoySeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Clustering problems such as the -supplier or the -median problem are classic discrete optimization problems which have formed the bedrock of many problems in operations research. In its simplest form, the objective is to “open” locations in a metric space such that some function (eg, max or sum) of the distances of clients to the nearest open facility is minimized. Such problems have been extensively studied over the past 50 years [39, 53, 24, 41, 23, 7, 25, 14, 49, 57, 19, 43, 18, 50, 52, 20, 26, 33, 4, 17], and we have a very good understanding on the approximability of many of these problems.
In this paper, we consider clustering problems when the distance function underlying the metric space can change over time. To give a toy example, imagine that the clients are households in a New England town, and the distances are travel times over the road network in the town. On one hand, travel times may be quite different in January and June given the weather differences over the months. On the other hand, one can’t hope to open different locations in different seasons. Our decision ought to take into account the different costs over time, for example by selecting a set of facilities that minimizes the average cost over the year. Although this sounds a natural question, to our knowledge what happens to the complexity of clustering with changing metrics hasn’t been studied so far.111One may be tempted to simply perform clustering on a single metric space defined by average distances over all months. However, this does not work: the cost of a client at each timestep is computed by take a minimum over a set of facilities, and this minimum is not preserved when we take an average. Formally, we study the following problem.
Definition 1 (Aggregate Clustering Problems).
We are given , a finite set of points where is the set of clients and is a set of facilities222 and need not be disjoint, and one can imagine the case of as a special but instructive case.. We are given distance functions over which are symmetric and satisfy triangle-inequality. We are given a parameter . Finally, we are given an aggregator function . The goal is to “open” a subset of facilities that minimize a certain objective function (depending on the problem variant). The objective functions are:
-
, where , in the -aggregate -supplier problem.333We use the notation to mean .
-
, where , in the -aggregate -median problem.
-
, where , in the -aggregate -clustering problem.
When it is clear from context, we denote the objective function as .
The above problem also can be thought of as a stochastic/robust version of clustering under uncertainty where the uncertainty is over the distances. Note that when is the sum-function, we wish to find a solution which minimizes the average -supplier/-median cost of the returned solution , where the average is over the “scenarios” (we are assuming the full-information setting); when is the max-function, we get the robust optimization setting. In the literature [5, 52, 26], stochastic/robust clustering has been studied when the metric is fixed but the uncertainty is over the client sets. We can consider a generalized version of aggregate clustering, which models client demands changing over time.
Definition 2 (Generalized Aggregate Clustering).
Apart from the distances, we have weight functions . In the objective functions, we modify s by multiplying ’s with . More precisely, and . In particular, if , then this models having different client sets at different times.
All our upper bounds apply for generalized aggregate clustering, and all our lower bounds hold even for the vanilla version of aggregate clustering. In fact, in Observation 27 we present a weak equivalence between the two problems, by showing that any algorithm for vanilla aggregate clustering can solve generalized aggregate clustering with weights, i.e. aggregate clustering where the client set is allowed to change over time.
1.1 Our Findings
General Metrics.
In its full generality, unfortunately, the aggregrate clustering problem becomes very hard when the number of scenarios becomes or larger. In Theorem 3 we show that it is NP-hard to distinguish between zero and non-zero solutions when . To complement this result, we show (in Theorems 7 and 16) that when , both the (generalized) -aggregate -median and -supplier problems have polynomial time -approximations when is any norm. In fact, for -supplier, we match the optimal -approximation that is known at [39, 53]. Both the above results, at a very high level, follow from the fact that bipartite matching (or rather, partition matroid intersection) is tractable, while 3D-matching is NP-hard.
Given the above hardness for , we attempt to bypass it in two ways: (i) investigating fixed-parameter tractable approximation algorithms, and (ii) imposing additional structure over the metrics in various scenarios.
Constant-factor FPT approximation algorithms.
The hardness for clearly shows one can’t expect -time approximation algorithms. Moreover, we show (in Theorem 5) that it is also hard to obtain -time approximation algorithms: we encode the -hitting set problem as an instance of aggregate clustering, and our lower bound follows from the hardness of -hitting set [32, Theorem 13.12]. On the other hand, if we allow and to be both fixed parameters, then (in Theorem 19) we obtain an -time -approximation. The high level idea for this is as follows: Suppose we have partitions of a universe , and we must decide if there is a -sized subset that is a simultaneous hitting set for all partitions. In -time, we can guess for each and the part in the th partition that the th hitting element hits. Such an idea is the core of many FPT approximation algorithms for clustering [1, 12, 38].
Approximation schemes in structured metrics.
To impose structure on the metric, we note that any finite metric is a shortest path metric on an undirected base graph with weights on the edges. Note that our restriction of having the same graph across scenarios is without loss of generality if we allow a complete graph. Furthermore, in many applications, such as the road-network application mentioned in the early paragraphs of the introduction, this indeed is the case where the “weights” change over the seasons but the underlying network remains the same. Can one obtain better algorithmic results exploiting the structure of the underlying undirected base graph ?
Unfortunately, our hardness results apply even for very simple base graphs . In particular, our reduction from hitting set (Theorem 5, which rules out any finite factor approximation algorithms in time) can be carried out even when is a star. Moreover, our reduction from 3D matching (Theorem 3, which rules out any -time finite factor approximations) can be carried out even when is a grid graph (see Theorem 4).
Nevertheless, we bypass this hardness by designing approximation algorithms in time (ie, EPASes in parameters and ) for a broad class of structured input metrics, which includes (for example) the case when is a planar graph. More precisely, we design approximation algorithms whenever input metric has bounded scatter dimension. This concept was recently introduced by Abbasi et al. [1], along with an algorithm demonstrating that metrics of bounded scatter dimension admit time -approximation algorithms for many clustering problems. We generalize their ideas to obtain an EPAS for the (generalized) aggregate -clustering problem. Bounded scatter dimension captures a rich class of metrics, including doubling metrics, shortest-path metrics on planar or minor-free graphs [13], and metrics of bounded highway dimension444We are not aware of a published proof that highway dimension has bounded scatter dimension, but the claim can be found at timestamp 0:52 in the recorded FOCS 2023 talk on [1] (see link https://focs.computer.org/2023/schedule/) and also in [12]. – this last class, which was introduced to model transportation networks [3, 2], may be of particular interest in light of our road-network application from earlier. We emphasize that our lower bounds on the star and grid apply to metrics of bounded scatter dimension, so our FPT approximation is essentially the best one could hope to achieve (up to the approximation) in this setting.
Additionally, we consider the case when is a tree, or more generally a bounded-treewidth graph. As bounded-treewidth graphs have bounded scatter dimension, our -time algorithm from above applies. However, we can do even better – we obtain a -approximation for the sum-aggregate -clustering problem in time , by generalizing a folklore dynamic programming algorithm for -median on bounded-treewidth graphs [6, 42, 29]. Parameterizing by is necessary, because of our hardness result on the star. On the other hand, we can avoid parameterizing by because our hardness for the case only applies is a grid graph, which has high treewidth – recall that graphs of bounded treewidth are precisely those graphs which exclude a grid as a minor [54, 28]. In fact, we show in Theorem 4 that our hardness rules out -time algorithms for any graph that has sufficiently large treewidth (specifically, ), whereas our upper bound in Theorem 24 achieves runtime so long as has treewidth (see Remark 25). Thus, our upper and lower bounds show that the treewidth of the base graph almost entirely captures the tractability of FPT() algorithms for the sum-aggregate555We expect that a DP could be designed for other -aggregator norms, but in this extended abstract we only consider sum. clustering problem (up to some approximation factor, and up to some gap in the treewidth between our upper and lower bounds).
Open Directions
We end this section mentioning some open directions for future study. If one observes the metrics we use to prove our hardness results, we notice that they “change a lot” as one moves from to . Can one obtain positive algorithmic results if this change is bounded? Concretely, assume is the shortest path metric on and is the same on . What if we forced ? Again taking the road-network example, these could lead to certain road-closures or road-building, but in a single period perhaps not too many edges are added or deleted. We do not know any lower bound for this version, nor do we know how to design algorithms. Structurally, this seems to require an understanding of how shortest paths change with insertion/deletion of edges which may be of independent interest.
Another interesting, but slightly less concrete, direction is to explore online algorithms where an algorithm is allowed to change the centers but the distance metric is revealed only after the algorithms decision is made. Can one design “low-regret” algorithms as in [59]? The sum-aggregate objective is in fact the benchmark with which regret is measured, and our results show that approximating this benchmark for general metrics is hard. With this in view, what would be a good definition of regret?
Coming back to aggregate clustering, a concrete open problem is the following. The aforementioned hardness when is a star actually has , but the case of is also interesting. Are there approximation or even exact algorithms for -aggregated -supplier/median problem when is a tree? We believe this is an interesting generalization of -median problem on trees and worthy of exploration.
1.2 Related Works
As noted earlier, approximation algorithms for clustering problems have a rich history and we don’t attempt to summarize this. Rather we mention the works most related to the “changing metric” viewpoint.
Deng, Li, and Rabani [33] consider the -clustering problems in a dynamic setting in which both clients and facilities may change over time (though the metric remains the same). The algorithm is allowed to change the open facilities over time, and the objective is to minimize the clustering costs and the distances that open facilities move over time. Their main results, at a high level, are in lockstep with our first set of results for aggregate clustering (on the tractability of vs scenarios); though our findings and theirs do not imply one another. Their setting has an ambient metric space and, over timesteps, there are client and facility sets for each timestep . The goal is to pick -sized solutions at each time step minimizing a certain objective function.
As mentioned earlier, our problem is related to stachastic/robust clustering problems which consider scenarios where client sets change but the algorithm needs to open the same set of centers to serve these. This question was studied by Anthony, Goyal, Gupta, and Nagarajan [5] who obtain a -approximation for the robust -median problem discussed earlier. They also show that stochastic -center (i.e. stochastic -supplier with ) is as hard to approximate as the densest--subgraph problem. Makarychev and Vakilian [52] obtain an -approximation to robust -clustering. Along with Chlamtáč, the same authors [26] subsequently generalize this approximation algorithm to clustering with cascaded norm objectives, i.e. objectives of the form . When , they obtain a near-optimal -approximation. When , they obtain an -approximation.
Another related line of work is dynamic algorithms for clustering where clients come and go, and the algorithm needs to update the solution fast and maintain -approximations. There has been a lot of work [47, 22, 31, 36, 8, 10, 46, 37, 11, 9] recently on these probelms. We point the readers to [11] (and references within) for dynamic -center, and [9] (and references within) for dynamic -median. It is curious to see if techniques from these can address the questions mentioned in the open-directions paragraph earlier.
2 Hardness of Approximation
Theorem 3 (Hardness of approximation when ).
For any homogeneous aggregator and any , there is no -time finite-factor approximation for -aggregate -clustering on finite metrics on -vertices unless . The result holds even for .
Proof.
We show that it is NP-hard to decide whether the optimum value is finite or infinite for any -aggregate -clustering problem. We reduce from the (perfect) 3D Matching problem where, recall, we are given a -partite hypergraph where any every hyperedge intersects every exactly once. The goal is to decide whether or not there exists a matching (pairwise disjoint subset) of hyperedges which spans all vertices. Equivalently, for all . Given such a 3D Matching instance , we construct an aggregate clustering instance on metrics, where the underlying graph is a complete graph with vertex set . The client set and . For each metric and each two distinct clients , we set the distance if , i.e. if they agree on their vertex in . Otherwise set . It is easy to see that each is in fact a metric since if share the same endpoint as do , then they must be the same endpoint and thus share that as well. It remains to show that the clustering instance admits -cost solutions iff the original instance admits a perfect 3D matching.
-
Suppose this clustering instance admits a -cost solution. Call this solution . Fix a and . Let be the set of hyperedges that contain . We know by construction that, , i.e. such that agree on their vertex in . But then this vertex must be itself. Thus , so .
Since , this means that for each , . So is a perfect 3D matching.
-
Suppose is a perfect 3D matching in the original instance. Fix and such that . We know that , so fix . Then , i.e. , and so . So for each and each , we have . Thus .
Using techniques from graph drawing literature, one can show that our reduction Theorem 3 holds even when the base graph is a grid graph. Furthermore, we can rule out -time algorithms for aggregate clustering whenever the base graph contains even a relatively small () grid minor, and consequently has relatively small treewidth; this follows from the fact that, under the randomized exponential time hypothesis, it is hard to obtain a -time algorithm for 3D matching [45, 44]. We defer the details to the full version [16].
Theorem 4.
Let be any -vertex graph with treewidth . (For example, one may simply take to be a grid graph.) For any homogenous aggregator and any , there is no -time finite-factor approximation for -aggregate -clustering problem when the base graph inducing the metrics is , unless the randomized exponential time hypothesis is false. This results holds even for .
Next, we give a different reduction to rule out that FPT algorithms parameterized by , even when the base graph is a star.
Theorem 5 (Hardness of approximation on stars in FPT time.).
For any homogenous aggregator and any , there is no -time finite-factor approximation algorithms for the -aggregate -clustering problem even when the base graph inducing the metrics is a star, unless W[2] = FPT.
Proof.
We reduce from -hitting set, which is W[2] hard when parameterized by [32]. Suppose we are given an instance of -hitting set defined by a universe of points, a set of subsets of , and an integer ; our task is to determine whether there are points in that hit all sets of . We construct an instance of aggregate clustering as follows. Let be a star graph with a root vertex connected to leaves . Let the facility set be , and let the client set (in every metric) be . We define distances functions, one for each set , as follows: in the -th metric, we set the weight of edge to be 0 if and otherwise.
It remains to show that the -aggregate -clustering problem has finite cost iff there is a hitting set of size .
-
First we show that, if there is a hitting set of size , then the . Indeed, for every , there exists some with and so . In particular, the -clustering cost paid by the client set in each metric is , and so the -aggregate cost is also 0 because is a norm.
-
Similarly, if there is a set of facilities such that , then we claim is a hitting set. Indeed, consider some . Since has finite cost, we know that and in particular there exists some with . By construction, hits .
Remark 6.
The above reduction additionally shows that designing bicriteria approximation algorithms for aggregate clustering remains hard, due to the hardness of approximation of hitting set [34] – there exists some such that it is NP-hard to distinguish between the case that there is a hitting set of size and the case that there is no hitting set of size .
3 Constant-factor approximations for scenarios
In this section we extend the vanilla -approximations for -supplier and -median for the case of scenarios; this contrasts with the inapproximability for (Theorem 3). For simplicity, we restrict our exposition when the aggregator function is just the sum, but we later point out in Remark 17 why it holds for any homogeneous aggregator such as a norm. In Remark 18 we explain how our algorithms generalize for -clustering.
At a high level, both the extensions from vanilla work because (a very simple) matroid intersection is polynomial time tractable, while even 3D-matching is NP-hard; the latter was the root of the hardness for aggregate clustering. We begin with the -supplier problem which explains the previous line, and then show how ideas from the “matroid-median” problems solves the aggregate -median problem for .
3.1 -approximation for Aggregate -Supplier
Let be the optimal set of -suppliers which minimizes , where recall . Let us denote as for . Note that this can be guessed in -time (one could make this poly-logarithmic in using “binary search” techniques) and so we assume we know and . We now describe an algorithm, very similar to the one in [39], which returns a subset of facilities with for . This implies a -approximation for the aggregate -supplier problem for the case for any homogeneous aggregator .
For , define . We run the Hochbaum-Shmoys [39] filtering algorithm on each metric with parameter . To briefly describe this: (i) initially all clients are “uncovered”, (ii) pick an arbitrary uncovered client and add it to a set of representatives, define to be ’s “children”, and mark and all its children as “covered”, and (iii) continue the above till all clients covered. The main observations, which are easy to check using triangle inequality and the fact that ’s were correct guesses, are the following for :
-
The collection of balls are pairwise disjoint.
-
For any , . The above two imply .
-
For every , .
We now construct a solution of size such that for any and any , we have ; that is, hits every ball in the above two collections. This can be solved using matroid intersection since there are only two collections of disjoint balls. Once we have such an , it is easy to see using triangle inequality that, for any , where was ’s representative in .
To give more details on how to find , for define the partition of formed by , where are all the facilities of not in any ball. We define the “budget” of each part to be – this is the number of facilities can “leave out” – and set the budget of to be . We say is independent in partition matroid if it picks at most budget from each part; we seek the set of the largest cardinality which is independent in both partition matroids. We return . By design, hits every for and . Since is a candidate which is in the intersection of the two partition matroids, we get .
In sum, we can find a solution such that for , and thus . This completes the proof of the following theorem.
Theorem 7.
When , there is a -time -approximation algorithm for -aggregate -supplier on vertices for any homogeneous aggregator .
3.2 -approximation for Aggregate -Median
To obtain an constant approximation for the -median problem one has to work a bit harder, but the underlying idea behind tractability is still the tractability of matroid intersection. More precisely, it is the integrality of a polytope defined by two laminar set systems. At a high level, such an issue arises when one studies the matroid median problem where there is only one metric but one has the extra constraint that the set of facilities opened must be an independent set of a certain matroid. One solves this problem by rounding a solution to an LP-relaxation where matroid intersection (or rather the integrality fact mentioned above) forms a core component with the given matroid being one matroid, and the other formed via “filtering” technique a la [55, 23]. In our case the situation is similar at such a high-level – the two “matroids” are formed by the filtering ideas for the scenarios – but the details do need working out, and we show this below. We use the framework set by Swamy [57] for the matroid-median problem, but other frameworks (such as the iterated rounding framework of [43]) could possibly lead to better approximation factors; in this work, we didn’t optimize the latter.
Linear Programming Relaxation
We begin by writing a linear programming relaxation for our problem. Recall that, in the standard linear programs for -median, matroid median, etc. [23, 48, 57, 33], variables of the form denote whether or not the client uses the facility , so that ’s share of the cost is . In an integral solution , each has a unique such that , and .
In our problem, we need two sets of such -variables, because given an integral solution , a client can use different facilities under different metrics; that is, there can be distinct s.t. and . So for each , we define variables denoting whether or not the client uses the facility under the metric . We also have variables which, like in the standard -median LP [23, 25], denote whether or not the facility is picked into our solution. This allows us to write linear constraints similar to the standard LP for -median. We use to refer to the fractional optimum of the linear program relaxation.
| minimize: | (LP) | ||||
| (LP1) | |||||
| (LP2) | |||||
| (LP3) | |||||
Given a solution of LP, we first make the following assumption which follows from facility splitting arguments due to Chudak and Shmoys [27] (see also [58])
Assumption 8.
, .
We now perform a filtering step inherent to almost all LP-rounding algorithms for -median. For our problem, as in the -supplier problem from previous section, we get two sets of “representatives” instead of one that -median rounding algorithms get.
Filtering.
For and any client , define , i.e. the cost paid by under metric . Our filtering algorithm begins with all clients in an uncovered set . We pick with the smallest , and call it a representative under , adding it to the set . Every uncovered client that is within distance of becomes a child of under , forming the set . All of is then considered covered. We repeat this until all clients are covered. So we get that is well-separated, i.e. any two distinct have . also induces a partition of . The following lemma is standard (see the full version [16] for a proof), and thereafter, we focus on and , and seek a constant-factor approximation on those clients only.
Lemma 9.
Consider and , such that ,
.
Then .
The rounding algorithms for many -median algorithms first round to a half-integral solution and then to integral. We follow the same route, and in particular, follow Swamy’s framework [57]. We begin with the following definitions for each ; as in the previous section, we use . An illustrative figure for these appears in Swamy’s work [57, Figure 1].
-
(breaking ties arbitrarily)
-
. Notice that, by construction of , (also follows from Fact 10).
-
, and .
We obtain the following a la [57] (see the full version [16] for a proof).
Fact 10.
For every , we have
-
-
-
Suppose , s.t. . Then .
Also note that by design the ’s (and therefore the ’s) are pairwise disjoint for a fixed when we consider . These play the role of the “partitions” as in the -supplier problem, and our tractability follows because we have only two ’s. Instead of finding the “largest cardinality independent set”, as we did for the -supplier problem, we instead find a point maximizing a suitable linear function. Towards this, we describe a “linear function” that acts as a proxy for ’s.
For fractional facility masses , , and , let . Then we have
The above definition is quite similar to Swamy’s definition which may be taken as the case, with one difference that we have the “ with 0”. When , one can assert but with different ’s, it may be that because in metric we need to open (fractionally) a lot of facilities. Nevertheless, even with the “max” function the following two lemmas similar to those in [57] hold. Their proofs are in the full version [16].
Lemma 11.
Consider s.t. , . Then ’s assignment cost under is at most . That is, for every , we can assign variables so that .
Lemma 12.
For each , and each , .
Rounding to Half-integral Solution.
We are now ready to describe the algorithm which is encapsulated in the following lemma.
Lemma 13.
There is a polynomial time algorithm that yields a half-integral solution of LP s.t. , .
Our goal now becomes to find a half-integral so that, for each , . If we are able to do so, then by Lemma 11 we would be done. To find such a half-intergral solution, we define the following polytope and linearization of ’s. The polytope has variables . The auxiliary variables serve to linearize the terms in the ’s, as the constraints in ensure that .
The following follows from the presence of only “two partitions” plus noting the ’s don’t bother much since they are identity.
Claim 14.
has half-integral extreme points.
Proof.
Consider the constraint matrix of . Since the constant terms in the constraints are half-integral, it suffices [40] to show that is totally unimodular (TU). Indeed, looks where we have the -matrix corresponding to the -variables, and the corresponding to the -variables. The dimension of is . The matrix is the incidence matrix of two laminar systems – in fact, it is two partitions coarsened by the universe. Such a system is TU [57]. A TU matrix padded with columns with at most one in them remains TU. Over , we can then consider the minimization of the following linearization of the ’s: : , and
The following claim encapsulates that we can find an extreme point of (any polytope) which is a -approximation to both ’s simultaneously in a sense made clear below. This allows us to get the desired (as we explain better in the proof of Lemma 13).
Claim 15.
Consider a polytope , linear functions , and a point . There is a polynomial time algorithm which returns an extreme point of such that for .
Proof.
By Carathéodory’s theorem [15, 56], we can write as a linear combination of at most extreme points of . More precisely, we can find, in polynomial time, a subset of extreme points such that and for some ’s which form a probability distribution . We claim that one of the is the desired point, and we can find which one by enumeration. To see why, observe that for , , and so by Markov, . So, by union bound implying which proves the above claim.
Proof of Lemma 13.
Given our initial solution of LP, set variables for each , . By Fact 10, this gives us . So by Claim 14 and Claim 15, we can obtain a half-integral such that , and . So by Lemma 11, for each we can construct ’s such that,
where the penultimate step follows from the constraints in . By our construction of the starting ’s, i.e. the constraints enforcing , . So we have, by Lemma 12, that the above can be upper bounded by .
Rounding to Integral solution.
We round to an integral solution, losing a constant factor, and this is very similar to the ideas in [23, 57]; here also we follow the latter’s framework. We sketch the main ideas here and defer the details to the full version [16].
The first step is another filtering step. For and , define and let ; note that . Now we define a subset of “super-representatives”: we pick with smallest and add it to removing every with from consideration. In the end, we have ’s pairwise disjoint for ’s and each shares a facility with a super-representative in .
Next, as in the rounding to the half-integral case, we define a particular linear function which works as a proxy for . To define this proxy, for every call the two facilities in primary and secondary in ascending order of distance (duplicating facilities if needed). For and , let be the super-representative which shares a facility with, and define
It’s instructive to think of all ’s as ; in that case is either the average of ’s distance to ’s facilities when ’s closest facility is shared with , or it is the average of ’s distance to it closest facility and distance to the other facility that goes to whom doesn’t share. The importance of the above function is captured in a couple of observations: (A) for any and any , we can upper bound , that is, isn’t too bad a proxy, and perhaps more usefully (B) given any such that for all super representatives, we can find an assignment of any to facilities with connection cost . These two facts, and the fact that we can minimize linear functions over the intersection of two partition matroids (defined by the ’s for and ), gives us an -approximation. This is because the relevant polytope has integral extreme points (see the full version [16] for a proof). Observation (A) holds because we can charge ’s journey to ’s “other facility” to ’s connection cost which is smaller than ’s cost by design; this uses half-intergrality. The details are in the full version [16]. Observation (B) is immediate if or if ; otherwise, if then will travel to its closest facility while will be average of two number which are larger than the minimum. The statement is in fact true for fractional ’s as well and the proof is in the full version [16].
All in all, we get the following theorem; the factor could definitely be improved, but perhaps no better than using these methods.
Theorem 16.
When , there is a polynomial time -approximation algorithm for sum-aggregate -median.
Remark 17 (Generalizing to arbitrary norm aggregators).
In the above proof, we note that the solution we return has the property that , for . This allows us to generalize the above theorem for any aggregator which is a norm. Instead of a linear program, we would have a convex program. More precisely, we have variables where and the objective would minimize . By the property of our rounding and the homogeneity of , we would get that .
Remark 18 (Generalizing -clustering).
The above theorem focused on the -median problem. However, the same methodology also gives an -approximation for the -aggregated -clustering problem due to the fact that we only use triangle inequalities over “bounded number of hops”. This is a folklore observation (see, for instance, Footnote 1 in [21]). To obtain this, first we replace with in the linear/convex program. Next, we use the “relaxed triangle inequality”, which follows from Lemma A.1 in [51], that says if we have points , then . In our proof above, we never invoke the triangle inequality on more than points, and thus, everything goes through with a “hit” of . Note, though, that the definition of the proxy function would have replaced by . In the end, we would get a approximation to the sum of the th powers, and since we take the th root, this gives a -approximation.
4 FPT() constant factor approximation
Theorem 19.
For any homogenous aggregator , any , and any constant error parameter , there is an algorithm that computes a -approximate solution to -aggregate -clustering in time .
Proof.
We adapt an existing FPT -approximation [30, Section 2.1] for standard -clustering (i.e. ). Fix an error parameter . In our aggregate cluster instance, let denote the client set and let denote the facilities. For each scenario (defined by a metric and a client weights ), we first compute a coreset of size [35]; that is, obtain a new client set and new weights on with the property that for any subset of facilities ,
Henceforth we work with the coresets rather than the entire client set in each metric.
Let be the optimal solution to the aggregate clustering instance, with (unknown) centers . For an and , let be the cluster served by under . Define the client to be the closest client (in the coreset ) to , that is , and define .
For each scenario and index , we can guess (by enumeration) the client in time . We can’t guess exactly, but we can guess it up to the closest power of : we assume WLOG (up to a loss in the approximation factor) that the aspect ratio of is , and so bucketing pairwise distances of by powers of reduces the number of possible distances to . Overall, in time , we can guess each and . By Fact 26, this overhead is .
Suppose our guesses are correct. For each , consider the set containing the facilities that are within distance of in every metric , i.e. . If our guesses are correct, then is non-empty since lies in this intersection. Let our solution consist of an arbitrary for each . For a client in the cluster , we have by definition of ; and also . Using these, we get
for every and . Since the -clustering cost and the aggregator are both homogeneous functions, this yields a -approximation. Rescaling by a constant yields the desired result.
In the special case of -supplier, we have a simpler -algorithm that doesn’t utilize coresets, and runs in time. We present it in the full version [16].
5 FPT Approximations in Well-structured Metrics
5.1 Metrics with Bounded Scatter Dimension
In this section, we study aggregate clustering in the case where all the metrics have bounded -scatter dimension. This notion of metric dimension was originally introduced by [1] to obtain -time -approximation algorithms (ie, efficient parameterized approximation schemes, or EPASes for short) for a large class of center-based -clustering problems, for example the case of -clustering.
Definition 20 (-scattering, -scatter dimension [1, Definition IV.1]).
An -scattering in a metric space is a sequence s.t.
-
, and ;
-
[covering] , ; and
-
[-refutation] , .
The -scatter dimension of a family of metric spaces is the maximum length of any -scatter of an .
A key component of the () EPASes of [1] is an EPAS for the special case of unweighted -supplier. We recall their algorithm, following their presentation. At a high level, they maintain a -sized solution , and while this solution is not a -approximation, clients with high cost are identified to guide a recomputation of ; the bounded -scatter dimension is used to show a bound on the number of recomputations needed. In more detail, is initialized arbitrarily as . Empty buckets are also initialized, corresponding to clusters that would eventually be served by respectively. We assume we know the cost of the optimal solution666We can approximate it by bucketing by powers of and guessing over the options.. While there exists a client violating the desired -approximation of – i.e. while – the algorithm guesses the index of the optimal cluster that serves in . The client is then placed in the bucket , and is recomputed so that . If such an cannot be obtained, then the algorithm asserts failure and restarts from the initialization; but with positive probability we don’t fail (because with probability we guess correctly). Now here is the key insight, that each bucket can’t grow too large. Indeed, consider the sequence of requests added to over time, and consider the sequence of candidate locations for over time, . These two sequences form an -scatter (after we normalize distances so ). In particular, if the -scatter dimension of is upper-bounded by some , then every bucket only grows to size until we either assert success or failure. As there there are buckets overall, each iteration of the algorithm requires at most random choices each of which is correct with probability ; so with constant probability, we successfully find a solution after re-initializations.
For our aggregate clustering problem, we generalize the above. Rather than guessing a single partition of the clients into clusters served by , we need to guess different partitions, one for each metric: we now have buckets for each , and we separately guess for each . These metric-wise buckets allows us to mostly decouple the different metrics: when we find a violation in metric , i.e. get , we select a random index and add to bucket , just as is done for the case. Only when recomputing do we take the other metrics into account; we choose to obey the constraints of all the buckets across all , that is . Observe that each bucket still has bounded size, as it provides witness of an -scatter in metric . To be precise, if one considers the sequence of requests in and the sequence of candidate positions for at the moment immediately before request was added777We remark that, unlike the case, the center could take on more than candidate positions, because the the position of could be changed due to a request in any bucket for ; nevertheless, even if is changed due to a different bucket we still guarantee that covers requests in , and so one can construct an -scatter., , then these sequences form an -scatter for . In particular, each iteration of the algorithm makes random choices, and so it succeeds with constant probability after rounds.
Theorem 21.
When all metrics have -scatter dimension at most , for any homogeneous aggregator there is an algorithm for -aggregate (unweighted) -supplier runs in time , and produces a -approximation with constant probability.
When , the -supplier EPAS generalizes [1] to weighted -center (by initializing with the help of a -approximation), then to weighted -median (by a random sampling argument), and then to more general -clustering problems. We adapt some of these ideas to the aggregate setting, and prove the following theorem in the full version [16].
Theorem 22.
When all metrics have -scatter dimensions upper-bounded by some , for any homogeneous aggregator there is an algorithm for -aggregate -median that runs in time , and produces -approximations with constant probability.
Remark 23 (Barrier at algorithmic scatter dimension).
The authors of [1] also consider a weaker notion of algorithmic -scatter dimension (where, roughly speaking, the length of -scatters are only bounded if the sequence of centers is chosen according to a certain algorithm), and their EPASes extend to metrics of bounded algorithmic scatter dimension. For example in the case of -supplier, when recomputing the center for some bucket , they just use the algorithm for computing the center rather than choosing to be an arbitrary point that covers . We are aware of two follow-up works [38, 12] that build on the framework of [1], both of which apply also for algorithmic scatter dimension. In contrast, our aggregate algorithm does not extend to the more general setting; this is because we recompute in a way that covers all the buckets across (and such an is guaranteed to exist, if we guessed the buckets correctly), whereas an algorithmic version would require that was chosen to simultaneously satisfy the algorithms of all metrics (and such an does not necessarily exist).
5.2 Bounded-treewidth Graphs
Theorem 24.
When the base graph has treewidth and the aggregator sum, then:
-
there is an exact algorithm for sum-aggregate -clustering that runs in time .
-
for any , there is a -approximation algorithm for sum-aggregate -clustering that runs in time .
In this section we focus on the -median case; the ideas extend naturally to -clustering and -supplier. We prove Theorem 24 by adapting a folklore dynamic program for solving -median on bounded-treewidth graphs. (Recall that a tree decomposition of a graph is a tree of bags, where each bag is a subset of vertices , that satisfies two properties: (1) for every edge in , there is a bag containing both and , and (2) for every vertex in , the bags containing induce a connected subtree of . The width of the tree decomposition is 1 less than the maximum bag size, and the treewidth of a graph is the minimum width of any tree decoposition. A tree has treewidth 1.) To the best of our knowledge, the DP for -median has not been written down explicitly in the setting of bounded treewidth graphs, but the technique is standard. Our presentation is based on a DP that appeared [6, 42, 29] as part of a PTAS for -median in Euclidean metrics. In this section we explain the main idea of the algorithm and defer the formal details to the full version [16].
We begin by reviewing the folklore DP. Every bag of the tree decomposition acts as a small separator between an “inside” piece (induced by the vertices in the subtree of rooted at ) and an “outside” piece (induced by all vertices outside the subtree rooted at ). For each separator, the DP guesses the interface of the optimal solution between the two pieces. In the case of -median, the interface of bag consists of the distance of every to the closest open center in the inside (resp. outside) piece, as well as the number of centers opened in the inside (resp. outside) piece in the optimal solution. Note that there are possible interfaces for any bag, as there are possible distances for each ; by rounding distances to the nearest power of , we could reduce the number of interfaces to . The DP table contains a cell for every bag and every possible interface of , where the value of the cell represents the cost paid by vertices in the inside piece under the best solution that respects the interface. The value of a DP cell at bag can be computed from the DP cells of the children of , by taking a minimum over all combinations of children interfaces which are consistent with the interface of (checking the consistency of interfaces can be done in a straightforward manner in polynomial time [6, 29]). The overall runtime is , or if we tolerate approximation.
To adapt the DP to the aggregate setting, we simply change the notion of interface: rather than guessing just one interface, we guess a different interface for each of the metrics . The cells of our DP table now consist of a bag and a set of tuples; the -th tuple consists of the distance with respect to of every to the closest (with respect to ) open center in in each piece, as well as the cost paid by each piece in the metric under . (Note: the reason that we need to guess a different interface for each metric is that, even though the optimal set of centers for the aggregate problem stays consistent throughout the metrics, a vertex could be served by a different center of in each different metric .) There are possible interfaces. The DP can be computed in a bottom-up fashion, as in the non-aggregate setting, for a total runtime of . If one allows approximation, the runtime improves to , which is at most (see Fact 26).
Remark 25.
Observe that if , then Theorem 24 provides a -approximation algorithm in time (by Fact 26).
References
- [1] Fateme Abbasi, Sandip Banerjee, Jarosław Byrka, Parinya Chalermsook, Ameet Gadekar, Kamyar Khodamoradi, Dániel Marx, Roohani Sharma, and Joachim Spoerhase. Parameterized approximation schemes for clustering with general norm objectives. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 1377–1399. IEEE, 2023. doi:10.1109/FOCS57990.2023.00085.
- [2] Ittai Abraham, Daniel Delling, Amos Fiat, Andrew V Goldberg, and Renato F Werneck. Highway dimension and provably efficient shortest path algorithms. Journal of the ACM (JACM), 63(5):1–26, 2016. doi:10.1145/2985473.
- [3] Ittai Abraham, Amos Fiat, Andrew V Goldberg, and Renato F Werneck. Highway dimension, shortest paths, and provably efficient algorithms. In Proceedings of the twenty-first annual ACM-SIAM symposium on Discrete Algorithms, pages 782–793. SIAM, 2010.
- [4] Akanksha Agrawal, Tanmay Inamdar, Saket Saurabh, and Jie Xue. Clustering what matters: Optimal approximation for clustering with outliers. J. Artif. Int. Res., 78, 2024.
- [5] Barbara Anthony, Vineet Goyal, Anupam Gupta, and Viswanath Nagarajan. A plant location guide for the unsure: Approximation algorithms for min-max location problems. Mathematics of Operations Research, 35(1):79–101, 2010. Preliminary version appeared in SODA 2008. doi:10.1287/MOOR.1090.0428.
- [6] Sanjeev Arora, Prabhakar Raghavan, and Satish Rao. Approximation schemes for euclidean k-medians and related problems. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 106–113, 1998. doi:10.1145/276698.276718.
- [7] Vijay Arya, Naveen Garg, Rohit Khandekar, Adam Meyerson, Kamesh Munagala, and Vinayaka Pandit. Local search heuristics for -median and facility location problems. SIAM Journal on Computing (SICOMP), 33(3):544–562, 2004. doi:10.1137/S0097539702416402.
- [8] MohammadHossein Bateni, Hossein Esfandiari, Hendrik Fichtenberger, Monika Henzinger, Rajesh Jayaram, Vahab Mirrokni, and Andreas Wiese. Optimal fully dynamic k-center clustering for adaptive and oblivious adversaries. In the Symposium on Discrete Algorithms (SODA), pages 2677–2727, 2023. doi:10.1137/1.9781611977554.CH101.
- [9] Sayan Bhattacharya, Martín Costa, and Ermiya Farokhnejad. Fully dynamic -median with near-optimal update time and recourse. In the Symposium on Theory of Computing (STOC), pages 1166–1177, 2025. doi:10.1145/3717823.3718176.
- [10] Sayan Bhattacharya, Martín Costa, Silvio Lattanzi, and Nikos Parotsidis. Fully dynamic -clustering in update time. Adv. in Neural Infomation Processing Systems (NeurIPS), 36:18633–18658, 2023.
- [11] Sayan Bhattacharya, Martín Costa, Silvio Lattanzi, and Nikos Parotsidis. Fully dynamic -center clustering made simple. In the International Conference on Machine Learning (ICML), 2025.
- [12] Sujoy Bhore, Ameet Gadekar, and Tanmay Inamdar. Coreset strikes back: Improved parameterized approximation schemes for (constrained) k-median/means. arXiv preprint arXiv:2504.06980, 2025. doi:10.48550/arXiv.2504.06980.
- [13] Romain Bourneuf and Marcin Pilipczuk. Bounding -scatter dimension via metric sparsity. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3155–3171. SIAM, 2025. doi:10.1137/1.9781611978322.101.
- [14] Jarosław Byrka, Thomas Pensyl, Bartosz Rybicki, Aravind Srinivasan, and Khoa Trinh. An improved approximation for -median, and positive correlation in budgeted optimization. In the Symposium on Discrete Algorithms (SODA), pages 737–756, 2014.
- [15] Constantin Carathéodory. Über den variabilitätsbereich der fourier’schen konstanten von positiven harmonischen funktionen. Rendiconti Del Circolo Matematico di Palermo (1884-1940), 32(1):193–217, 1911.
- [16] Deeparnab Chakrabarty, Jonathan Conroy, and Ankita Sarkar. Clustering in varying metrics, 2025. arXiv:2510.07860.
- [17] Deeparnab Chakrabarty, Luc Cote, and Ankita Sarkar. Fault-tolerant k-supplier with outliers. In the Symposium on Theoretical Aspects of Computer Science (STACS). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.STACS.2024.23.
- [18] Deeparnab Chakrabarty, Prachi Goyal, and Ravishankar Krishnaswamy. The Non-Uniform -Center Problem. the ACM Transactions on Algorithms (TALG), 2020. Preliminary version in ICALP 2016. doi:10.1145/3392720.
- [19] Deeparnab Chakrabarty and Maryam Negahbani. Generalized Center Problems with Outliers. the ACM Transactions on Algorithms (TALG), 2019. Prelim. version in ICALP 2018. doi:10.1145/3338513.
- [20] Deeparnab Chakrabarty, Maryam Negahbani, and Ankita Sarkar. Approximation algorithms for continuous clustering and facility location problems. In European Symposium on Algorithms, 2022.
- [21] Deeparnab Chakrabarty and Chaitanya Swamy. Approximation algorithms for minimum norm and ordered optimization problems. In the Symposium on Theory of Computing (STOC), pages 126–137, 2019. doi:10.1145/3313276.3316322.
- [22] TH Hubert Chan, Arnaud Guerqin, and Mauro Sozio. Fully dynamic k-center clustering. In the International World Wide Web Conference, pages 579–587, 2018.
- [23] Moses Charikar, Sudipto Guha, Éva Tardos, and David B Shmoys. A constant-factor approximation algorithm for the k-median problem. Journal of Computer and System Sciences, 65(1):129–149, 2002. Preliminary version appeared in STOC 1999. doi:10.1006/JCSS.2002.1882.
- [24] Moses Charikar, Samir Khuller, David M Mount, and Giri Narasimhan. Algorithms for facility location problems with outliers. In the Symposium on Discrete Algorithms (SODA), volume 1, pages 642–651. Citeseer, 2001. URL: http://dl.acm.org/citation.cfm?id=365411.365555.
- [25] Moses Charikar and Shi Li. A dependent lp-rounding approach for the k-median problem. In International Colloquium on Automata, Languages, and Programming, pages 194–205. Springer, 2012. doi:10.1007/978-3-642-31594-7_17.
- [26] Eden Chlamtáč, Yury Makarychev, and Ali Vakilian. Approximating fair clustering with cascaded norm objectives. In the Symposium on Discrete Algorithms (SODA), 2022.
- [27] Fabián A Chudak and David B Shmoys. Improved approximation algorithms for the uncapacitated facility location problem. Journal of the ACM (JACM), 33(1):1–25, 2003. doi:10.1137/S0097539703405754.
- [28] Julia Chuzhoy and Zihan Tan. Towards tight (er) bounds for the excluded grid theorem. Journal of Combinatorial Theory, Series B, 146:219–265, 2021. doi:10.1016/J.JCTB.2020.09.010.
- [29] Vincent Cohen-Addad, Andreas Emil Feldmann, and David Saulpic. Near-linear time approximation schemes for clustering in doubling metrics. Journal of the ACM (JACM), 68(6):1–34, 2021. doi:10.1145/3477541.
- [30] Vincent Cohen-Addad, Anupam Gupta, Amit Kumar, Euiwoong Lee, and Jason Li. Tight fpt approximations for k-median and k-means. In 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019), volume 132, pages 42–1. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ICALP.2019.42.
- [31] Vincent Cohen-Addad, Niklas Oskar D Hjuler, Nikos Parotsidis, David Saulpic, and Chris Schwiegelshohn. Fully dynamic consistent facility location. Adv. in Neural Infomation Processing Systems (NeurIPS), 32, 2019.
- [32] Marek Cygan, Fedor V Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [33] Shichuan Deng, Jian Li, and Yuval Rabani. Approximation algorithms for clustering with dynamic points. Journal of Computer and System Sciences, 130:43–70, 2022. doi:10.1016/J.JCSS.2022.07.001.
- [34] Uriel Feige. A threshold of ln n for approximating set cover. Journal of the ACM (JACM), 45(4):634–652, 1998. doi:10.1145/285055.285059.
- [35] Dan Feldman and Michael Langberg. A unified framework for approximating and clustering data. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pages 569–578, 2011. doi:10.1145/1993636.1993712.
- [36] Hendrik Fichtenberger, Silvio Lattanzi, Ashkan Norouzi-Fard, and Ola Svensson. Consistent k-clustering for general metrics. In the Symposium on Discrete Algorithms (SODA), pages 2660–2678, 2021. doi:10.1137/1.9781611976465.158.
- [37] Sebastian Forster and Antonis Skarlatos. Dynamic consistent k-center clustering with optimal recourse. In the Symposium on Discrete Algorithms (SODA), pages 212–254, 2025. doi:10.1137/1.9781611978322.7.
- [38] Ameet Gadekar and Tanmay Inamdar. Dimension-Free Parameterized Approximation Schemes for Hybrid Clustering. In Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyên Kim Thang, editors, 42nd International Symposium on Theoretical Aspects of Computer Science (STACS 2025), volume 327 of Leibniz International Proceedings in Informatics (LIPIcs), pages 35:1–35:20, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2025.35.
- [39] Dorit S Hochbaum and David B Shmoys. A unified approach to approximation algorithms for bottleneck problems. Journal of the ACM (JACM), 33(3):533–550, 1986. doi:10.1145/5925.5933.
- [40] AJ Hoffman and JB Kruskal. Integral boundary points of convex polyhedra, in “linear inequalities and related systems”(hw kuhn and aw tucker, eds.). Annals of Mathematical Studies, 38, 1956.
- [41] Kamal Jain and Vijay V. Vazirani. Approximation algorithms for metric facility location and -median problems using the primal-dual schema and Lagrangean relaxation. Journal of the ACM (JACM), 48(2):274–296, 2001. doi:10.1145/375827.375845.
- [42] Stavros G Kolliopoulos and Satish Rao. A nearly linear-time approximation scheme for the euclidean k-median problem. SIAM Journal on Computing, 37(3):757–782, 2007. doi:10.1137/S0097539702404055.
- [43] Ravishankar Krishnaswamy, Shi Li, and Sai Sandeep. Constant approximation for k-median and k-means with outliers via iterative rounding. In the Symposium on Theory of Computing (STOC), pages 646–659, 2018. doi:10.1145/3188745.3188882.
- [44] Shrinu Kushagra. Three-dimensional matching is np-hard. arXiv preprint arXiv:2003.00336, 2020. arXiv:2003.00336.
- [45] Shrinu Kushagra, Shai Ben-David, and Ihab Ilyas. Semi-supervised clustering for de-duplication. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1659–1667. PMLR, 2019. URL: http://proceedings.mlr.press/v89/kushagra19a.html.
- [46] Jakub Łącki, Bernhard Haeupler, Christoph Grunau, Rajesh Jayaram, and Václav Rozhoň. Fully dynamic consistent k-center clustering. In the Symposium on Discrete Algorithms (SODA), pages 3463–3484, 2024.
- [47] Silvio Lattanzi and Sergei Vassilvitskii. Consistent k-clustering. In the International Conference on Machine Learning (ICML), pages 1975–1984, 2017. URL: http://proceedings.mlr.press/v70/lattanzi17a.html.
- [48] Shi Li. A 1.488 approximation algorithm for the uncapacitated facility location problem. Information and Computation, 222:45–58, 2013. doi:10.1016/J.IC.2012.01.007.
- [49] Shi Li and Ola Svensson. Approximating -median via pseudo-approximation. SIAM Journal on Computing (SICOMP), 45(2):530–547, 2016. doi:10.1137/130938645.
- [50] Sepideh Mahabadi and Ali Vakilian. (Individual) Fairness for -Clustering. In the International Conference on Machine Learning (ICML), pages 7925–7935, 2020. URL: https://dl.acm.org/doi/abs/10.5555/3524938.3525549.
- [51] Konstantin Makarychev, Yury Makarychev, and Ilya Razenshteyn. Performance of johnson-lindenstrauss transform for k-means and k-medians clustering. In the Symposium on Theory of Computing (STOC), pages 1027–1038, 2019. doi:10.1145/3313276.3316350.
- [52] Yury Makarychev and Ali Vakilian. Approximation algorithms for socially fair clustering. In the Conference on Learning Theory (COLT), 2021.
- [53] Ján Plesník. A heuristic for the p-center problems in graphs. Discrete Applied Mathematics, 17(3):263–268, 1987. doi:10.1016/0166-218X(87)90029-1.
- [54] Neil Robertson and Paul D Seymour. Graph minors. v. excluding a planar graph. Journal of Combinatorial Theory, Series B, 41(1):92–114, 1986. doi:10.1016/0095-8956(86)90030-4.
- [55] David B Shmoys, Éva Tardos, and Karen Aardal. Approximation algorithms for facility location problems. In the Symposium on Theory of Computing (STOC), pages 265–274, 1997.
- [56] Ernst Steinitz. Bedingt konvergente reihen und konvexe systeme. Journal für die reine und angewandte Mathematik, 1913.
- [57] Chaitanya Swamy. Improved approximation algorithms for matroid and knapsack median problems and applications. the ACM Transactions on Algorithms (TALG), 12(4):1–22, 2016. doi:10.1145/2963170.
- [58] Li Yan and Marek Chrobak. Lp-rounding algorithms for the fault-tolerant facility placement problem. Journal of Discrete Algorithms, 33:93–114, 2015. doi:10.1016/J.JDA.2015.03.004.
- [59] Martin Zinkevich. Online convex programming and generalized infinitesimal gradient ascent. In the International Conference on Machine Learning (ICML), pages 928–936, 2003. URL: http://www.aaai.org/Library/ICML/2003/icml03-120.php.
Appendix A Useful facts
Fact 26.
For any and any variable , the function is bounded above by . For example, when , we have .
Proof.
Let , and note . If satisfies , then clearly . On the other hand, if , then the fact that implies that grows as a function of , and so .
We now give an example that provides explicit bounds for the case . If , then . Otherwise, if , then .
Observation 27.
Fix an aggregator function . Suppose that one can find an -approximation to the -aggregate -supplier (or -median, or -clustering) problem on metrics and vertices in time . Then one can find an -approximation to generalized aggregate clustering, with the restriction that weights come from , in time .
Proof.
Suppose we are given an instance of -weighted generalized aggregate -clustering, defined by metrics , client set , and facility set . We construct an instance of vanilla aggregate -clustering as follows. Create a new vertex , and let the new facility set be . The client set is set to be . We assume WLOG that and are disjoint: if some vertex is both a client and facility, we duplicate , and make one copy a client and one a facility. After this duplication, we have .
For every , we construct a new distance metric as follows. We define the active vertices to be the set of clients with weight 1 in the -th instance, together with the set of facilities excluding (that is, ). The inactive vertices are those clients with weight 0 in the -th instance, and the facility . For any two vertices , we define
One can compute a solution to the instance from a solution to . Indeed, suppose is a set of facilities with aggregate cost in . It is straightforward to see that, if is finite, then facility is included in , and the set has aggregate cost for the instance . Moreover, if is any set of facilities with aggregate cost in , then the set of facilities has aggregate cost in . This proves the claim: in polynomial time one can construct , and in time one can compute an approximate solution and return .
