NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the computational tractability of a geographic clustering problem arising in redistricting

Vincent Cohen-Addad, Philip N. Klein, Dániel Marx

Introduction

Redistricting—the process of partitioning a geographic area into $k$ districts—is a high-stakes task at the intersection of politics and mathematics. To prevent gerrymandering, districts are typically required to satisfy three primary criteria: contiguity (each district must be a single connected component), population balance (districts must have roughly equal populations), and compactness. Compactness is often mathematically defined by minimizing the number of "cut edges," which are the boundaries shared between different districts.

Theoretical Complexity and the Population Constraint

While heuristic methods like Markov Chain Monte Carlo (MCMC) are commonly used to sample potential redistricting plans, they often lack theoretical guarantees regarding uniform sampling or optimality. This research investigates whether exact algorithms can be developed for maps with relatively simple structures, such as those with low branchwidth (a measure of how "tree-like" or narrow a graph is).

The study reveals a significant theoretical hurdle: the requirement for perfect population balance makes the redistricting problem $W[1]$-hard, even on graphs that are nearly tree-like. This hardness result, derived via a reduction from the Bin Packing problem, suggests that the difficulty of the problem cannot be entirely decoupled from the total number of regions in the map. Specifically, the problem is not Fixed-Parameter Tractable (FPT) with respect to the number of districts ($k$) and the map's branchwidth ($w$) combined.

Algorithmic Framework

To address these challenges, the authors propose a dynamic programming (DP) approach tailored for planar graphs. The map is first modeled as a planar graph where vertices represent "atomic regions" (such as census blocks) and edges represent shared boundaries.

Dual graph representation of a map.

The algorithm utilizes sphere-cut decompositions to break the planar map into nested clusters. To efficiently manage the population balance constraint within the DP state, the authors represent district populations as exponents in multivariate polynomials and employ the Fast Fourier Transform (FFT) to accelerate the combination of sub-problems. This results in an algorithmic bound of $O(c^w n^{k+2} \log n)$ for cases with unit weights.

Illustration of cut edges in the dual graph.

Practical Implications and Results

Despite the pessimistic $W[1]$-hardness result for large $k$, the research identifies a "small-$k$ silver lining." For many real-world applications, such as US states with fewer than six representatives, the $O(n^{k+1})$ complexity remains computationally tractable.

The authors demonstrate the feasibility of their approach using the Sarthe department of France as a motivating example. With 21 cantons to be divided into three districts and a branchwidth of 6, the map serves as an ideal candidate for the proposed DP algorithm. The findings suggest that for maps with moderate diameters and a small number of districts, this method provides a provably correct mechanism for finding optimal or random redistricting plans.

Conclusion

This work clarifies the computational limits of redistricting by identifying population balance as a primary source of intractability. While the problem remains theoretically hard in the general case, the developed dynamic programming framework offers a robust solution for small-scale redistricting tasks, providing the mathematical guarantees that heuristic methods often lack.

Summary updated

BibTeX
@inproceedings{cohenaddad2021computational,
  author = {Vincent Cohen-Addad and Philip N. Klein and Dániel Marx},
  title = {{On the computational tractability of a geographic clustering problem arising in redistricting}},
  booktitle = {FORC},
  year = {2021},
  doi = {10.4230/lipics.forc.2021.3},
}
Figure