arXiv:2610.24339cs.DSOct 2026

Manuscript Offprint

arXiv:2610.24339

Near-Linear Time Maximum Clique in Circular Arc Graphs

Dario Moschetti, Adam Polak, Jonas Schmidt

Abstract

We present a near-linear time algorithm to find a maximum clique in circular arc graphs, the intersection graphs of arcs on the circumference of a circle, answering a 30-year-old open question posed by Bhattacharya and Kaller [J. Algorithms 1997] and Tiskin [CPM 2006]. Our algorithm runs in time O(nlog⁡2n)O(n \log^2 n), given nn circular arcs, where the graph is implicit. Previous approaches take at least quadratic time (unless the implicitly given graph is sparse). To overcome the quadratic barrier, we solve (structured and related) instances of bipartite matching by interpreting them as a single, offline 2D dominance problem, which in turn we model as a shortest paths problem in a planar grid graph. This allows for the final step, which builds on the theory of Monge matrices to obtain sparse representation and efficient distance computations in the grid graph.

Additionally, we provide an observation about the structure of circular arc cliques that leads to an algorithm for the weighted version of the problem with a new parameter, the minimum load dd, which we define as the minimum, over all points on the circle, of the number of arcs containing that point. The algorithm runs in time O(dnlog⁡log⁡n+nlog⁡n)O(dn \log \log n + n \log n). This is always at least as good as the previous best maximum weight clique algorithm, which runs in time O(mlog⁡log⁡n+nlog⁡n)O(m \log \log n + n \log n), where mm denotes the number of edges in the implicit intersection graph, because the minimum load satisfies d≤2m/nd \leq 2m/n.

The high level concepts behind our main algorithm for circular arc graphs also apply to a related graph class, interval filament graphs, which leads to an improved, randomized O(nω)O(n^{\omega})-time algorithm for maximum clique, where ω<2.372\omega < 2.372 is the matrix multiplication exponent. Last, we provide a quadratic fine-grained lower bound, conditional on the Orthogonal Vectors Hypothesis, which even applies to co-comparability graphs, a subclass of interval filament graphs.

1 Introduction

Finding a maximum size clique in a graph is one of the most classical problems in theoretical computer science and belongs to Karp's list of 21 NP-complete problems [Kar72]. That is why people study whether the maximum clique problem remains hard on restricted graph classes. One family of graph classes particularly studied in this context are geometric intersection graphs, that is, graphs where every vertex corresponds to a region in a geometric space and two vertices are connected if and only if their corresponding regions intersect. A lot of previous work has already identified geometric objects for which maximum clique remains NP-hard, such as straight line segments in the plane [CCL13], and many others where it becomes polynomial time solvable, such as axis-aligned rectangles in the plane [IA83] or chords inside a circle [Gav73, Tis06, Tis15]. It is common to assume that the input is presented as n geometric objects and the graph is implicit.

One such famous graph class where the maximum clique problem is particularly easy to solve is the class of interval graphs, where vertices correspond to intervals on the real number line. Finding a maximum clique in interval graphs is even a common coding interview question: It can be solved in time O(nlog⁡n)O(n \log n) by a simple sweep-line approach that maintains the set of active intervals. One of these sets must form a maximum clique. A fundamental reason for why this simple algorithm works is that intervals satisfy the Helly property. In the language of geometric intersection graphs, the Helly property asserts that any set of vertices forming a clique must share a common point in the geometric model. Intuitively, this restricts the maximum clique to a polynomial—or in case of interval graphs linear—number of candidates, which can be easily constructed and compared in size. The same observation, with slightly more algorithmic effort, leads to a near-linear time algorithm for the intersection graph of rectangles in the plane [IA83].

What about geometric objects where the Helly property fails? Arguably the simplest generalization of interval graphs that no longer satisfies the Helly property are circular arc graphs, where vertices correspond to arcs on the circumference of a circle instead of intervals on the line. These do not satisfy the Helly property because the arcs of a clique can wrap around the circle and meet on the other side instead of in a single common point. Circular arc graphs have been studied for a variety of algorithmic problems [GJMP80, Hsu85, AH87, SH89, HT91, SCH92, BK97, McC03], and they naturally model periodic scheduling tasks and other applications, see, e.g., [Gol80].

After a line of improvements from the initial O(nm)O(nm) running time [Hsu85, AH87, SH89], the best known algorithm for maximum clique in circular arc graphs is from the 1990s due to Bhattacharya and Kaller [BK97] and runs in time O(m+nlog⁡n)O(m+n\log n), where m is the number of edges in the implicitly given graph. While a notable improvement, the latter running time still degrades to n2n^2 in dense graphs, i.e., when each circular arc overlaps on average with at least a constant fraction of other arcs.

This raises the natural question of whether the running time could be improved when measuring the time just in terms of n, the number of arcs. Bhattacharya and Kaller [BK97] specifically ask if an improved algorithm could lead to a running time of O(nlog⁡n)O(n \log n). In the 30 years since their paper, no new algorithms for maximum clique in circular arc graphs have been developed. The problem of improving the running time, however, was repeated in a 2006 paper by Tiskin [Tis06], which studies cliques in intersection graphs of chords inside a circle.

References (36)