Skip to content

Graph k-Coloring in Average Sublinear Time

Cassandra Marcussen, Edward Pyne, Ronitt Rubinfeld, Asaf Shapira, Shlomo Tauber

cs.DS

Abstract

Graph kk-coloring is one of the classic NP-complete problems. Previous work has studied its average time complexity, defined to be the average runtime of computing a kk-coloring over the set of all kk-colorable graphs on nn vertices. A highly influential result of Dyer-Frieze from 1989 gave an algorithm with O(n2)O(n^2) average runtime for constant kk. This quadratic runtime appeared natural (and possibly even optimal) since almost all kk-colorable graphs have Θ(n2)Θ(n^2) edges, so one needs at least this time in order to read the (entire) input. However, this was later improved by Kučera in 1995 to average runtime O(n2/k)O(n^2/k) for every k≤nck \leq n^{c} where c∈(0,1)c \in (0, 1). Nevertheless, in the most interesting case of k=O(1)k = O(1), the best-known bound remained quadratic in nn. The true average complexity of the kk-coloring problem has remained elusive for the last three decades. We break the longstanding quadratic barrier. Our main result in this paper shows that the exact average-case complexity of this fundamental problem is Θ(nk)Θ(nk) for every k \leq n^{c'} and some c' \in (0, 1). For k=O(1)k = O(1), this reveals the average sublinear nature of kk-colorability: the average-case complexity is linear in nn, and thus sublinear in the size of the input. We further show that our Θ(nk)Θ(nk) average runtime is optimal, since a simple bound proves that every algorithm that correctly kk-colors all kk-colorable graphs requires Ω(nk)Ω(n k) average runtime. Our proofs draw on ideas from sublinear and local algorithms and also yield a local computation algorithm (LCA) for kk-coloring with average-case probe complexity poly(k)\text{poly}(k). A key new ingredient in our algorithm is a method for certifying the unique colorability of random subgraphs, using tools from the theory of graph regularity.

Create a lesson

Metadata

Categories
cs.DS, cs.CC, math.CO
Comments
40 pages, 5 figures. FOCS 2026