Online graph colouring and competitive analysis
Colour a graph's vertices as they arrive, never recolouring. Known ratios to the optimum are only slightly below n; a Nov 2026 preprint claims randomness provably helps.
On this page17 sections
Online colouring is a standard testbed for competitive analysis and for the question of how much randomization helps against an adversary; the authors cite scheduling and resource allocation as applications.
Giving colours to the points of a network as they appear, with no take-backs, so that linked points differ.
- 1Vertices arrive; colour each at once
- 2Simple rules use about n/2 colours
- 3Known limits left randomness unexplained
- 42026 preprint claims a clear separation
- 5Gaps and refereeing still pending
The setup. A graph is a set of vertices joined by edges. A colouring gives each vertex a colour so that the two ends of every edge differ; the chromatic number is the fewest colours that can work. In the online version the vertices arrive one by one, each with its edges to earlier vertices, and the colour must be chosen immediately and kept forever.
Measuring quality. Competitive analysis compares an online algorithm with an offline one that sees everything. The competitive ratio is (colours the online algorithm uses) / , taken for the worst input. Think of an adversary who designs the input to hurt your algorithm. For a randomized algorithm the adversary fixes the input before the coin flips, and we count the expected number of colours; this is called an oblivious adversary.
First-Fit fails. First-Fit gives each vertex the smallest colour not used by an earlier neighbour. An adversary can present a bipartite graph (colourable with 2 colours) in an order that makes First-Fit use about colours for vertices. So its ratio is about , nearly the worst possible.
What is known. Smarter algorithms bring the ratio below , but only by factors such as : Lovász, Saks and Trotter (1989) gave a deterministic ratio of ; Halldórsson (1997) gave a randomized ; Kawarabayashi, Yoneda and Yoneda (2025) a deterministic . On the other side, Halldórsson and Szegedy (1994) showed that no algorithm, even a randomized one, can beat about . Since grows far more slowly than , there was a wide gap, and the question does randomness help here? was open.
The 2026 claim. The same authors, in an unrefereed preprint, claim a deterministic lower bound of and a randomized algorithm with ratio about . Because is larger than that, any deterministic method would be provably worse than the randomized one. Their central trick is to look at graphs that need many colours, not few. If every colour is used on at most two vertices, the number of colours is at most where is the size of the biggest clique (a group of vertices all joined to each other); the question becomes whether three vertices per colour is possible, which they claim works with randomness and fails without.
Honest status. Preprints are not checked by referees. DARC lists the claim as under review, and the exact answer is still open: a gap remains for randomized algorithms and a larger one for deterministic algorithms.
Go deeper
The full technical text.
The model
Vertices of an undirected graph arrive one at a time, each together with its edges to the vertices that have already arrived. The algorithm must give each arriving vertex a colour at once, so that adjacent vertices never share a colour, and it can never change a colour later. Its cost is the number of colours used. The competitive ratio is the worst case of (colours used) divided by the chromatic number , the least number of colours an offline algorithm that sees the whole graph could use. For randomized algorithms the ratio is taken in expectation against an oblivious adversary: the input is fixed in advance, without seeing the algorithm's random choices.
Why simple rules fail
First-Fit, which gives each vertex the smallest colour not used by a neighbour, can be forced to use about colours on an -vertex bipartite graph, which two colours suffice for, so its competitive ratio is at least about . Online colouring is hard in a way that most online problems are not: even the best known algorithms have a competitive ratio that is only a slowly shrinking fraction of .
Upper bounds, in order
- Lovász, Saks and Trotter (1989) gave a deterministic algorithm with ratio , where is the iterated logarithm, and a deterministic way to colour bipartite graphs with colours.
- Vishwanathan (1992) gave a randomized algorithm with ratio .
- Halldórsson (1997) improved the randomized ratio to .
- Kierstead (1998) improved the deterministic ratio to .
- Kawarabayashi, Yoneda and Yoneda (arXiv, November 2025; the 2026 preprint says it is to appear at SODA 2027) gave a deterministic .
Lower bound
Halldórsson and Szegedy (1994) proved that every algorithm, deterministic or randomized, has competitive ratio . For three decades this was the best general lower bound, so it could not tell whether randomness helps: the best randomized upper bound () was below the best deterministic one, but both lay above the common lower bound.
The November 2026 preprint (unrefereed)
Kawarabayashi, Yoneda and Yoneda (arXiv:2611.14513, v1 of 10 November 2026) report three results. First, a deterministic lower bound . Second, a polynomial-time randomized algorithm with expected competitive ratio against an oblivious adversary. Third, for every fixed , a polynomial-time deterministic algorithm with ratio . Because is much smaller than , the first two results together would show that randomization helps by a polylogarithmic factor, a separation that holds even against deterministic algorithms with unlimited running time.
The authors work with graphs of large chromatic number, rather than the constant-colourable graphs that were the historical focus. A key observation is that giving each colour to at most two vertices already works well when is large: for a graph with no clique of size , such an algorithm uses at most colours. They then ask whether three vertices per colour can be made to work, which they show fails for deterministic algorithms and, by their claim, succeeds for randomized ones. The paper's AI usage disclosure says OpenAI's GPT-6 Astra was used extensively while exploring the proofs: after the authors proposed the large-chromatic approach it generated the proofs of the first two results, and its proofs of the second and third results were substantially simplified by the authors, who wrote the paper and take responsibility for its correctness.
What stays open
If the preprint holds, the randomized ratio is pinned between and , a gap of ; the deterministic ratio is pinned between and , a polylogarithmic gap. The authors conjecture that every deterministic algorithm has ratio for every fixed (they say they believe no deterministic algorithm achieves ), and that a randomized algorithm with ratio exists; both are conjectures, not results. DARC has not checked the proofs.
Words on this page (11)
- graph colouring
- Giving each vertex of a graph a colour so that vertices joined by an edge get different colours.
- chromatic number
- The smallest number of colours with which a graph can be properly coloured.
- online algorithm
- A method that must make each decision as the input arrives, without knowing what comes next.
- competitive ratio
- The worst-case ratio between what an online algorithm achieves and what the best offline algorithm achieves with full knowledge.
- First-Fit
- A greedy colouring rule: give each vertex the smallest colour not already used by one of its neighbours.
- oblivious adversary
- An opponent who fixes the whole input in advance, without seeing the algorithm's random choices.
- randomized algorithm
- A method that makes random choices, so its cost is judged on average over those choices.
- bipartite graph
- A graph whose vertices split into two groups with every edge going between the groups; two colours suffice.
- clique
- A set of vertices all joined to each other; each needs its own colour.
- iterated logarithm
- How many times you must take a logarithm before the number drops to 1 or less; it grows extremely slowly.
- computational complexity
- The study of how much time or memory problems need as they grow.
New to this? Read first (4)
- Graph coloring (Wikipedia)Offline graph colouring, the baseline the online problem is compared with.
- Competitive analysis (online algorithm) (Wikipedia)Defines the competitive ratio and the adversary.
- Greedy coloring (Wikipedia)The First-Fit rule and why order matters.
- Kawarabayashi, Yoneda, Yoneda, Online Graph Coloring for k-Colorable Graphs (arXiv)Its introduction surveys the history of the problem.
Understanding map
map of the whole wiki →What to read before Online graph colouring and competitive analysis (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Step 3
- Step 4
- Online graph colouring and competitive analysisYou are here
- Then
- The competitive ratio of online graph colouringOpen problem · D30
Open problems & questions
Progress timeline
- Nov 10, 2026Preprint claims randomized-deterministic separationRelated to: The competitive ratio of online graph colouringsource
A preprint claims a deterministic lower bound Omega(n / log n) and a randomized upper bound O(n (log log n)^2 / log^2 n), plus a deterministic O(n / (log log n)^(2-eps)) upper bound. Unrefereed; DARC has not checked it.
- Nov 10, 2026Preprint claims a randomized-deterministic separationsource
The same authors posted a preprint claiming an Omega(n / log n) deterministic lower bound, an O(n (log log n)^2 / log^2 n) randomized upper bound against an oblivious adversary, and an O(n / (log log n)^(2-eps)) deterministic upper bound. Unrefereed; DARC has not checked it.
- Nov 20, 2025Deterministic O(n / log log n)Related to: The competitive ratio of online graph colouringsource
Kawarabayashi, Yoneda and Yoneda improved Kierstead's 1998 deterministic bound; unrefereed when posted.
- Nov 20, 2025Deterministic ratio O(n / log log n)source
Kawarabayashi, Yoneda and Yoneda posted a deterministic algorithm with ratio O(n / log log n), improving Kierstead's 1998 O(n log log log n / log log n). Unrefereed when posted; the 2026 preprint says it is to appear at SODA 2027.
- Jan 1, 1997Randomized O(n / log n)Related to: The competitive ratio of online graph colouringsource
Halldórsson's randomized algorithm, the best randomized upper bound until 2026 (year only; month is a placeholder). Bound as quoted in the papers cited here.
- Jan 1, 1997Randomized ratio O(n / log n)source
Halldórsson improved the randomized competitive ratio to O(n / log n) (year only; month is a placeholder). Bound as quoted in the 2025 and 2026 papers cited here.
- Jan 1, 1994Omega(n / log^2 n) lower bound for all algorithmsRelated to: The competitive ratio of online graph colouringsource
Halldórsson and Szegedy proved the lower bound that stood for three decades (year only; month is a placeholder). Bound as quoted in the 2026 preprint.
- Jan 1, 1994Lower bound Omega(n / log^2 n) for all algorithmssource
Halldórsson and Szegedy proved that every deterministic or randomized online colouring algorithm has competitive ratio Omega(n / log^2 n) (year only; month is a placeholder). Bound as quoted in the 2026 preprint.
- Jan 1, 1992Randomized online colouringsource
Vishwanathan gave a randomized algorithm with ratio O(n / sqrt(log n)) (year only; month is a placeholder). Bound as quoted in the 2025 paper cited here.
- Jan 1, 1989First sublinear competitive ratiosource
Lovász, Saks and Trotter gave a deterministic online colouring algorithm with ratio O(n / log* n) (year only; month is a placeholder). Bound as quoted in the 2025 paper cited here.