arXiv:2610.23824cs.DSOct 2026

Manuscript Offprint

arXiv:2610.23824

Online Graph Coloring with Random Arrivals

Hirotaka Yoneda, Masataka Yoneda

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study online graph coloring in the random-arrival model, where the vertices are presented in a uniformly random order. Assuming nn and kk are known in advance, we present a randomized exponential-time algorithm that colors any kk-colorable graph on nn vertices with O(k3log⁡2klog⁡4n)O(k^3 \log^2 k \log^4 n) colors in expectation. This is the first online coloring algorithm that uses a polylogarithmic number of colors for all fixed k≥3k \ge 3, and is better than a known lower bound of Ω(log⁡k−1n)\Omega(\log^{k-1} n) colors under adversarial arrivals for all fixed k≥6k \ge 6.

In addition, assuming nn is known in advance, we obtain a competitive ratio of O~(n2/3)\widetilde{O}(n^{2/3}). For comparison, it is known to be NP-hard to approximate (offline) graph coloring within a factor of n1−εn^{1-\varepsilon} for all fixed ε>0\varepsilon > 0. Therefore, our exponential-time online algorithm achieves a performance guarantee beyond the NP-hardness threshold for polynomial-time approximation algorithms.

∗^{*}Supported by JSPS JP25K24465, JST ASPIRE JPMJAP2302, and JST ACT-X JPMJAX25CT.

†^{\dagger}Supported by JSPS JP25K24465 and JST ASPIRE JPMJAP2302.

1 Introduction

We study the online coloring problem, in which vertices are revealed one by one. When a vertex arrives, we must assign it a color immediately, before the next vertex arrives, so that its color differs from the colors of all its previously revealed neighbors. See Figure 1 for an example. This is one of the most extensively studied problems in online algorithms, alongside the k-server problem, paging/caching, and online matching [Alb03].

References (36)