Packing Compact Subgraphs with Applications to Districting
Abstract
Packing disjoint subgraphs in a given graph is a fundamental problem with many applications. Motivated by political districting, we focus on connected subgraphs that are compact (e.g., having constant radius from a single center vertex) and that satisfy additional composition requirements, such as a minimum population/weight threshold or balanced weight types (e.g., political affiliations). We aim to maximize coverage by disjoint districts that meet these requirements.
In this work, we present new results that substantially improve the previously known bounds on balanced star districts for planar and minor-free graphs [33]. In particular, we improve the approximation factor from to for packing balanced star districts using the exact same algorithm, but with a refined analysis. We also extend the results beyond planar graphs to minor-free graphs and an even broader family of graphs of bounded expansion. Additionally, we obtain an approximation for packing radius- districts (with a constant ) in planar and apex-minor-free graphs. In order to get a approximation on the max coverage, we show that this can be achieved if we allow a slight relaxation of the balancedness parameters (by a factor that can be made arbitrarily close to ), for bounded radius- districts on planar and apex-minor-free graphs.
We show that all of these results can also be obtained if we enforce a minimum weight threshold for each district as the composition requirement, rather than balancedness. We present various results on hardness and hardness of approximation for this variant, by graph and district types.
Keywords and phrases:
Approximation algorithms, algorithmic fairnessFunding:
Ho-Lin Chen: Supported by NSTC grant 113-2221-E-002-204-MY3.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysis ; Theory of computation Graph algorithms analysisEditor:
Huijia (Rachel) LinSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
We consider a general family of districting problems, formulated as packing compact, connected subgraphs, with the objective of maximizing coverage. Given a graph with vertex set of and edge set . Each vertex represents an atomic region with integer weight (e.g., the population counts in the region, or reward). A district is a connected subgraph on a vertex set in , and two districts must be vertex-disjoint. We aim to maximize the total weight of the vertices covered by districts.
Depending on the application scenarios, a district needs to meet additional requirements. One commonly seen requirement is that any two vertices in the same district are not very far, that is, the district is relatively compact, or simply not too elongated. This is a desirable property that often appears in discussions of political districting. Further, there may be additional requirements on the population composition or budgeting constraints. We discuss the two dimensions separately.
Compactness.
To characterize this requirement, we consider two possible ways of limiting distances between vertices in district : diameter- or radius-, for a constant . A district meets the diameter- constraint if every two vertices in are within hops from each other. A district has radius- if there is a center vertex and all other vertices of are within hops from . Further, we can consider the diameter or radius in either the strong notion – within the induced subgraph on , or the weak notion – in the original graph . Notice that the weak notion is hereditary: for a subgraph with weak diameter , any subgraph of continues to have weak diameter at most . But this is obviously not always true for the strong diameter or radius.
Composition.
In addition, the districts may also need to satisfy additional properties that involve the composition of the vertices, such as:
-
Balancedness: in political districting there are two types of weights and for each vertex , with . For any vertex subset and each we define . We call -balanced if . That is, the two types of weights are comparable in size.
-
Weight threshold: a district is valid if for a threshold . This is a natural property that requires all districts to be significant in weight/size. Notice that we consider a lower bound type of constraint. The upper bound version is often trivial – for example, taking all feasible singleton districts is the optimal solution.
1.1 Motivation
Packing disjoint subgraphs is a fundamental problem that has many applications. The most notable applications are in political districting, in which connectivity, contiguity and compactness is highly preferred and sometimes enforced by state law [4]. Furthermore, the -balanced property guarantees that each political group has a decent amount of representation, which can be viewed as compliance with the Voting Rights Act of 1965 [41]. The weight threshold is another natural property such that each district is significant in size/population. In general, the districting problem can also be applied to the allocation of other types of resources and services [13, 51].
Earlier work of [33] considered the -balanced districting problem, which is one case of the districting problem defined earlier. [33] provided various hardness results and approximation algorithms for different families of graphs. There are two major directions left open in [33]. First, most of the positive results (without additional assumptions on the districts or on very special graphs such as complete graphs or trees) are only for star districts, which are (strong) radius-1 subgraphs. It was not clear how the results could be extended to higher, constant values of radius-. Second, and more importantly, one of the most prominent applications in political districting considers planar graphs (e.g., the geographical subdivision into townships and counties). The best approximation factor for packing -balanced star districts in a planar graph in [33] is without a matching lower bound. Resolving this issue by either developing a constant-factor approximation or proving a stronger hardness result is a major open question.
| Graph Type | District Type | Results |
|---|---|---|
| Planar | star (strong radius-1) | -approx [33] |
| strong radius- | -approx (Theorem 4) | |
| weak/strong radius- | -approx, -relaxation (Theorem 19) | |
| Apex-Minor-Free | strong radius- | -approx (Theorem 4) |
| weak/strong radius- | -approx, -relaxation (Theorem 19) | |
| -Minor-Free | star (strong radius-1) | -approx, [33] |
| star (strong radius-) | -approx (Theorem 5) | |
| Bounded Expansion | star (strong radius-) | -approx (Theorem 5) |
1.2 Related Work
Our problem is connected to computational (re)districting for schools and elections, which dates back to the 1960s [45]. Since then, extensive work (see [9]) has studied them as an algorithmic problem, typically focusing on specific constraints such as balance or compactness. For balancedness, recent work introduces vote-band metrics [27], which require a certain fraction of votes to fall within a specified range (e.g., 45-55%) for competitive elections. Subsequently, [19, 33] introduce the -balanced district problem. Other research focuses on optimizing balance scores directly [40]. Regarding compactness, one line of work treats it as a transportation cost [2, 38, 22], such notions also relate to the fair clustering problem [12, 18, 49, 17]. Other research focuses on optimizing compactness scores [8, 50, 53, 48] or using Voronoi or power diagrams with some variant of -means [67, 24, 25, 39]. Besides the optimization approach, another popular method uses sampling to generate a distribution over districts and create a collection of district plans for selection [5, 21, 28, 59, 16].
Finally, several papers take a fair division approach [54, 64, 26]. The problem is quite different, however, as fairness in this context is defined concerning parties (types) and the number of seats they would win (i.e., the number of districts where they would have a majority) compared to other districts, rather than the internal composition of individual districts.
Besides its applications in political districting, packing compact subgraphs from a given family, such as paths, cycles, and stars, is a fundamental problem in its own right. Let be a family of graphs. A -packing of a graph is a set of vertex disjoint subgraphs such that each subgraph is isomorphic to some element of . These types of problems have been studied in many papers with various hardness and approximation results, such as packing stars [63, 6, 56, 68, 66], induced stars [52], constant sized graphs [57, 14, 55], cycles and paths [44, 47, 66, 10], cliques and bicliques [46, 42, 43], and low-diameter spanning trees [20]. Another line of work [1, 36, 35, 34, 58, 69] explores covering and partitioning graph with -clubs, as a generalization to the clique cover problem. is a -club in graph if induces a subgraph in with diameter at most (cliques are -club for ). -club with at least vertices is called a -club. The Minimum -club cover problem asks for minimum number of -clubs that cover all vertices in the graph and [35, 69] explore hardness and approximation algorithms for different values of . The Maximum Disjoint -club covering problem asks for vertex disjoint -clubs that cover maximum number of vertices in the graph . [36, 58] study this problem for on general and bipartite graphs. Note that none of the above work consider the composition properties of the subgraphs. Thus, the results are only marginally relevant to this paper.
1.3 New Results
In this paper, we resolve both problems left open in [33], significantly expanding the theoretical understanding of this problem. Our results are summarized in Table 1.
-approximation.
Compared to the -approximation of packing star districts on a planar graph in [33], we improved the results in two directions. First, we show an algorithm (Theorem 5) with a constant approximation factor for packing -balanced star districts in graphs of bounded expansion, which is a concept of graph family that are “everywhere sparse” introduced by Nešetřil and Ossona de Mendez [62, 61, 60]. Graphs with bounded expansion include minor-free graphs (and planar graphs) and graphs of bounded degree, as well as graphs that appear in complex network models such as the configuration model and the Chung–Lu model [31]. This improves the approximation factor from to for a much bigger family of graphs. Second, we show a constant approximation for packing -balanced or threshold districts of bounded strong radius on planar graphs and apex-minor-free graphs(Theorem 4). Both results also apply to the threshold districts (instead of -balanced ones for the composition requirement).
-approximation.
Next, we wonder what can be said if we want a approximation for the district packing problem. We show that PTAS can be obtained for packing bounded weak radius districts on planar and apex-minor-free graphs, if we allow a small relaxation of -balanced property to -balanced, for any (Theorem 19). The same holds for the weight-threshold version if we relax the threshold to .
Hardness results.
Finally, we complement the positive results with hardness results in Appendix C. For the majority of the positive results, we consider compactness as defined by a bounded radius . For maximum packing of subgraphs of bounded diameter (both weak and strong) on general graphs, we show that even finding one district with weight threshold is NP-hard (Theorem 6.6 in full version) by reducing it from the max clique problem. Additionally, the separation oracle for the LP formulation relies on finding a violating district, which itself is a feasible district; implying that implementing the separation oracle for districts of bounded diameter in general graphs is NP-hard. For maximum packing of districts with a weight threshold, we show that it is NP-hard by reduction from the maximum independent set problem (Theorem 22). Specifically, we show it is NP-hard to approximate to a factor better than for on general graphs, and the maximum packing problem remains NP-hard even on planar graphs. This hardness holds even when we require the subgraphs to have bounded radius, with (stars). The problem is trivial for a complete graph but remains NP-hard on a tree by a reduction from the Knapsack problem.
Lastly, the -balanced property considers two types of weights; if three or more weights are considered, the problem of packing compact graphs is hard to approximate within any factor (see Theorem 6.5 in full version). We will now formally define the problems and then provide an overview of the challenges and new techniques to obtain the results.
2 Preliminary
2.1 Problem Statement
Consider a connected undirected graph with vertices and edges. We define a general district packing problem. The input graph is associated with an objective weight function and potentially a list of feature weight functions . These feature weights can be independent of each other as well as of objective weights. A district is a subset of vertices such that the induced subgraph is connected and satisfies specific validity constraints: compactness (constraints on topology) and composition (constraints on feature weights). A (partial) districting solution is a collection of vertex-disjoint districts . We remark that finding a complete partition of the graph into vertex-disjoint districts (i.e., ) may not be possible; rather, we seek a packing of disjoint districts with a maximum total objective weight.
For the compactness constraints, besides connectivity, we consider radius or diameter bounds. Specifically, the distance between vertices and in is the number of edges on the shortest path between and . A district has bounded strong radius if there exists a vertex such that for all other vertices , . Similarly, has bounded weak radius if there exists a vertex such that for all other vertices , . A districting satisfies strong (or weak) radius bound if every has bounded strong (or weak) radius . A district has bounded strong diameter if all pairs of vertices in have distance in the induced subgraph at most , i.e., . It has bounded weak diameter if for every pair of vertices , their distance in the original graph is at most , i.e., .
Composition constraints impose limits on the feature weights of each district. First, we can extend our weight to a single district and a districting solution . For any weight function (representing either the objective or a feature ), the district weight is , and the total weight of the districting solution is . We consider two types of composition requirements:
Balanced Districting.
Threshold Districting.
Given a feature weight and a threshold parameter , a district is a -threshold district if A districting solution is -threshold if every district is a -threshold district.
Similarly, a -relaxed -threshold district is defined by the condition: We will use or to denote districts and for the set of valid districts (e.g., the set of -balanced districts with strong radius bound ).
Approximate and Bicriteria Solutions.
Given a graph , weights , and constraint parameters ( and or ), our goal is to find a districting solution that maximizes the total objective weight and every district satisfies the (compactness and composition) constraints. We say a districting solution is an -approximation if every district in satisfies the exact constraints and
where is an optimal solution satisfying the exact constraints. We also consider bicriteria -approximations. In this setting, the solution satisfies the weight approximation guarantee () but is permitted to satisfy the -relaxed composition constraints. For instance, in the -balanced districting problem with strong radius bound :
-
An -approximation requires that each district in is strictly -balanced and has strong radius at most .
-
A bicriteria -approximation allows the districts in to be -relaxed -balanced (i.e., balanced with parameter ), while still comparing the solution against the strictly -balanced optimum .
Graph Types.
A graph is planar if there exists an embedding of all vertices to the Euclidean plane such that all edges can be drawn without intersections other than the endpoints. A face of a planar embedding is a connected region separated by the embedded edges. is said to be outerplanar if there exists an embedding of such that there is a face containing all vertices. Often, this face is assumed to be the outer face. A graph is said to be a minor of if is isomorphic to the graph obtained by a sequence of vertex deletions, edge contractions, and edge deletions from . We say that is -minor-free if does not have as its minor. A graph is an apex graph if there is a vertex whose removal results in a planar graph. A graph is apex-minor free if it does not have some apex graph as a minor. See [37, 29] for more discussions on apex-minor-free graphs. We now formally define bounded expansion graphs.
Definition 1.
Let be an undirected (multi-)graph and let be a non-decreasing function. We say that belongs to the class of -bounded expansion graphs if the following holds. Let be a partition of , where each part induces a connected graph. Let be the maximum diameter of the induced subgraphs for all . Consider the contracted graph from where each part is contracted to a single vertex. Then, for any subgraph of , the density of satisfies .
At a high-level, a bounded expansion graph keeps a bounded density (and thus bounded degeneracy) if one contracts bounded diameter subgraphs all at once in .
2.2 Algorithmic Framework
We first examine the districting problem from a bird’s-eye view and explain how the technical tools introduced in this work can be applied more generally.
Linear Program Formulation.
Recall that a candidate district is represented by a set of vertices as defined in Section 2.1. We use as the set of all candidate districts that meet the requirements. This set can be of potentially exponential size. For each candidate district , we define a variable indicating whether or not this district is chosen. Due to the disjointness of districts, among all the districts that cover the same vertex , only one of them can take a value of . Denote by the weight of . The integer program is defined as
| maximize | (3) | |||
| subject to | ||||
To solve an integer solution, we use two steps. First, solve for an (approximate) solution to the LP problem. Then round the fractional solution to an integer solution. We discuss the two problems separately. To relax this integer program to a fractional solution, we allow to take real values in and define , . Rewriting the LP using , the primal and dual LP problems are as follows.
Primal: Maximizing , subject to for all ; for all .
Dual: Minimizing , subject to for all ; for all .
Solving the LP problem is straightforward if we are given a set of polynomially many valid districts. One scenario in which this could happen is when a districting already exists on and, for a new districting solution, only minor changes to the previous solution are acceptable. In general, the number of potential districts could be exponentially large, even if we consider only stars (e.g., under the compactness restriction). We cannot explicitly write the variables and constraints in the LP and must rely on a separation oracle. For the dual LP problem, a strongly violating dual constraint is a district such that is valid and for the dual variables values of vertices in and , . We formulate the task of implementing a separation oracle as follows:
Input: Graph , dual variables , weight function , implicit set of all valid districts.
Goal: Either returns a violating district such that its weight is at least half to the maximum weight among all violating districts, and
| (4) |
or reports that all districts satisfy .
Randomized Rounding.
Once we have an (approximate) fractional solution to the LP, we use the same randomized rounding as in [33] to find an integer solution : sort all districts with non-zero -values in decreasing order of their weights; in this order a district is selected with probability proportional to , if it does not overlap with any districts already selected in the integer solution. This rounding procedure introduces another approximation factor of , where is called the correlation ratio and bounds the correlation term .
We state this lemma from [33] for completeness. Suppose is the set of districts from the fractional LP solution that have -value at least and is the total weight of the integer solution after rounding. The expectation is on the random coin flips in the rounding process.
Lemma 2 (Lemma B.5 in [33]).
Suppose that there exists a such that for all ,
then .
3 Technical Overview
This section summarizes the main algorithmic ideas and the core technical challenges underlying Sections 4 and B. The new progress requires addressing two major challenges. First, we need to identify the candidate districts that meet the specified requirements (connectivity, compactness, balancedness, or weight threshold). Next, we choose a disjoint subset of the candidate districts with maximum total weight. The first issue is related to feasibility, and the second issue regards disjointness or packing.
At a high level, our positive results rely on two complementary approaches. Section 4 develops a refined analysis of a linear programming (LP) relaxation combined with randomized rounding, yielding constant-factor approximations on minor-free and bounded-expansion graph classes. Section B strengthens the result for apex-minor-free graphs by combining Baker’s layering technique with a new dynamic programming (DP) framework on bounded-treewidth graphs, leading to a PTAS under relaxed parameters.
3.1 Refined Rounding Analysis (Section 4)
Recall that is the primal variable in the LP formulation for a district , . We consider districts of strong radius . The LP framework allows addressing feasibility and packing in an orthogonal manner. The separation oracle helps to find a feasible district that substantially improves the LP solution, and the randomized rounding manages packing.
The performance of the randomized rounding procedure is governed by a second-order correlation term which measures the extent to which overlapping districts interfere during rounding. Given a graph and (a collection of connected subgraphs of ), we say that has correlation ratio if , and for all and . Lemma 2 gives an approximation guarantee if we can establish any bound on . In particular, in Lemma 3 we show that if is -minor-free for some of size , then can be bounded by a function that depend solely on and . Establishing this bound yields a constant-factor approximation. The main technical difficulty is that intersecting districts may overlap in highly structured ways. Even when each district has a strong radius , a fixed district could, a priori, intersect with many other districts . A naïve charging argument could therefore lead to an blow-up.111For example, consider being a star of vertices, with each leaf intersecting distinct districts. In this case, the terms involved in the correlation sum are at least . This shows some districts will be charged for times in a naïve charging argument.
To overcome this, we exploit the structural sparsity of minor-free graphs. Specifically, an -minor-free graph has bounded degeneracy – there is an orientation of the edges such that the out-degree of any vertex is bounded by [65, 3]. Using this property, we design a probabilistic charging scheme based on a sequence of random edge orientations and contractions. For each intersecting pair , we identify a carefully structured “intersecting pivot” along a canonical path between their centers. We then show that with probability , the pair can be charged to one endpoint district in a way that ensures:
-
Each intersecting pair is charged with constant probability.
-
Each district receives only total charge.
This argument combines bounded degeneracy, controlled path contractions, and a forward-trajectory encoding that limits the number of distinct pivots that can be associated with a fixed district. The result is a constant bound on the correlation term, completing the rounding analysis. The analysis here is independent of how the LP fractional solution is computed and thus can be combined with any algorithm or implementation that produces an (approximate) fractional solution.
A similar argument extends to bounded-expansion graphs (Section 4.3), since such graphs have constant “density” everywhere and also enjoy bounded degeneracy. With a slightly modified contraction, the correlation term is bounded by a factor that depends only on the density parameter. We remark that the randomized rounding algorithm we use is fairly standard [23, 15], but the analysis of its performance is new and may find further applications.
The new analysis of randomized rounding, combined with the separation oracle for star districts in [33], immediately yields an -approximation algorithm for packing -balanced or -threshold star districts in planar, minor-free, and bounded-expansion graphs.
In order to handle districts of a general radius with , we also need to extend the separation oracle for star districts in [33] to accommodate a general radius (Appendix A). To do that, we formulate a vector-valued subset sum problem on a connected compact subgraph. Similar to the standard subset sum, we trim the solution space by keeping a succinct representation of the subsets that approximate every possible solution with a multiplicative factor and maximize a linear score. This new framework can be applied to both -balanced districts and threshold districts, as well as to a generic connected knapsack problem (see [32]). For the connected subgraph sum problem, we present an FPTAS on graphs of bounded treewidth. On a planar graph or an apex-minor-free graph, the -hop neighborhood of any center vertex has bounded treewidth [37, 11]. Thus, we can enumerate every possible center vertex and apply the separation oracle in each bounded radius- neighborhood. This provides an efficient separation oracle for planar and apex minor-free graphs.
3.2 PTAS for Apex Minor-Free Graphs (Appendix B)
Section B improves the approximation guarantee for apex-minor-free graphs using a different paradigm with two elements: the Baker’s layering approach [7] for planar and apex minor-free graphs [30] and a PTAS for subgraph packing for graphs of bounded treewidth.
We explain the main idea for planar graphs. The Baker’s approach considers a BFS from an arbitrary root and removes the vertices on the layers , for some . With a fixed , this will partition the graph into connected components, each with at most consecutive layers of the BFS. Thus, each piece is -outerplanar and thus has treewidth at most [11].
Suppose, for now, we have a magic algorithm that solves compact subgraph packing in a graph of bounded treewidth. We apply algorithm for each piece, such that all obtained districts from the connected components combined form a feasible packing solution for the original graph . If we try this for all possible values of between and , and take the maximum solution, this is a approximation to the optimal with . The reason is that in an optimal solution, only the subgraphs that are “influenced” by the removed layers are destroyed. These vertices are within hops from the removed layers since each compact subgraph has radius . By the pigeonhole principle, at least one of the candidate solutions keeps all but fraction of the optimal weight.
The central technical task is therefore to find the algorithm that solves the problem of packing compact districts on bounded-treewidth graphs. Unlike the separation oracle problem (which asks for a single feasible district), packing requires simultaneously selecting multiple disjoint connected subgraphs subject to either balancedness or threshold constraints. This introduces a significantly more complex state space.
We develop a dynamic programming scheme over a tree decomposition that encodes partial district configurations within each bag. The DP must simultaneously track the connectivity information of partially formed districts and the cumulated weight (for threshold constraints) or the weight balance (for -balanced districts). Our DP mechanism has to relax the parameter slightly (for the -balanced districts) or the weight threshold (for the threshold districts) by a factor.
4 -approximation on Planar Graphs and Beyond
4.1 Constant Ratio for Minor-Free Graphs
In this section, we briefly describe the linear programming approach for the district packing problem, together with the randomized rounding framework based on the support variables of an optimal linear program solution. The approximation guarantee of this framework relies on bounding certain second-order terms involving the support variables. In particular, throughout this section we aim to prove the following key technical Lemma 3 for minor-free graphs and Theorem 13 for bounded expansion graphs.
Lemma 3.
For all and , there exists such that the following holds. Let be an -minor-free graph with , be the collection of connected subgraphs with strong radius , and is a nonnegative weight function satisfying for all for all . Then,
Combining the above lemma with the linear programming formulation and the randomized rounding framework yields the following results.
Theorem 4.
There exists a polynomial-time algorithm that computes an -approximate solution for packing -balanced or threshold districts with bounded strong radius on planar graphs and apex-minor-free graphs.
Theorem 5.
There exists a polynomial-time algorithm that computes an -approximate solution for packing -balanced or threshold star districts on -minor-free graphs and bounded-expansion graphs.
We prove Theorem 4 and Theorem 5 at the end of this section. The high level approach of proving Lemma 3 is to partition the pairs of intersecting districts into different cases, and give the upper bound to each of the case. To start with the simplest case, we first introduce the following notions of center vertices and intersecting pivots.
Center Vertices and Intersecting Pivots.
For each district , we designate a center vertex to the district, where every vertex in is within distance from . If there are multiple choices, can be chosen arbirarily. Note that since has a strong radius at most , there is at least one center vertex in .
For each pair of districts that intersect, we further define the following terms.
Definition 6.
Let be two districts with . Let be an arbitrarily chosen (undirected) path that satisfies the following conditions:
-
1.
is a path connecting and . If then is a single vertex.
-
2.
There exists an intersecting pivot .
-
3.
The length of the subpath between and , and the length of the subpath between and are both at most .
-
4.
All vertices on the path between and are in , and all vertices on the path between and are in .
We require and .
Now, with the definition of the intersecting pivot, we are able to partition the set of intersecting district pairs into two types – an “easy” case where , or otherwise a “non-trivial” case.
For the easy case, without loss of generality, we may assume . In this case, we bound the total correlation using the primal constraints:
Therefore, it remains to bound the correlation sum for all intersecting districts , where and are all distinct vertices.
4.2 A Probabilistic Method for Challenging Case
The analysis of the easy case does not simply generalize to the non-trivial case where and are all distinct. One potentially convincing reason is that if we fix the district , all the intersecting pivots might be distinct, which implies that the sum over all intersecting districts could be as large as in the worst case.
Fortunately, one can utilize the bounded degeneracy property of -minor-free graphs for a fixed minor of size . A -degenerate graph is an undirected graph in which every subgraph has at least one vertex of degree at most . The degeneracy of a graph is the smallest value for which it is -degenerate. The following fact bounds the degeneracy of -minor-free graphs.
Lemma 7 ([65, 3]).
Let be an -minor free graph for a fixed graph of vertices, then the degeneracy of is .
With this property, we are able to design a randomized charging scheme, such that for each pair of intersecting districts , with probability , the cost will be charged to either or and simultaneously each or will be charged by at most times. This completes the proof by the standard probabilistic method. We summarize the above discussion into the following lemma, which directly leads to Lemma 3.
Lemma 8.
Let be an -minor-free graph (where has vertices) and be a set of subgraphs with strong radius . Then, there exists a randomized algorithm that takes as input, and output a list of ordered tuples , such that the following holds.
-
(1)
.
-
(2)
For each district , the set contains at most distinct vertices.
-
(3)
For any intersecting pair , with probability at least , either or , for some or some .
Before proving Lemma 8, we first show that Lemma 8 implies the correctness of Lemma 3, the main technical lemma of this section.
Proof of Lemma 3.
By item (3) in Lemma 8, we obtain the expected bound:
On the other hand, by items (1) and (2) we have
By the probabilistic method argument, there must exist a set of intersecting pairs that satisfies both inequalities, which completes the proof of Lemma 3 with .
The rest of the section devotes to proving Lemma 8. We first describe the randomized algorithm below.
The Algorithm .
The algorithm consists of two parts: in the first part, the algorithm randomly produces a sequence of minors of : via a sequence of random contractions, where is the radius/diameter constraint. In the second part, the algorithm considers each intersecting district pair , obtains some vertex , and decides if the tuple will be added to the output list and counted toward the correlation sum. Note that due to asymmetry, and are considered separately.
Part 1.
The algorithm initializes a copy of the input graph. Run the following procedure in rounds. In each round , the algorithm computes an arbitrary orientation from , where each vertex has out-degree at most . The algorithm then assigns a randomly chosen neighbor (or not choosing at all) for each vertex, denoted as the variable . Specifically, for each vertex , each out-going neighbor will be assigned to with probability , and for the remaining probability , the algorithm chooses nothing (sets ) for .
Finally, at the end of each round, the algorithm forms the (undirected) contracted graph by contracting toward all at once. The contraction naturally induces a partition of , where each part is contracted to a single vertex and there is at most one vertex in the part with . If such vertex exists, we name the contracted vertex in to be . Otherwise, we do not need this vertex anymore so they can be completely removed from . We emphasize that this naming convention is important to our analysis.
Part 2.
The algorithm computes an orientation from the latest contracted graph . For each pair of intersecting district with different from and , the algorithm checks if the following event holds:
-
The vertices are never contracted. That is, for all .
-
for all . Note that we do not restrict .
-
For every other vertex on except , whenever , we must have . In other words, if a vertex on participates in a contraction, the vertex contracts “along the path” and shortens the path.
-
There are three possible values for (contract to the left, contract to the right, or stay.) Define and to be the two vertices on closest to that are not contracted in the end, such that and . In particular, if we let .
The event requires that, if , then on the last orientation there must be a directed edge from to . (That is, swap the role of and when needed.)
-
Let be the contracted path after the last round. Note that and . Let be the neighbor of on toward . Let us define the term forward trajectory on the union of oriented graphs , where each directed edge is associated with the round index. A forward trajectory is then a path on such that the round indices is non-decreasing.
The event requires the existence of a forward trajectory from to with . If holds, the algorithm adds to the output list .
Analysis.
We verify each item in the statement of Lemma 8 as follows.
Lemma 9.
If , then .
Proof.
This is guaranteed by Item 4 of the event .
Lemma 10.
For each district the set contains at most distinct vertices.
Proof.
Each forward trajectory can be uniquely encoded with a sequence of “next round” or “go to the -th neighbor”, where the “next round” appears exactly times and the “go to” appears for at most times (this is because the radius of is at most ). So there are at most vertices of .
By Item 4 of the event , there is a directed edge going from to in the last oriented graph . This bounds the size of to be at most .
Lemma 11.
The probability of an intersecting pair appearing in the output list (in either the form or ) is at least .
Proof.
For any , , let be the contracted path of in . Let be the associated sequence of directed edges on after the orientation.
It suffices to observe that, for rounds , if the oriented sequence of edges do not belong to one of the following 9 cases, with probability at least , the path between and and the path between and will become shorter. These 9 cases are:
-
1.
-
2.
(2 cases)
-
3.
(2 cases)
-
4.
(4 cases)
By the observation, after rounds, the oriented sequence of on must be in one of the 9 cases stated above (we call them directed-minimal paths). Now, consider the last round . For each of the 9 cases, there is at least one scenario (i.e., with probability at least ) such that or holds, which completes the proof.
Proof of Lemma 8.
4.3 Bounded Expansion Graphs
While the correlation ratio is constant on -minor-free graphs (Lemma 3), it has an lower bound on general graphs [33]. This dichotomy naturally raises the question of how broadly the constant bound persists, and whether one can obtain a smooth tradeoff between these two regimes. In this subsection, we take a step in this direction by considering bounded expansion graphs [60, 61, 62] (refer Definition 1), a class that formalizes the notion of everywhere sparsity. To better demonstrate our results, we first introduce a recursively defined sequence .
Definition 12.
Let be any increasing function. Define . For each integer , define
If the context is clear we will omit and use to denote . We remark that when is a polynomial, is doubly exponential in .
Theorem 13.
Let be an -bounded expansion graph. Let be a collection of districts with a strong radius bound . Let be any feasible fractional solution for packing . Then, we have:
It is straightforward to check that (from Definition 12), whenever is a constant, despite being enormous, the approximation ratio is still a constant.
Algorithm in Lemma 8 does not directly imply Theorem 13, because in each contraction which produces from , the diameter of each contracted vertex subset is not bounded. Fortunately, with a slight tweak to algorithm , we are able to guarantee the diameter on each contraction, thereby proving Theorem 13.
Proof of Theorem 13.
The Modified Algorithm .
In each round of contraction, the algorithm first computes an acyclic orientation via the greedy ordering algorithm222The algorithm repeatedly identifies a vertex with the minimum current degree, orients all incident edges as outgoing edges, and then remove this vertex and all incident edges until the graph become empty. for computing the degeneracy . This also computes a -vertex-coloring for with colors . Then, the algorithm computes a random shuffle to the colors. Each vertex obtains a color .
The algorithm then assigns the value for each vertex with a slightly modified distribution: for each neighbor of , if , assigns with probability . Otherwise, set .
The rest of the algorithm is the same as algorithm .
The Analysis.
To complete the proof of Theorem 13, it suffices to show two statements, analogous to Lemma 10 and Lemma 11. First, we analyze contracted components’ diameter. Consider any round of contraction and any vertex . The sequence formed by successively applying has length at most on . Therefore, by induction, the diameter of each contracted component of at round for the shallow minor is at most .
Let be any intersecting pair and be a connecting path from to . To count the number of forward trajectories, we simply observe that the outdegrees for each vertex in any contracted graphs after all rounds is . Any forward trajectories takes at most steps hopping forward and steps advancing to the next round. Thus the size of in the output list can be bounded by as desired.
Suppose the contracted path at round has length at least 5. So none of the nine directed-minimal cases occur. In this case, one of the partial path between and or between and must have at least length three. There must be an edge in the oriented graph that does not invalidate the event (or ) whenever . Now, the probability that the algorithm assigns is no longer . In fact, since shuffling colors on is independent to the initial assignment to , we know that . Hence, we conclude that with probability appearing in the output list (in either form or ) is at least
and the statement follows.
Remark.
Although Theorem 13 applies to strong radius districts, it does not immediately yield an efficient algorithm for our packing problem. The main obstacle lies in algorithmically extracting a polynomial-sized support from the linear program. In particular, employing either the multiplicative weight update method or the ellipsoid method necessitates an efficient implementation of the separation oracle. However, designing such an oracle appears to be surprisingly challenging, and we currently do not have a solution, even for everywhere sparse graphs.
On the other hand, when every vertex neighborhood has bounded treewidth (as is the case for apex-minor-free graphs) an efficient implementation of the separation oracle becomes possible. In the next subsection, we present such a separation oracle.
5 Conclusion and Open Problems
In this paper, we investigated several variants of packing compact subgraphs into a larger graph under balancedness/threshold composition constraints. We extend the work of [33], who focused only star districts, by studying districts of bounded radius.
Our work provides algorithmic results for two variants of the problem. On one hand, we design an -approximation algorithm under exact -balanced and -threshold districting requirements on apex-minor-free graphs. This is done by solving a linear program and then applying the rounding framework. On the other hand, we obtain a PTAS on apex-minor-free graphs by relaxing the constraints, allowing -balancedness and threshold parameters, for any . This is achieved by dynamic programming on tree decomposition with Baker’s method.
Interestingly, we do not immediately see a clean path to get the best of the two worlds – a PTAS on apex-minor-free graphs with exact -balanced or threshold constraints. The rounding framework leaves an integrality gap, which seems very hard to overcome (as discussed in [33]).
On the other hand, for the dynamic programming approach, The main bottleneck appears to be maintaining intermediate states that encode multiple partial districts with exact composition requirements simultaneously. Our algorithm requires “state blow-up” and “trimming” procedures at each DP transition step. The trimming step maintains an invariant that specifically holds for only one partial district in the description of Equation 7. Similar to the 3-color-balancedness hardness result (Theorem 6.5 in full version), the current trimming algorithm does not extend naturally to guarantee Equation 7. Clearly, if we choose not to trim at all, the size of the state space grows exponentially with , thereby yielding an intractable algorithm.
However, this problem is not as dire as the 3-color case. One example is that we can obtain a PTAS for grid graphs by applying Baker’s idea twice: we split the grid into square subgrids and consider all possible shifts. Since each connected component has only a constant number of vertices, there is a constant-time algorithm for obtaining the optimal solution on each piece, leading to a PTAS overall. We are therefore optimistic about the following conjecture.
Conjecture 14.
There exists a PTAS for packing -balanced or -threshold districts on apex-minor-free graphs.
Efficient Separation Oracles for Various Compact Subgraph Types.
Our current rounding framework handles exact balancedness constraints only for districts of bounded strong radius. In contrast, the relaxed PTAS relies on districts of bounded weak radius.
Open Question 14.
Is the correlation ratio bounded by a constant for bounded weak-radius districts?
Beyond Apex-Minor-Free Graphs.
Our current techniques rely on dynamic programming on bounded-treewidth graphs. Extending these results to broader graph classes will likely require fundamentally new ideas. In particular, for obtaining similar approximation guarantees for broader graph classes, such as bounded-expansion graphs.
Open Question 14.
Does there exist an efficient separation oracle for bounded strong-radius districts on bounded-expansion graphs?
Graphs Parametrized by Worst-Case Correlation Ratio.
In this paper, as well as in [15, 33], we have seen rounding algorithms whose approximation guarantee is closely related to the correlation ratio. Roughly speaking, this correlation ratio describes how districts satisfying a certain composition requirement interact with one another in the worst-case vertex-weight assignment. From a purely graph-theoretical perspective, it gives a flavor of per-graph-class analysis of approximation ratios. For example, in Section 4 we have shown that in planar graphs and bounded expansion graphs have a constant worst-case correlation ratio. In [33] it shows an lower bound ratio on general graphs and a lower bound ratio on planar graphs. It is not hard to verify (using balanced separators) that on constant treedepth graphs the ratio is as well and on bounded treewidth and pathwidth graphs the ratio is , but we do not know if this polylogarithmic bound is tight. We are interested in connecting this parameter to other graph parameter and classes in a reversed way, perhaps leading to universal optimal (per-graph topology) analysis on approximation ratios. Finally, we wonder whether there are any interesting observations that can be made from the parametrization of this worst-case correlation ratio.
Open Question 14.
Are there interesting results when defining the graph classes according to the correlation ratio?
References
- [1] Nesrine Abbas and Lorna Stewart. Clustering bipartite and chordal graphs: Complexity, sequential and parallel algorithms. Discrete applied mathematics, 91(1-3):1–23, 1999.
- [2] Maxwell Allman, Itai Ashlagi, Irene Lo, Juliette Love, Katherine Mentzer, Lulabel Ruiz-Setz, and Henry O’Connell. Designing school choice for diversity in the San Francisco unified school district. In Proceedings of the 23rd ACM Conference on Economics and Computation, EC ’22, pages 290–291, New York, NY, USA, 2022. Association for Computing Machinery. doi:10.1145/3490486.3538271.
- [3] Noga Alon, Michael Krivelevich, and Benny Sudakov. Complete minors and average degree: A short proof. J. Graph Theory, 103(3):599–602, 2023. doi:10.1002/JGT.22937.
- [4] Micah Altman. Traditional districting principles: judicial myths vs. reality. Social Science History, 22(2):159–200, 1998.
- [5] Micah Altman and Michael P McDonald. Bard: Better automated redistricting. Journal of Statistical Software, 42:1–28, 2011.
- [6] Maxim Babenko and Alexey Gusakov. New exact and approximation algorithms for the star packing problem in undirected graphs. In Thomas Schwentick and Christoph Dürr, editors, 28th International Symposium on Theoretical Aspects of Computer Science (STACS 2011), volume 9 of Leibniz International Proceedings in Informatics (LIPIcs), pages 519–530, Dagstuhl, Germany, 2011. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2011.519.
- [7] Brenda S Baker. Approximation algorithms for NP-complete problems on planar graphs. J. ACM, 41(1):153–180, January 1994. doi:10.1145/174644.174650.
- [8] Assaf Bar-Natan, Lorenzo Najt, and Zachary Schutzman. The gerrymandering jumble: map projections permute districts’ compactness scores. Cartography and Geographic Information Science, 47(4):321–335, 2020.
- [9] Amariah Becker and Justin Solomon. Redistricting algorithms. In Moon Duchin and Olivia Walch, editors, Political Geometry: Rethinking Redistricting in the US with Math, Law, and Everything In Between, pages 303–340. Springer International Publishing, Cham, 2022. doi:10.1007/978-3-319-69161-9_16.
- [10] Matthias Bentert, Fedor V. Fomin, Petr A. Golovach, Tuukka Korhonen, William Lochet, Fahad Panolan, M. S. Ramanujan, Saket Saurabh, and Kirill Simonov. Packing short cycles. ACM Trans. Algorithms, 22(1):8:1–8:35, 2026. doi:10.1145/3765285.
- [11] Hans L Bodlaender. A partial -arboretum of graphs with bounded treewidth. Theor. Comput. Sci., 209(1):1–45, 1998. doi:10.1016/S0304-3975(97)00228-4.
- [12] Matteo Böhm, Adriano Fazzone, Stefano Leonardi, and Chris Schwiegelshohn. Fair clustering with multiple colors. arXiv 2002.07892.
- [13] Victor Bucarey, Fernando Ordóñez, and Enrique Bassaletti. Shape and balance in police districting. In Applications of location analysis, pages 329–347. Springer, 2015.
- [14] Alberto Caprara and Romeo Rizzi. Packing triangles in bounded degree graphs. Inf. Process. Lett., pages 175–180, 2002. doi:10.1016/S0020-0190(02)00274-0.
- [15] Timothy M. Chan and Sariel Har-Peled. Approximation algorithms for maximum independent set of pseudo-disks. Discret. Comput. Geom., 48(2):373–392, 2012. doi:10.1007/S00454-012-9417-5.
- [16] Harry Chen, Kamesh Munagala, and Govind S. Sankar. Balanced spanning tree distributions have separation fairness. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2337–2402, 2026. doi:10.1137/1.9781611978971.84.
- [17] Anshuman Chhabra, Karina Masalkovaitė, and Prasant Mohapatra. An overview of fairness in clustering. IEEE Access, pages 130698–130720, 2021. doi:10.1109/ACCESS.2021.3114099.
- [18] Flavio Chierichetti, Ravi Kumar, Silvio Lattanzi, and Sergei Vassilvitskii. Fair clustering through fairlets. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 5036–5044, 2017.
- [19] Gabriel Chuang, Oussama Hanguir, and Clifford Stein. Drawing Competitive Districts in Redistricting. In Guy N. Rothblum, editor, 5th Symposium on Foundations of Responsible Computing (FORC 2024), volume 295 of Leibniz International Proceedings in Informatics (LIPIcs), pages 7:1–7:22, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.FORC.2024.7.
- [20] Julia Chuzhoy, Merav Parter, and Zihan Tan. On packing low-diameter spanning trees. In Artur Czumaj, Anuj Dawar, and Emanuela Merelli, editors, 47th International Colloquium on Automata, Languages, and Programming, ICALP 2020, Saarbrücken, Germany (Virtual Conference), July 8-11, 2020, volume 168 of LIPIcs, pages 33:1–33:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.ICALP.2020.33.
- [21] Carmen Cirincione, Thomas A Darling, and Timothy G O’Rourke. Assessing South Carolina’s 1990s congressional districting. Political Geography, 19(2):189–211, 2000.
- [22] S Clarke and J Surkis. An operations research approach to racial desegregation of school systems. Socio-Economic Planning Sciences, 1(3):259–272, 1968.
- [23] Kenneth L. Clarkson. Applications of random sampling in computational geometry, ii. In Proceedings of the Fourth Annual Symposium on Computational Geometry, SCG ’88, pages 1–11, New York, NY, USA, 1988. Association for Computing Machinery. doi:10.1145/73393.73394.
- [24] Vincent Cohen-Addad, Philip N Klein, and Neal E Young. Balanced power diagrams for redistricting. arXiv preprint, 2017. arXiv:1710.03358.
- [25] Vincent Cohen-Addad, Philip N. Klein, and Neal E. Young. Balanced centroidal power diagrams for redistricting. In Proceedings of the 26th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, SIGSPATIAL ’18, pages 389–396, New York, NY, USA, 2018. Association for Computing Machinery. doi:10.1145/3274895.3274979.
- [26] Jessica De Silva, Brady Gales, Bryson Kagy, and David Offner. An analysis of a fair division protocol for drawing legislative districts. arXiv preprint, 2018. arXiv:1811.05705.
- [27] Daryl DeFord, Moon Duchin, and Justin Solomon. A computational approach to measuring vote elasticity and competitiveness. Statistics and Public Policy, 7(1):69–86, 2020.
- [28] Daryl DeFord, Moon Duchin, and Justin Solomon. Recombination: A family of Markov chains for redistricting. Harvard Data Science Review, 3(1):3, 2021.
- [29] Erik D. Demaine and MohammadTaghi Hajiaghayi. Equivalence of local treewidth and linear local treewidth and its algorithmic applications. In Proceedings of the Fifteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’04, pages 840–849, USA, 2004. Society for Industrial and Applied Mathematics.
- [30] Erik D Demaine, MohammadTaghi Hajiaghayi, and Ken-ichi Kawarabayashi. Algorithmic graph minor theory: Decomposition, approximation, and coloring. In 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS’05), pages 637–646. IEEE, 2005.
- [31] Erik D. Demaine, Felix Reidl, Peter Rossmanith, Fernando Sánchez Villaamil, Somnath Sikdar, and Blair D. Sullivan. Structural sparsity of complex networks: Bounded expansion in random models and real-world graphs. Journal of Computer and System Sciences, 105:199–241, 2019. doi:10.1016/j.jcss.2019.05.004.
- [32] Palash Dey, Sudeshna Kolay, and Sipra Singh. Knapsack: Connectedness, path, and shortest-path. In Lecture Notes in Computer Science, Lecture notes in computer science, pages 162–176, Cham, 2024. Springer Nature Switzerland. doi:10.1007/978-3-031-55601-2_11.
- [33] Prathamesh Dharangutte, Jie Gao, Shang-En Huang, and Fang-Yi Yu. Hardness and approximation algorithms for balanced districting problems. In Mark Bun, editor, 6th Symposium on Foundations of Responsible Computing, FORC 2025, Stanford University, CA, USA, June 4-6, 2025, LIPIcs, pages 4:1–4:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.FORC.2025.4.
- [34] Riccardo Dondi and Manuel Lafond. On the tractability of covering a graph with 2-clubs. Algorithmica, 85(4):992–1028, 2023. doi:10.1007/S00453-022-01062-3.
- [35] Riccardo Dondi, Giancarlo Mauri, Florian Sikora, and Italo Zoppis. Covering a graph with clubs. J. Graph Algorithms Appl., 23(2):271–292, 2019. doi:10.7155/JGAA.00491.
- [36] Riccardo Dondi, Giancarlo Mauri, and Italo Zoppis. On the tractability of finding disjoint clubs in a network. Theoretical Computer Science, 777:243–251, 2019. doi:10.1016/J.TCS.2019.03.045.
- [37] David Eppstein. Diameter and treewidth in minor-closed graph families. Algorithmica, 27(3):275–291, June 2000. doi:10.1007/S004530010020.
- [38] Allen D Franklin and Ernest Koenigsberg. Computed school assignments in a large district. Operations Research, 21(2):413–426, 1973. doi:10.1287/OPRE.21.2.413.
- [39] Roland G Fryer Jr and Richard Holden. Measuring the compactness of political districting plans. The Journal of Law and Economics, 54(3):493–535, 2011.
- [40] Nabeel Gillani, Doug Beeferman, Christine Vega-Pourheydarian, Cassandra Overney, Pascal Van Hentenryck, and Deb Roy. Redrawing attendance boundaries to promote racial and ethnic diversity in elementary schools. Educational Researcher, 52(6):348–364, 2023.
- [41] J Gerald Hebert. The Realist’s Guide to Redistricting: Avoiding the Legal Pitfalls. American Bar Association, 2010.
- [42] Pavol Hell and David Kirkpatrick. Packings by cliques and by finite families of graphs. Discrete Math., 49(1):45–59, March 1984. doi:10.1016/0012-365X(84)90150-X.
- [43] Pavol Hell and David Kirkpatrick. Packings by complete bipartite graphs. SIAM J. Algebr. Discrete Methods, pages 199–209, 1986.
- [44] Pavol Hell, David Kirkpatrick, Jan Kratochvíl, and Igor Kříž. On restricted two-factors. SIAM J. Discrete Math., pages 472–484, 1988.
- [45] Sidney Wayne Hess, JB Weaver, HJ Siegfeldt, JN Whelan, and PA Zitlau. Nonpartisan political redistricting by computer. Operations Research, 13(6):998–1006, 1965.
- [46] Ian Holyer. The NP-completeness of some edge-partition problems. SIAM J. Comput., pages 713–717, 1981. doi:10.1137/0210054.
- [47] Chien-Chung Huang, Mathieu Mari, Claire Mathieu, Kevin Schewior, and Jens Vygen. An approximation algorithm for fully planar edge-disjoint paths. SIAM J. Discrete Math., 35(2):752–769, January 2021. doi:10.1137/20M1319401.
- [48] Matt Jacobs and Olivia Walch. A partial differential equations approach to defeating partisan gerrymandering. arXiv preprint, 2018. arXiv:1806.07725.
- [49] Xinrui Jia, Kshiteej Sheth, and Ola Svensson. Fair colorful -center clustering. In Integer Programming and Combinatorial Optimization, pages 209–222. Springer International Publishing, 2020. doi:10.1007/978-3-030-45771-6_17.
- [50] Hai Jin. Spatial optimization methods and system for redistricting problems. PhD thesis, University of South Carolina, 2017.
- [51] Jörg Kalcsics, Stefan Nickel, and Michael Schröder. Towards a unified territorial design approach—applications, algorithms and GIS integration. Top, 13:1–56, 2005.
- [52] Alexander K Kelmans. Optimal packing of induced stars in a graph. Discrete Math., 173(1):97–127, 1997. doi:10.1016/S0012-365X(96)00121-5.
- [53] Myung Jin Kim. Optimization approaches to political redistricting problems. PhD thesis, The Ohio State University, 2011.
- [54] Zeph Landau, Oneil Reid, and Ilona Yershov. A fair division solution to the problem of redistricting. Social Choice and Welfare, 32(3):479–492, 2009. doi:10.1007/S00355-008-0336-6.
- [55] Shoham Letzter, Abhishek Methuku, and Benny Sudakov. Packing subgraphs in regular graphs, 2026. arXiv:2509.26180.
- [56] Mengya Li and Wensong Lin. On star family packing of graphs. RAIRO Oper. Res., pages 2129–2140, 2021. doi:10.1051/RO/2021096.
- [57] Martin Loebl and Svatopluk Poljak. Efficient subgraph packing. J. Combin. Theory Ser. B, pages 106–121, 1993.
- [58] Angelo Monti and Blerina Sinaimeri. Disjoint covering of bipartite graphs with s-clubs. In Rastislav Královic and Vera Kurková, editors, SOFSEM 2025: Theory and Practice of Computer Science - 50th International Conference on Current Trends in Theory and Practice of Computer Science, SOFSEM 2025, Bratislava, Slovak Republic, January 20-23, 2025, Proceedings, Part II, volume 15539 of Lecture Notes in Computer Science, pages 198–210. Springer, 2025. doi:10.1007/978-3-031-82697-9_15.
- [59] Elle Najt, Daryl DeFord, and Justin Solomon. Complexity and geometry of sampling connected graph partitions. arXiv preprint, 2019. arXiv:1908.08881.
- [60] Jaroslav Nešetřil and Patrice Ossona de Mendez. Grad and classes with bounded expansion I. decompositions. Eur. J. Comb., pages 760–776, 2008.
- [61] Jaroslav Nešetřil and Patrice Ossona de Mendez. Grad and classes with bounded expansion II. algorithmic aspects. Eur. J. Comb., pages 777–791, 2008.
- [62] Jaroslav Nešetřil and Patrice Ossona de Mendez. Grad and classes with bounded expansion III. restricted graph homomorphism dualities. Eur. J. Comb., pages 1012–1024, 2008.
- [63] Qi Ning. On the star packing problem. Ann. N. Y. Acad. Sci., 576(1):411–416, December 1989.
- [64] Wesley Pegden, Ariel D Procaccia, and Dingli Yu. A partisan districting protocol with provably nonpartisan outcomes. arXiv preprint, 2017. arXiv:1710.08781.
- [65] Andrew Thomason. The extremal function for complete minors. J. Comb. Theory B, 81(2):318–338, 2001. doi:10.1006/JCTB.2000.2013.
- [66] Santiago Valdés Ravelo and Flávio K. Miyazawa. Packing sets of paths, stars and triangles: Tractability and approximability. In Daya Gaur and Rogers Mathew, editors, Algorithms and Discrete Applied Mathematics, pages 247–257, Cham, 2025. Springer Nature Switzerland.
- [67] James B Weaver and Sidney W Hess. A procedure for nonpartisan districting: Development of computer techiques. Yale Law Journal, 73(2):288–308, 1963.
- [68] Wenying Xi, Wensong Lin, and Yuquan Lin. Packing 2- and 3-stars into cubic graphs. Appl. Math. Comput., 460(128287):128287, January 2024. doi:10.1016/J.AMC.2023.128287.
- [69] Jack Zhang, Lucas Silveira, Hamidreza Validi, Logan Smith, Austin Buchanan, and Illya V Hicks. Partitioning a graph into low-diameter clusters, 2024.
Appendix A Separation Oracle for Districts of Bounded Radius
Here, we outline how to implement separation oracles to search for a weakly violating connected subgraph. The main idea is to formulate the problem as a vector-valued connected subgraph sum problem where each vertex has a vector that captures its objective weight, features, and dual variables. The proofs are deferred to the full version.
Given an undirected graph where each node has a vector-valued weight , the Connected Subgraph Sum problem defines the set of all possible total weights achievable by a connected and compact subgraphs of :
| (5) |
We define the set of feasible weight vectors only based on the topological constraints (connectivity and compactness). The composition constraints (e.g., balancedness or thresholds) are encoded in the vector values and handled subsequently via the linear score function and the domination idea.
As the set can be exponentially large, explicitly computing and verifying composition constraints in Equation 5 is infeasible. Instead, we propose the -Trimmed Connected Subgraph Sum problem. This seeks a succinct subset that approximates every feasible weight vector multiplicatively, while maximizing a specific linear score , which encodes the necessary information to satisfy the composition requirements.
-Trimmed Connected Subgraph Sum
Input: A graph with a vector-valued weight function , an error parameter , and a linear function .
Goal: Compute a subset such that and is an -trimming of . That is, for every , there exists a representative satisfying:
| (6) | ||||
| (7) |
We say that -approximates if condition (6) holds, and that -dominates if condition (7) holds. Crucially, this problem is computationally tractable on graphs of bounded treewidth. The main result of this section is an FPTAS for the trimmed connected subgraph sum problem, which serves as the tool for our separation oracles.
Lemma 15.
Given , a radius bound , vector-valued weights , an error parameter , and a linear function , there is an algorithm for -trimmed connected subgraph sum with strong radius bound that has running time
where is the number of vertices and is the treewidth of , and .
Armed with this efficient algorithm, we now demonstrate how the separation oracles for our districting problems can be reduced to instances of the trimmed connected subgraph sum problem.
Lemma 16 (Separation Oracle for -Balanced Districts).
Consider the -balanced districting problem where each vertex has an objective weight and feature weights . The separation oracle seeks a district maximizing objective weight subject to the balance condition and a violated dual constraint so that
This can be reduced to solving two instances of the trimmed connected subgraph sum problem. We define the vector-valued weight as and use the linear functions:
By finding an -trimmed and -trimmed subset, we can identify a weakly violating district that satisfies , approximates the optimal weight , and satisfies the balance condition Equation 1.
Lemma 17 (Separation Oracle for Threshold Districts).
Consider the -threshold districting problem with objective weight and feature weight subject to . The separation oracle additionally has a dual variable and seeks a district maximizing objective weight subject to the threshold and dual constraints.
We can reduce this to solving the trimmed connected subgraph sum problem with vector weights and the linear function . The resulting set allows us to compute a weakly violating district satisfying , approximate objective weight , and the -threshold constraint.
Example 18 (Connected Knapsack Problem [32]).
Given a graph , where each vertex has a value and a cost , and a global budget , the goal is to find a connected subgraph maximizing subject to . This is exactly recovered by setting and solving for the appropriate approximation with .
Proofs to Theorem 4 and Theorem 5
Finally, we conclude this section by describing how to apply separation oracles provided in the previous section. In particular, the new separation oracle leads to -approximation algorithms for bounded strong radius districts on apex-minor-free graphs.
Proof of Theorem 4.
To apply Lemma 15 (with the reduction adapted from Lemma 16 on and Lemma 17 on ) in the separation oracle, the algorithm enumerates all vertices as centers and considers the subgraph induced by vertices within distance of . As is apex-minor-free, each such subgraph has bounded treewidth, which makes Lemma 15 applicable, and therefore the theorem follows.
Proof of Theorem 5.
We adopt the implementation of the separation oracle from [33], enumerating each vertex as a star center and invoking an approximate knapsack algorithm. The theorem follows from combining the analysis of Section 4.3.
Appendix B PTAS for -Relaxed Districting on Apex-Minor-Free Graphs
In this section, we show that allowing relaxation to the composition requirements helps us obtain PTAS to the districting problem on bounded treewidth graphs. Combining this with the standard Baker’s approach [7], we obtain PTAS for -relaxed districting on planar and apex minor-free graphs.
Theorem 19.
There exists a polynomial-time algorithm that computes an -approximate solution for packing -relaxed -balanced or threshold districts with bounded strong or weak radius on planar graphs and apex-minor-free graphs.
We first state the result that obtains a -approximate solution for packing -relaxed districts on bounded treewidth graphs. The proof employs dynamic programming, combining Lemma 15 with the techniques of [33] (see Appendix B in full version).
Lemma 20.
There exists a polynomial-time algorithm that computes an -approximate solution for packing -relaxed -balanced or -threshold districts with bounded strong or weak radius on graphs of bounded treewidth.
Using Lemma 20 as a black box, we prove the main result for -relaxed districting.
Proof of Theorem 19.
The algorithm is as follows. Start with an arbitrary vertex as the root and construct a BFS tree and let be the level which are vertices at hop distance from . Now, for an integer , and shift , remove vertices in level , and let be the induced graph on remaining vertices. Notice that each connected component in is fully contained in some consecutive levels of the BFS tree. For planar or apex-minor-free , note that each connected component in now has bounded treewidth [37] (specifically, ). Use the algorithm from Lemma 20 with parameter and solve the problem on each connected component separately and let the union of these solutions for a fixed be . Since districts cannot use vertices from different levels, taking union gives us a valid districting. Return the solution with largest weight across all .
Now, we show that setting suffices. Let be the optimal solution on with . A radius district in is valid in some connected component in if no vertex in the district (or the path considered by the optimal solution for weak radius setting) lies in the deleted levels. Hence, for at most different shifts ( values), this particular district (or the path from the center vertex to some vertex in the district) is not valid. Now, for shift , let be the set of districts from that intersect with some deleted layer. The optimal districting in has weight . Now consider the total weight lost across different shifts. We have
By pigeonhole principle, for , there is some such that
As a result, for this particular shift , the optimal districting in has weight at least . Combining this with approximation on (Lemma 20), we have that the solution has weight at least .
Appendix C Hardness Results
In this section we prove our hardness results. Note that the hardness for maximum packing of -balanced districts were shown in [33]. Here, we show the hardness of packing under the weight threshold condition.
Hardness of Packing Compact Subgraphs with Weight Threshold
Theorem 21.
The -threshold districting problem with (weak or strong) radius- bounded districts is NP-hard when is a tree.
Proof.
We first focus on star districts and show a reduction from the Knapsack Problem. Given a knapsack problem with items, where item has weight and utility , we want to select items such that utility is at least , and minimize the total weight of the selected one. This is the dual version of the standard knapsack problem which fixes the cap of the total weight and maximizes utility, and is still NP-hard. Without loss of generality, we can assume that and . This can be achieved by scaling up all utility values and the utility goal and scale down the weights. It does not change the problem structure.
Now we describe the instance for the districting problem. Consider a tree rooted at with children of as corresponding to the items. Let , and . Node has two children and . Define , , . Further, we add a separate neighbor/child of with . This is detailed in Figure 1.
Now we consider what are the possible candidate districts that have a total weight at least . First we can define a district centered at , including and some set of vertices in . The population of and is , so we must include additional vertices from to gain additional population of at least . On the other hand, we can also define a district centered at , which includes (and possibly ). However, we cannot have both a district centered at including and a district centered at , as we want disjoint districts. If is included in the district at , then we can still define a district with a solo vertex (of population ), but cannot be included in any district.
Thus the main decision to make is whether we can include a district centered at or not. To do so, we select a subset of vertices in which has a total weight at least . For these ones selected, the corresponding vertices will not be included anywhere – causing a loss of from the potential districts centered at . However, since , it would always be more beneficial to create a district at whenever possible. Specifically, the total coverage of the two cases is
-
If we do not have a district in , the optimal solution is . In the above, the comes from some district at that can include .
-
If we do include a district in , which includes and a subset of vertices , then the solution is .
In other words, the best solution is to try to include a district at and the set of children included identifies the items that have the smallest total weight yet have utility to be at least . Notice that this is precisely the optimal solution for the knapsack problem. Next, we note that the same reduction extends to radius- districts, for any fixed , by replacing every edge of the above tree by a path of length exactly , and assigning weight to all newly introduced subdivision vertices. The resulting graph is still a tree, and all original districts retain the same weights. The same proof goes through by noting that on a tree, the weak-radius and strong-radius notions are equivalent for connected districts.
Next, we show hardness for general graphs.
Theorem 22.
The -threshold districting problem with (weak or strong) radius- bounded districts is NP-hard when is a bounded degree graph or a planar graph. Moreover, on general graphs, it is NP-hard to approximate better than for any . The results hold even when each subgraph is required to be a star (radius ).
Proof.
We show hardness and hardness of approximation for by using the same reduction from maximum independent set as in [33]. Specifically, given a graph , the maximum independent set problem finds a subset of vertices with maximum cardinality such that no vertices in have edges between them. We now construct a graph that starts with . For each edge in , split it into two edges in – create a new vertex which connects to and and remove the edge . In addition, suppose the maximum degree in is . For a vertex in (corresponding to a vertex in ) whose degree is less than , create additional neighbors (called filler nodes). We then set for each vertex in , and . Without loss of generality, we can assume that and thus . This means that any district with weight at least in must be at a vertex which corresponds to vertices in . Further, this district will need to use all neighbors in order to have enough total weight. This means that any two districts in cannot have their centers to be adjacent in . Thus any independent set in can be translated to a collection star districts in , with each district centered on a vertex in with all its neighbors. Similarly, any districting solution will produce a set of vertices in that are independent. The total weight of the optimal districting problem of is where is the maximum independent set in . Similar to the argument in [33], since maximum independent set cannot be approximated by a factor of for any , this means that our districting problem cannot be approximated better than in a general graph for any , unless . Further, it is -hard to solve the districting problem for graphs of bounded degree or on planar graphs, since the maximum independent set for these graphs remains -hard.
To extend the hardness for radius- districts, we simply replace the edges we add in constructing with paths of length . So, instead of connecting and with a single edge, we connect them with a path of length (i.e., with new vertices on the path from to ). We do the same for and and for each vertex with their respective filler neighbors. We set . A valid district must be centered at a vertex corresponding to vertices in the original graph and include paths from , each of length . Following the same arguments completes the proof.
Remark 23.
The reduction in Theorem 22 also works for the relaxed version of -threshold districting. This is because for fixed and radius- districts, we can always choose such that , which forces the -threshold districts to be the exact same as described in the proof.
