arXiv:2610.41516cs.DSOct 2026

Manuscript Offprint

arXiv:2610.41516

New bounds for online coloring three-colorable graphs

Yaqiao Li

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

Abstract

We prove new lower and upper bounds for online coloring of three-colorable graphs, improving classical bounds of Vishwanathan [FOCS'1990] that have stood for more than three decades. For the lower bound against deterministic algorithms, we improve Vishwanathan's Ω(log⁡2n)\Omega(\log^2 n) to exp⁡(Ω((log⁡n)1/3(log⁡log⁡n)2/3))\exp(\Omega((\log n)^{1/3}(\log \log n)^{2/3})). For the upper bound of randomized algorithms, we give a randomized algorithm that achieves O(n)O(\sqrt{n}) improving Vishwanathan's O(nlog⁡n)O(\sqrt{n \log n}).

Technically, for the lower bound construction, we introduce the language of tt-fold coloring for simpler description of recursive construction, and the notion of post-degree for future control, and use the flexibility of two-sided colors of bipartite graph, constructed using the independent set amplification method of Vishwanathan, as building blocks to ensure three-colorability. The randomized algorithm integrates, in a new way, some of the ideas in offline coloring of Wigderson and Blum with ideas of Vishwanathan in the online setting, such as the degree control from Wigderson, the offline-monochromatic class from Blum, and the anchor-sampling from Vishwanathan and the CBIP algorithm by Lovász, Saks and Trotter.

1 Introduction

Three-colorable graphs are computationally complicated objects: up to today, there is still no efficient algorithm to decide whether a given graph is three-colorable, in fact this is one formulation of the P vs NP problem. Besides computation, another perspective to study them is via information: how limited information inhibits the coloring even the computational time is allowed to be super-polynomial.

One model of studying limited information is the online graph vertex-coloring model. An online vertex-coloring algorithm receives vertices one at a time, together with their edges to earlier vertices. It must assign each vertex a color immediately and irrevocably. For a graph GG, an order π\pi, and an algorithm A\mathcal{A}, write CA(G,π)C_{\mathcal{A}}(G, \pi) for the number of colors used. In 1990, Vishwanathan [Vis90] proved that every deterministic online algorithm requires Ω(log⁡2n)\Omega(\log^2 n) colors to color three-colorable graphs on nn vertices, and gave a randomized algorithm that uses O(nlog⁡n)O(\sqrt{n \log n}) colors in expectation. These two bounds stood for more than three decades. This work improve both.

Theorem 1.1 (Deterministic lower bound). There is an absolute constant c>0c > 0 such that, for every sufficiently large nn and every deterministic online coloring algorithm A\mathcal{A}, some ordered three-colorable graph GG on nn vertices satisfies

CA(G,π)≥2c(log⁡n)1/3(log⁡log⁡n)2/3.C_{\mathcal{A}}(G, \pi) \geq 2^{c(\log n)^{1/3}(\log \log n)^{2/3}}.

Theorem 1.2 (Randomized upper bound). There is a randomized online algorithm A\mathcal{A} such that, for every fixed ordered three-colorable graph with at most nn vertices,

ECA(G,π)=O(n).\mathbb{E}C_{\mathcal{A}}(G, \pi) = O(\sqrt{n}).

The algorithm can be implemented in expected polynomial time.

*Shenzhen University of Advanced Technology, Shenzhen, China, liyaqiao@suat-sz.edu.cn

Remark 1.3. 1. By a technique introduced in Lovasz et al [LST89], one can assume online algorithms know the number of vertices, with only Θ(1)\Theta(1) multiplicative difference in the colors used. So we assume this when it is convenient. In particular, this implies the lower bound holds even if algorithms know nn.

  1. The lower bound Theorem 1.1 can be extended to work against randomized algorithms, and the randomized algorithm Theorem 1.2 can be adapted to give a deterministic algorithm in the random order model with the same bound: these are provided in the appendix.

  2. As in Vishwanathan [Vis90], the two bounds we obtained could be generalized to get new bounds for online coloring on kk-colorable graphs for k≥4k \geq 4. We did not try to do that.

References (36)