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

Independent Sets of Dynamic Rectangles: Algorithms and Experiments

Sujoy Bhore, Guangping Li, Martin NöllenburgarXiv 2020 · OpenReview

Abstract

Map labeling is a classical problem in cartography and geographic information systems (GIS) that asks to place labels for area, line, and point features, with the goal to select and place the maximum number of independent, i.e., overlap-free, labels. A practically interesting case is point labeling with axis-parallel rectangular labels of common size. In a fully dynamic setting, at each time step, either a new label appears or an existing label disappears. Then, the challenge is to maintain a maximum cardinality subset of pairwise independent labels with sub-linear update time. Motivated by this, we study the maximal independent set (MIS) and maximum independent set (Max-IS) problems on fully dynamic (insertion/deletion model) sets of axis-parallel rectangles of two types -- (i) uniform height and width and (ii) uniform height and arbitrary width. We present the first deterministic algorithm for maintaining an MIS of a dynamic set of uniform rectangles with polylogarithmic update time, breaking the natural $\Omega(\Delta)$ update time barrier. We also provide a series of deterministic dynamic approximation schemes with factors between 2 and 4 and corresponding running-time trade-offs.

Introduction

In cartography and GIS, "map labeling" involves placing text or icons so they don't overlap. Mathematically, this is the Maximum Independent Set (Max-IS) problem on rectangle intersection graphs. While well-studied in static contexts, modern applications like interactive maps or social media feeds require a fully dynamic setting: labels appear and disappear in real-time.

The challenge is maintaining a large, overlap-free set of labels without recomputing everything from zero at every step. Previous dynamic algorithms often hit a "degree barrier," where the time to update a solution depended on how many other rectangles overlapped with the new one. This paper seeks to break that barrier using geometric insights.

Methodology

The authors propose several deterministic algorithms tailored to different rectangle types. The core innovation is the use of geometric data structures instead of traditional graph-based approaches.

  1. Dynamic MIS for Uniform Squares: By using a dynamic orthogonal range searching data structure (specifically range trees with fractional cascading), the algorithm maintains a Maximal Independent Set (MIS). This allows bypassing the explicit construction of an intersection graph, achieving an update time of $O(\log n \log \log n)$.
  2. Grid-Based Approximations: For uniform squares, they provide a 4-approximation algorithm with $O(1)$ update time by partitioning the plane into a grid and selecting at most one square per grid point.
  3. Shifting Technique: They generalize the grid approach to a $2(1 + 1/k)$-approximation with $O(k^2 \log n)$ update time, allowing a tunable trade-off between speed and solution quality.
  4. Stabbing-Line Algorithm: For rectangles with uniform height but arbitrary width, they use a "stabbing line" approach combined with augmented binary search trees to maintain a 2-approximation in $O(\log^2 n + \omega \log n)$ time.
  5. Greedy Augmentation: A practical heuristic where "discarded" rectangles are greedily added back into the "white space" left by the approximation schemes to boost solution size in practice.
Geometric partitioning and hierarchical structures used to maintain a Maximal Independent Set (MIS) in dynamic environments.

Key Insights and Results

The "aha moment" of this research is that explicitly storing the intersection graph is a bottleneck. By using range-searching structures, the algorithm only "looks" at the local geometry, as illustrated in the hierarchical partitioning of regions. This allows it to handle high-density areas much faster than a graph-based neighbor search.

Experimental Evaluation

The algorithms were evaluated on synthetic (Gaussian and Uniform) and real-world datasets (OpenStreetMap features from Switzerland and Austria). Key findings include:

  • Massive Speedups: Compared to static re-computation, the dynamic approaches are 3 to 4 orders of magnitude faster for instances with 32,000 rectangles.
  • Efficiency: The MIS-ORS algorithm maintained update times under 1ms for up to 32,000 squares, whereas graph-based baselines slowed down significantly as density increased.
  • Quality vs. Time: While theoretical approximation ratios are 2x or 4x, empirical results show the algorithms consistently achieve ~90% of the optimal solution size on real-world data, especially when combined with greedy augmentation.

Conclusion

This work provides the first deterministic algorithms for maintaining non-overlapping sets of rectangles in a fully dynamic environment with polylogarithmic update times. While the paper focuses on the size of the set and update speed, future research may address "stability" (minimizing label flickering) and extending these dynamic geometric techniques to other shapes, such as disks or complex polygons.

Summary updated

BibTeX
@misc{bhore2020independent,
  author = {Sujoy Bhore and Guangping Li and Martin Nöllenburg},
  title = {{Independent Sets of Dynamic Rectangles: Algorithms and Experiments}},
  year = {2020},
  eprint = {2002.07611},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07611},
}
Figure