An Optimal Decentralized (Δ + 1)-Coloring Algorithm

Daniel Bertschinger, Johannes Lengler, Anders Martinsson, Robert Meier, Angelika Steger, Milos Trujic, Emo Welzl

TL;DR

This paper proves a conjecture by Chakrabarty and de Supinski regarding a classic, lightweight decentralized algorithm for $(\Delta + 1)$-graph coloring. The authors prove that sequentially picking a conflicted vertex and assigning it a random color resolves all conflicts in $O(n \log \Delta)$ expected steps, which is asymptotically optimal.

What Problem Does This Paper Address?

In wireless networks, devices often need to autonomously pick communication channels without coordinating with a central authority so that neighboring devices do not interfere (channel selection problem). Graph coloring models this setup directly: vertices represent devices, edges represent interference, and available channels represent colors. Using $\Delta + 1$ colors (where $\Delta$ is the maximum graph degree) guarantees that a proper coloring always exists.

Bhartia et al. (MOBIHOC '16) proposed an extremely simple, oblivious randomized procedure:

  1. Every vertex picks a random color from $\{1, \dots, \Delta+1\}$.
  2. While there is a conflict (an edge whose endpoints share a color), pick a conflicted vertex uniformly at random and assign it a fresh, uniformly random color.

While Bhartia et al. proved this algorithm terminates in $O(n\Delta)$ expected steps, empirical evidence suggested it ran much faster. Chakrabarty and de Supinski (SOSA '20) analyzed a modified "persistent" variant that reached $O(n \log \Delta)$ steps and conjectured that the original, simpler algorithm also achieves $O(n \log \Delta)$. This paper settles the conjecture affirmatively.

Methods

The proof relies on drift analysis, designing a clever potential function $\Phi(t)$ that measures how far the coloring is from being valid and establishing that it strictly decreases in expectation:

$$\Phi(t) := |M_t| + \frac{|I_t|}{10} + \frac{e(V(I_t), P_t)}{100\Delta}$$

where:

  • $M_t$ is the set of monochromatic (conflicted) edges.
  • $I_t \subseteq M_t$ is the set of isolated monochromatic edges (components of size 2).
  • $P_t$ is the set of properly colored vertices.
  • $e(V(I_t), P_t)$ is the number of edges between isolated conflict pairs and properly colored vertices.

The analysis proceeds in two phases:

  1. Multiplicative Drift Phase: Tracking $\Phi(t)$ down to $n/\Delta$ shows that $\mathbb{E}[\Phi(t)] \le \Phi(t-1)(1 - \frac{1}{1000n})$. By Multiplicative Drift Theorems, this phase finishes in $O(n \log \Delta)$ steps.
  2. Additive Drift Phase: Once $|M_t| \le O(n/\Delta)$, tracking simply $|M_t|$ yields an expected decrease of at least $\frac{1}{\Delta+1}$ per step, finishing the remaining conflicts in $O(n)$ steps.

To prove that the runtime holds with high probability (not just in expectation), the authors apply multiplicative drift tail bounds for dense regimes ($\Delta = \Omega(n^c)$) and additive drift tail bounds via Azuma-type concentration for sparse regimes ($\Delta = O(n^{1/4})$).

Datasets

Not discussed in the paper (this is a purely theoretical paper; no experimental datasets or benchmarks were used).

Key Insights and Ideas

  • Large components drift fast; isolated edges are the bottleneck: If a monochromatic component has 3 or more vertices, its average degree is at least $4/3$, generating a substantial constant drift of at least $-1/3$ on the number of monochromatic edges. The hard case is when conflicts consist almost entirely of isolated pairs ($K_2$).
  • The density buffer term: When recoloring an endpoint of an isolated edge, a new conflict is likely only if its neighborhood in the properly colored set $P_{t-1}$ is nearly full ($\approx \Delta$). By adding the boundary term $e(V(I_t), P_t)$ to the potential, the authors capture the structural penalty: creating a new conflict forces the surrounding properly colored vertices to have fewer available conflicting neighbors, guaranteeing multiplicative progress.
  • Robustness to adversarial starts: The $O(n \log \Delta)$ bound holds even if the initial coloring is adversarial (worst-case), whereas the "persistent" variant takes $\Theta(n\Delta)$ under adversarial initialization.
  • Parallelization catastrophe: Simultaneously recoloring all conflicted vertices in parallel breaks down completely. On a complete graph $K_n$, birthday-paradox-like collisions continually recreate linear fractions of conflicts, leading to an exponential runtime $e^{\Omega(n)}$.

Key Results

  • Optimal Expected Runtime: The sequential decentralized algorithm converges to a proper $(\Delta + 1)$-coloring in $O(n \log \Delta)$ recoloring steps in expectation.
  • Matching Lower Bound: The bound is tight across all parameter regimes: on a disjoint union of complete graphs $K_\Delta$, the coupon collector problem dictates a lower bound of $\Omega(\frac{n}{\Delta} \cdot \Delta \log \Delta) = \Omega(n \log \Delta)$.
  • High-Probability Guarantee: The algorithm runs in $O(n \log \Delta)$ steps with high probability (failure probability $o(1)$) for any $\Delta$.
  • Parallel Variant Bound: The fully synchronous, parallelized variant requires $e^{\Omega(n)}$ expected rounds on the complete graph $K_n$.

Limitations and Future Work

  • The "Random Start" Comparison: The question raised by Chakrabarty and de Supinski regarding whether the original algorithm or the persistent variant is faster when starting from a uniform random coloring remains open.
  • Partial Parallelization: While fully simultaneous recoloring fails exponentially, the paper does not explore intermediate distributed models (e.g., recoloring with a small activation probability $p \ll 1$ per step to mimic sequential dynamics while maintaining concurrency).

Summary updated

BibTeX
@inproceedings{bertschinger2020optimal,
  author = {Daniel Bertschinger and Johannes Lengler and Anders Martinsson and Robert Meier and Angelika Steger and Milos Trujic and Emo Welzl},
  title = {{An Optimal Decentralized (Δ + 1)-Coloring Algorithm}},
  booktitle = {ESA},
  year = {2020},
  url = {https://openreview.net/forum?id=RjZu59NB7Cz},
}

Loading related content...

Figure