English

Interval Selection in Sliding Windows

Data Structures and Algorithms 2024-11-13 v3

Abstract

We initiate the study of the Interval Selection problem in the (streaming) sliding window model of computation. In this problem, an algorithm receives a potentially infinite stream of intervals on the line, and the objective is to maintain at every moment an approximation to a largest possible subset of disjoint intervals among the LL most recent intervals, for some integer LL. We give the following results: - In the unit-length intervals case, we give a 22-approximation sliding window algorithm with space O~(OPT)\tilde{\mathrm{O}}(|OPT|), and we show that any sliding window algorithm that computes a (2ε)(2-\varepsilon)-approximation requires space Ω(L)\Omega(L), for any ε>0\varepsilon > 0. - In the arbitrary-length case, we give a (113+ε)(\frac{11}{3}+\varepsilon)-approximation sliding window algorithm with space O~(OPT)\tilde{\mathrm{O}}(|OPT|), for any constant ε>0\varepsilon > 0, which constitutes our main result. We also show that space Ω(L)\Omega(L) is needed for algorithms that compute a (2.5ε)(2.5-\varepsilon)-approximation, for any ε>0\varepsilon > 0. Our main technical contribution is an improvement over the smooth histogram technique, which consists of running independent copies of a traditional streaming algorithm with different start times. By employing the one-pass 22-approximation streaming algorithm by Cabello and P\'{e}rez-Lantero [Theor. Comput. Sci. '17] for Interval Selection on arbitrary-length intervals as the underlying algorithm, the smooth histogram technique immediately yields a (4+ε)(4+\varepsilon)-approximation in this setting. Our improvement is obtained by forwarding the structure of the intervals identified in a run to the subsequent run, which constrains the shape of an optimal solution and allows us to target optimal intervals differently.

Keywords

Cite

@article{arxiv.2405.09338,
  title  = {Interval Selection in Sliding Windows},
  author = {Cezar-Mihail Alexandru and Christian Konrad},
  journal= {arXiv preprint arXiv:2405.09338},
  year   = {2024}
}

Comments

22 pages, 6 figures

R2 v1 2026-06-28T16:28:11.382Z