English

On the FirstFit Algorithm for Online Unit-Interval Coloring

Data Structures and Algorithms 2025-02-11 v1

Abstract

In this paper, we study the performance of the FirstFit algorithm for the online unit-length intervals coloring problem where the intervals can be either open or closed, which serves a further investigation towards the actual performance of FirstFit. We develop a sophisticated counting method by generalizing the classic neighborhood bound, which limits the color FirstFit can assign an interval by counting the potential intersections. In the generalization, we show that for any interval, there is a critical interval intersecting it that can help reduce the overestimation of the number of intersections, and it further helps bound the color an interval can be assigned. The technical challenge then falls on identifying these critical intervals that guarantee the effectiveness of counting. Using this new mechanism for bounding the color that FirstFit can assign an interval, we provide a tight analysis of 2ω2\omega colors when all intervals have integral endpoints and an upper bound of 73ω2\lceil\frac{7}{3}\omega\rceil-2 colors for the general case, where ω\omega is the optimal number of colors needed for the input set of intervals.

Keywords

Cite

@article{arxiv.2502.06558,
  title  = {On the FirstFit Algorithm for Online Unit-Interval Coloring},
  author = {Bob Krekelberg and Alison Hsiang-Hsuan Liu},
  journal= {arXiv preprint arXiv:2502.06558},
  year   = {2025}
}

Comments

24 pages, 5 figures

R2 v1 2026-06-28T21:38:43.212Z