English

Balanced Interval Coloring

Data Structures and Algorithms 2010-12-20 v1

Abstract

We consider the discrepancy problem of coloring nn intervals with kk colors such that at each point on the line, the maximal difference between the number of intervals of any two colors is minimal. Somewhat surprisingly, a coloring with maximal difference at most one always exists. Furthermore, we give an algorithm with running time O(nlogn+knlogk)O(n \log n + kn \log k) for its construction. This is in particular interesting because many known results for discrepancy problems are non-constructive. This problem naturally models a load balancing scenario, where nn tasks with given start- and endtimes have to be distributed among kk servers. Our results imply that this can be done ideally balanced. When generalizing to dd-dimensional boxes (instead of intervals), a solution with difference at most one is not always possible. We show that for any d2d \ge 2 and any k2k \ge 2 it is NP-complete to decide if such a solution exists, which implies also NP-hardness of the respective minimization problem. In an online scenario, where intervals arrive over time and the color has to be decided upon arrival, the maximal difference in the size of color classes can become arbitrarily high for any online algorithm.

Keywords

Cite

@article{arxiv.1012.3932,
  title  = {Balanced Interval Coloring},
  author = {Antonios Antoniadis and Falk Hüffner and Pascal Lenzner and Carsten Moldenhauer and Alexander Souza},
  journal= {arXiv preprint arXiv:1012.3932},
  year   = {2010}
}

Comments

Accepted at STACS 2011

R2 v1 2026-06-21T17:00:38.163Z