Moses Ganardi ; Danny Hucke ; Markus Lohrey ; Konstantinos Mamouras ; Tatiana Starikovskaya - Regular Languages in the Sliding Window Model

theoretics:13118 - TheoretiCS, March 6, 2025, Volume 4 - https://doi.org/10.46298/theoretics.25.8
Regular Languages in the Sliding Window ModelArticle

Authors: Moses Ganardi ORCID; Danny Hucke ; Markus Lohrey ORCID; Konstantinos Mamouras ; Tatiana Starikovskaya

    We study the space complexity of the following problem: For a fixed regular language $L$, we receive a stream of symbols and want to test membership of a sliding window of size $n$ in $L$. For deterministic streaming algorithms we prove a trichotomy theorem, namely that the (optimal) space complexity is either constant, logarithmic or linear, measured in the window size $n$. Additionally, we provide natural language-theoretic characterizations of the space classes. We then extend the results to randomized streaming algorithms and we show that in this setting, the space complexity of any regular language is either constant, doubly logarithmic, logarithmic or linear. Finally, we introduce sliding window testers, which can distinguish whether a sliding window of size $n$ belongs to the language $L$ or has Hamming distance $> \epsilon n$ to $L$. We prove that every regular language has a deterministic (resp., randomized) sliding window tester that requires only logarithmic (resp., constant) space.


    Volume: Volume 4
    Published on: March 6, 2025
    Accepted on: January 19, 2025
    Submitted on: February 26, 2024
    Keywords: Computer Science - Formal Languages and Automata Theory

    Consultation statistics

    This page has been seen 74 times.
    This article's PDF has been downloaded 40 times.