Abstract
In the sliding window streaming model the goal is to compute an output value that only depends on the last n symbols from the data stream. Thereby, only space sublinear in the window size n should be used. Quite often randomization is used in order to achieve this goal. In the literature, one finds two different correctness criteria for randomized sliding window algorithms: (i) one can require that for every data stream and every time instant t, the algorithm computes a correct output value with high probability, or (ii) one can require that for every data stream the probability that the algorithm computes at every time instant a correct output value is high. Condition (ii) is stronger than (i) and is called “strict correctness” in this paper. The main result of this paper states that every strictly correct randomized sliding window algorithm can be derandomized without increasing the worst-case space consumption.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
For instance, Ben-Basat et al. write “We say that algorithm A is \(\epsilon \)-correct on a input instance S if it is able to approximate the number of 1’s in the last W bits, at every time instant while reading S, to within an additive error of \(W \epsilon \)”.
- 2.
Two events A and B are conditionally independent assuming event C if \(\Pr [A \wedge B \mid C] = \Pr [A \mid C] \cdot \Pr [B \mid C]\), which is equivalent to \(\Pr [A \mid B \wedge C] = \Pr [A \mid C]\).
References
Aggarwal, C.C.: Data Streams - Models and Algorithms. Springer, New York (2007)
Arasu, A., Manku, G.S.: Approximate counts and quantiles over sliding windows. In: Proceedings of PODS 2004, pp. 286–296. ACM (2004)
Babcock, B., Datar, M., Motwani, R., O’Callaghan, L.: Maintaining variance and k-medians over data stream windows. In: Proceedings of PODS 2003, pp. 234–243. ACM (2003)
Babu, A., Limaye, N., Radhakrishnan, J., Varma, G.: Streaming algorithms for language recognition problems. Theor. Comput. Sci. 494, 13–23 (2013)
Ben-Basat, R., Einziger, G., Friedman, R., Kassner, Y.: Efficient summing over sliding windows. In: Proceedings of SWAT 2016. LIPIcs, vol. 53, pp. 11:1–11:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2016)
Braverman, V.: Sliding window algorithms. In: Kao, M.-Y. (ed.) Encyclopedia of Algorithms, pp. 2006–2011. Springer, New York (2016)
Braverman, V., Ostrovsky, R., Zaniolo, C.: Optimal sampling from sliding windows. J. Comput. Syst. Sci. 78(1), 260–272 (2012)
Chan, H.-L., Lam, T.-W., Lee, L.-K., Pan, J., Ting, H.-F., Zhang, Q.: Edit distance to monotonicity in sliding windows. In: Asano, T., Nakano, S., Okamoto, Y., Watanabe, O. (eds.) ISAAC 2011. LNCS, vol. 7074, pp. 564–573. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-25591-5_58
Crouch, M.S., McGregor, A., Stubbs, D.: Dynamic graphs in the sliding-window model. In: Bodlaender, H.L., Italiano, G.F. (eds.) ESA 2013. LNCS, vol. 8125, pp. 337–348. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-40450-4_29
Datar, M., Gionis, A., Indyk, P., Motwani, R.: Maintaining stream statistics over sliding windows. SIAM J. Comput. 31(6), 1794–1813 (2002)
Ganardi, M., Hucke, D., König, D., Lohrey, M., Mamouras, K.: Automata theory on sliding windows. In: Proceedings of STACS 2018. LIPIcs, vol. 96, pages 31:1–31:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, (2018, to appear)
Ganardi, M., Hucke, D., Lohrey, M.: Querying regular languages over sliding windows. In: Proceedings of FSTTCS 2016. LIPIcs, vol. 65, pp. 18:1–18:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2016)
Ganardi, M., Hucke, D., Lohrey, M.: Randomized sliding window algorithms for regular languages. In: Proceedings of ICALP 2018. LIPIcs, vol. 107, pp. 127:1–127:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2018)
Ganardi, M., Jez, A., Lohrey, M.: Sliding windows over context-free languages. In: Proceedings of MFCS 2018. LIPIcs, vol. 117, pp. 15:1–15:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2018)
Golab, L., Özsu, M.T.: Processing sliding window multi-joins in continuous queries over data streams. In: Proceedings of VLDB 2003, pp. 500–511. Morgan Kaufmann (2003)
Paz, A.: Introduction to Probabilistic Automata. Academic Press, River Edge (1971)
Rabin, M.O.: Probabilistic automata. Inf. Control 6(3), 230–245 (1963)
Yao, A.C.: Probabilistic computations: toward a unified measure of complexity. In: Proceedings of FOCS 1977, pp. 222–227. IEEE Computer Society (1977)
Acknowledgment
The first author has been supported by the DFG research project LO 748/13-1.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Ganardi, M., Hucke, D., Lohrey, M. (2019). Derandomization for Sliding Window Algorithms with Strict Correctness. In: van Bevern, R., Kucherov, G. (eds) Computer Science – Theory and Applications. CSR 2019. Lecture Notes in Computer Science(), vol 11532. Springer, Cham. https://doi.org/10.1007/978-3-030-19955-5_21
Download citation
DOI: https://doi.org/10.1007/978-3-030-19955-5_21
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-19954-8
Online ISBN: 978-3-030-19955-5
eBook Packages: Computer ScienceComputer Science (R0)