The Greedy Algorithm Is not Optimal for On-Line Edge Coloring

Amin Saberi, David WajcICALP 2021

TL;DR

For decades, a simple "greedy" algorithm was thought to be the best possible for online edge coloring of graphs, achieving a competitive ratio of 2. This paper breaks that barrier, presenting a new algorithm that achieves a competitive ratio of approximately 1.897 for high-degree graphs under adversarial vertex arrivals, resolving a long-standing conjecture. This advancement is driven by a novel online rounding technique for fractional matchings.

What Problem Does This Paper Address?

Edge coloring a graph involves assigning colors to edges such that no two adjacent edges share the same color. The minimum number of colors needed is related to the maximum degree of the graph, denoted by $\Delta$. For general graphs, $\Delta+1$ colors are always sufficient (Vizing's Theorem). The challenge here is online edge coloring: edges (or vertices) arrive one by one, and a decision about coloring must be made immediately and irrevocably without knowledge of future arrivals.

For a long time, a simple greedy algorithm was known to be optimal in a specific sense: it achieved a competitive ratio of 2 (meaning it uses at most twice the optimal number of colors) and was proven to be the best possible for graphs with bounded degrees ($\Delta = O(\log n)$). However, researchers conjectured that for graphs with higher degrees ($\Delta = \omega(\log n)$), it might be possible to do better than a ratio of 2. This paper tackles this conjecture, aiming to find an online algorithm that outperforms the greedy approach for these higher-degree graphs under adversarial vertex arrivals.

Methods

The paper's core contribution lies in a new online algorithm for rounding bipartite fractional matchings. A fractional matching assigns a value between 0 and 1 to each edge, such that for any vertex, the sum of values of incident edges is at most 1. The goal is to convert this fractional matching into a real matching (where each edge is either in or out) while preserving as much of the fractional value as possible.

The authors develop a randomized online algorithm that, given a fractional matching $x$ and a bipartite graph where vertices arrive one by one, outputs a matching $M$ such that each edge $e$ is included in $M$ with probability $(1/2 + c) \cdot x_e$, where $c$ is a small positive constant ($c > 0.027$). This is a significant improvement over previous online rounding techniques.

This new rounding algorithm is then combined with two key ideas:

  1. Karloff-Shmoys Reduction: This technique reduces the problem of edge coloring a general graph to edge coloring a sequence of random bipartite subgraphs. This reduction is adapted for the online setting.
  2. Reduction to Matching: A known result (Lemma 2.2) shows that an $\alpha$-competitive online edge coloring algorithm can be constructed from an online matching algorithm that matches each edge with probability at least $1/(\alpha \Delta)$.

By applying their novel online fractional matching rounding algorithm (with $\alpha \approx 1/0.527$) within the Karloff-Shmoys framework, the authors achieve their main result.

Datasets

Not discussed in the paper. The problem is theoretical and focuses on algorithmic design and analysis for general graphs, not on empirical evaluation with specific datasets.

Key Insights and Ideas

  • Breaking the $\Delta=2$ Barrier: The paper demonstrates that the long-standing competitive ratio of 2 for online edge coloring is not optimal for graphs with high degrees, resolving a conjecture from nearly three decades ago.
  • Novel Online Fractional Matching Rounding: The core technical innovation is a new algorithm that can round fractional matchings online with a multiplicative factor of $(1/2 + c)$, which is better than previously known bounds for interleaved vertex arrivals. This is a significant algorithmic primitive.
  • Negative Association is Key: The analysis of the online rounding algorithm heavily relies on the concept of negatively associated random variables. This property allows the authors to bound the correlations between different matching decisions, which is crucial for proving the algorithm's correctness.
  • Interleaved vs. One-Sided Arrivals: The paper highlights the increased difficulty of handling "interleaved" vertex arrivals (where vertices from both sides of a bipartite graph can arrive at any time) compared to "one-sided" arrivals, requiring new techniques for bounding correlations.

Key Results

  • Theorem 1.2: The paper presents an online edge coloring algorithm for general graphs with maximum degree $\Delta = \omega(\log n)$ under vertex arrivals that achieves a competitive ratio of $(1.897 + o(1))$ with high probability. This resolves Conjecture 1.1.
  • Theorem 3.1: A new online algorithm for rounding bipartite fractional matchings is introduced. It matches each edge $e$ with probability $(1/2 + c) \cdot x_e$, where $c > 0.027$, for interleaved vertex arrivals. This is a key building block for the main result.

Limitations and Future Work

  • Computational Aspects: The authors note that their Algorithm 1, while theoretically sound, is computationally expensive to implement exactly due to the need to maintain joint distributions. They suggest that a polynomial-time approximation with a small additional multiplicative loss is possible but would make the description and analysis more cumbersome.
  • Achievable Competitive Ratio: The paper raises the question of what the best possible competitive ratio is. They achieved $\approx 1.897$, but a ratio of $1+o(1)$ is known for more restricted settings (one-sided arrivals, random order arrivals). It's an open question whether $1+o(1)$ is achievable under general adversarial vertex arrivals.
  • Generalization to Edge Arrivals: While the paper focuses on vertex arrivals, it mentions that Lemma 2.2 extends to edge arrivals. However, a matching algorithm with the required properties for edge arrivals is not yet known for constants $a < 2$.
  • Broader Applications of Rounding Algorithm: The authors speculate whether their online rounding algorithm has applications beyond edge coloring.

Summary updated

BibTeX
@inproceedings{saberi2021greedy,
  author = {Amin Saberi and David Wajc},
  title = {{The Greedy Algorithm Is not Optimal for On-Line Edge Coloring}},
  booktitle = {ICALP},
  year = {2021},
  url = {https://openreview.net/forum?id=wszaxhId0a},
}
Figure