Skip to main content

Derandomization for Sliding Window Algorithms with Strict Correctness

  • Conference paper
  • First Online:
Computer Science – Theory and Applications (CSR 2019)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11532))

Included in the following conference series:

  • 570 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 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

  1. Aggarwal, C.C.: Data Streams - Models and Algorithms. Springer, New York (2007)

    MATH  Google Scholar 

  2. Arasu, A., Manku, G.S.: Approximate counts and quantiles over sliding windows. In: Proceedings of PODS 2004, pp. 286–296. ACM (2004)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. Babu, A., Limaye, N., Radhakrishnan, J., Varma, G.: Streaming algorithms for language recognition problems. Theor. Comput. Sci. 494, 13–23 (2013)

    Article  MathSciNet  Google Scholar 

  5. 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)

    Google Scholar 

  6. Braverman, V.: Sliding window algorithms. In: Kao, M.-Y. (ed.) Encyclopedia of Algorithms, pp. 2006–2011. Springer, New York (2016)

    Chapter  Google Scholar 

  7. Braverman, V., Ostrovsky, R., Zaniolo, C.: Optimal sampling from sliding windows. J. Comput. Syst. Sci. 78(1), 260–272 (2012)

    Article  MathSciNet  Google Scholar 

  8. 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

    Chapter  Google Scholar 

  9. 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

    Chapter  Google Scholar 

  10. Datar, M., Gionis, A., Indyk, P., Motwani, R.: Maintaining stream statistics over sliding windows. SIAM J. Comput. 31(6), 1794–1813 (2002)

    Article  MathSciNet  Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Google Scholar 

  14. 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)

    Google Scholar 

  15. 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)

    Google Scholar 

  16. Paz, A.: Introduction to Probabilistic Automata. Academic Press, River Edge (1971)

    MATH  Google Scholar 

  17. Rabin, M.O.: Probabilistic automata. Inf. Control 6(3), 230–245 (1963)

    Article  MathSciNet  Google Scholar 

  18. Yao, A.C.: Probabilistic computations: toward a unified measure of complexity. In: Proceedings of FOCS 1977, pp. 222–227. IEEE Computer Society (1977)

    Google Scholar 

Download references

Acknowledgment

The first author has been supported by the DFG research project LO 748/13-1.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Markus Lohrey .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics