theoretical computer science

Graph k-Coloring in Average Sublinear Time

arXiv:2607.26592

summary

The paper presents an algorithm that colors k‑colorable graphs in expected O(nk) time, breaking the long‑standing quadratic average‑case barrier and achieving linear time for constant k, with a matching lower bound and a local computation version.

Abstract

Graph -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 -coloring over the set of all -colorable graphs on vertices. A highly influential result of Dyer-Frieze from 1989 gave an algorithm with average runtime for constant . This quadratic runtime appeared natural (and possibly even optimal) since almost all -colorable graphs have 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 for every where . Nevertheless, in the most interesting case of , the best-known bound remained quadratic in . The true average complexity of the -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 for every and some . For , this reveals the average sublinear nature of -colorability: the average-case complexity is linear in , and thus sublinear in the size of the input. We further show that our average runtime is optimal, since a simple bound proves that every algorithm that correctly -colors all -colorable graphs requires average runtime. Our proofs draw on ideas from sublinear and local algorithms and also yield a local computation algorithm (LCA) for -coloring with average-case probe complexity . 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.

40 pages, 5 figures. FOCS 2026

Topics & keywords

#graph coloring#average-case complexity#sublinear algorithms#local computation algorithms#random graphsk-coloringaverage-case runtimesublinear timelocal computation algorithmgraph regularityprobe complexity
Graph k-Coloring in Average Sublinear Time · wovepaper