Computing Maximum Cliques in Unit Disk Graphs

Anastasiia Tkachenko, Haitao Wang · DOI

Abstract

Finding the maximum clique in unit-disk graphs (UDGs) is a fundamental problem in computational geometry with applications in wireless network modeling. While polynomial-time algorithms exist, previous approaches were relatively slow. This paper introduces a grid-based decomposition that localizes the search, leading to a general-case complexity of $O(n \log n + nK^{4/3+o(1)})$. For points in convex position, the authors leverage geometric properties and randomized sampling to achieve a sub-quadratic complexity of $O(n^{2.143})$.

Introduction

The Maximum Clique Problem involves finding the largest subset of vertices in a graph where every vertex is connected to every other vertex. Although NP-hard for general graphs, it is solvable in polynomial time for Unit-Disk Graphs (UDGs). In a UDG, vertices are points in a 2D plane, and an edge exists between two points if their Euclidean distance is at most 1. Such graphs are essential for modeling wireless networks with fixed transmission ranges.

Despite being tractable, previous algorithms for UDGs were slow, with the best prior result being approximately $O(n^{2.33})$. This paper aims to break this sub-cubic barrier, particularly when the maximum clique size $K$ is small relative to the total number of points $n$.

General Case: Grid-Based Localization

The authors propose a grid-based decomposition to improve efficiency. By imposing a grid with cells of side length $1/2$, they ensure that the diameter of any cell is less than 1. Consequently, all points within a single cell automatically form a clique.

Grid decomposition for localizing cliques.

The algorithm demonstrates that any maximum clique must reside within a small neighborhood of grid cells. By solving the problem locally for these neighborhoods and employing a "decision-to-optimization" search (using exponential and binary search), the runtime scales with the clique size $K$ rather than the total number of points $n$. This approach yields a complexity of $O(n \log n + nK^{4/3+o(1)})$.

Convex Position: Randomization and Geometric Constraints

When points are in convex position—forming the vertices of a convex polygon—the problem exhibits additional structure that can be exploited.

Deterministic and Randomized Strategies

If a single point $p^*$ belonging to the maximum clique is known, the authors use a "moving lens" technique. This involves rotating a geometric lens around the points and maintaining the maximum clique using a dynamic data structure in $O(n^2 \log n)$ time.

Geometric constraints for points in convex position.

For cases where no point is known, a hybrid randomized strategy is used. If the clique is small, the general grid-based algorithm is applied. If the clique is large, random sampling is used. Because a large clique contains a significant portion of the points, a random sample has a high probability of hitting a member of the clique. Running the "known point" algorithm on these samples results in a randomized complexity of $O(n^{15/7+o(1)}) \approx O(n^{2.143})$.

Key Insights

  • Localization: Grid decomposition bounds the search to $O(1)$ neighboring cells, reducing the problem size for the most expensive computations from $n$ to $O(K)$.
  • Convexity and Cobipartite Graphs: Points in convex position allow the problem to be treated as finding a maximum matching in a bipartite graph (via the complement graph), which is computationally easier.
  • Sampling Efficiency: Large cliques are easier to find via random sampling, while small cliques are handled efficiently by the localized grid search.

Conclusion

This work significantly improves the state-of-the-art for the Maximum Clique Problem in UDGs. While the results for the convex case are randomized, they provide a strong foundation for future deterministic improvements. Extending these techniques to 3D unit-ball graphs remains a significant challenge due to the loss of certain 2D geometric properties.

Summary updated

BibTeX
@inproceedings{tkachenko2025computing,
  author = {Anastasiia Tkachenko and Haitao Wang},
  title = {{Computing Maximum Cliques in Unit Disk Graphs}},
  booktitle = {CCCG},
  year = {2025},
}
Figure