Interval Selection in Sliding Windows (2405.09338v3)
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 $L$ most recent intervals, for some integer $L$. We give the following results: - In the unit-length intervals case, we give a $2$-approximation sliding window algorithm with space $\tilde{\mathrm{O}}(|OPT|)$, and we show that any sliding window algorithm that computes a $(2-\varepsilon)$-approximation requires space $\Omega(L)$, for any $\varepsilon > 0$. - In the arbitrary-length case, we give a $(\frac{11}{3}+\varepsilon)$-approximation sliding window algorithm with space $\tilde{\mathrm{O}}(|OPT|)$, for any constant $\varepsilon > 0$, which constitutes our main result. We also show that space $\Omega(L)$ is needed for algorithms that compute a $(2.5-\varepsilon)$-approximation, for any $\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 $2$-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+\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.
- Improved weighted matching in the sliding window model. In Petra Berenbrink, Patricia Bouyer, Anuj Dawar, and Mamadou Moustapha Kanté, editors, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, March 7-9, 2023, Hamburg, Germany, volume 254 of LIPIcs, pages 6:1–6:21. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.STACS.2023.6.
- Weighted maximum independent set of geometric objects in turnstile streams. In International Workshop and International Workshop on Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, 2019. URL: https://api.semanticscholar.org/CorpusID:67856291.
- Maximum-weight matching in sliding windows and beyond. 2021. URL: https://api.semanticscholar.org/CorpusID:245276580.
- Smooth histograms for sliding windows. In 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2007), October 20-23, 2007, Providence, RI, USA, Proceedings, pages 283–293. IEEE Computer Society, 2007. doi:10.1109/FOCS.2007.55.
- Interval selection in the streaming model. Theor. Comput. Sci., 702:77–96, 2017. doi:10.1016/j.tcs.2017.08.015.
- Independent sets in vertex-arrival streams. ArXiv, abs/1807.08331, 2018. URL: https://api.semanticscholar.org/CorpusID:49907556.
- Dynamic graphs in the sliding-window model. In Hans L. Bodlaender and Giuseppe F. Italiano, editors, Algorithms - ESA 2013 - 21st Annual European Symposium, Sophia Antipolis, France, September 2-4, 2013. Proceedings, volume 8125 of Lecture Notes in Computer Science, pages 337–348. Springer, 2013. doi:10.1007/978-3-642-40450-4\_29.
- Interval selection in data streams: Weighted intervals and the insertion-deletion setting. In Foundations of Software Technology and Theoretical Computer Science, 2023. URL: https://api.semanticscholar.org/CorpusID:266192962.
- Maintaining stream statistics over sliding windows: (extended abstract). In Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’02, page 635–644, USA, 2002. Society for Industrial and Applied Mathematics.
- Space-constrained interval selection. ACM Trans. Algorithms, 12(4):51:1–51:32, 2016. doi:10.1145/2886102.
- The one-way communication complexity of submodular maximization with applications to streaming and robustness. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, page 1363–1374, New York, NY, USA, 2020. Association for Computing Machinery. doi:10.1145/3357713.3384286.
- The one-way communication complexity of hamming distance. Theory Comput., 4:129–135, 2008. URL: https://api.semanticscholar.org/CorpusID:15825208.
- Mikhail Kapralov. Space lower bounds for approximating maximum matching in the edge arrival model. In ACM-SIAM Symposium on Discrete Algorithms, 2021. URL: https://api.semanticscholar.org/CorpusID:232172216.
- Almost-smooth histograms and sliding-window graph algorithms. Algorithmica, 84(10):2926–2953, 2022. doi:10.1007/s00453-022-00988-y.
- Communication complexity. Cambridge University Press, 1997.
- A (2+ϵitalic-ϵ\epsilonitalic_ϵ)-approximation for maximum weight matching in the semi-streaming model. ACM Trans. Algorithms, 15(2):18:1–18:15, 2019. doi:10.1145/3274668.
- Sai Krishna Chaitanya Nalam Venkata Subrahmanya. Vertex cover in the sliding window model. Master’s thesis, Rutgers, The State University of New Jersey, 2021.
- Janani Sundaresan. Optimal communication complexity of chained index, 2024. arXiv:2404.07026.