Low-Latency Sliding Window Algorithms for Formal Languages

09/29/2022
by   Moses Ganardi, et al.
0

Low-latency sliding window algorithms for regular and context-free languages are studied, where latency refers to the worst-case time spent for a single window update or query. For every regular language L it is shown that there exists a constant-latency solution that supports adding and removing symbols independently on both ends of the window (the so-called two-way variable-size model). We prove that this result extends to all visibly pushdown languages. For deterministic 1-counter languages we present a 𝒪(log n) latency sliding window algorithm for the two-way variable-size model where n refers to the window size. We complement these results with a conditional lower bound: there exists a fixed real-time deterministic context-free language L such that, assuming the OMV (online matrix vector multiplication) conjecture, there is no sliding window algorithm for L with latency n^1/2-ϵ for any ϵ>0, even in the most restricted sliding window model (one-way fixed-size model). The above mentioned results all refer to the unit-cost RAM model with logarithmic word size. For regular languages we also present a refined picture using word sizes 𝒪(1), 𝒪(loglog n), and 𝒪(log n).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/23/2019

Sliding window property testing for regular languages

We study the problem of recognizing regular languages in a variant of th...
research
02/21/2018

Randomized sliding window algorithms for regular languages

A sliding window algorithm receives a stream of symbols and has to outpu...
research
02/15/2021

Dynamic Membership for Regular Languages

We study the dynamic membership problem for regular languages: fix a lan...
research
09/29/2020

In-Order Sliding-Window Aggregation in Worst-Case Constant Time

Sliding-window aggregation is a widely-used approach for extracting insi...
research
10/26/2018

Sub-O(log n) Out-of-Order Sliding-Window Aggregation

Sliding-window aggregation summarizes the most recent information in a d...
research
11/25/2018

Parallel approach to sliding window sums

Sliding window sums are widely used in bioinformatics applications, incl...
research
01/01/2019

Approximation of the Cell Under Test in Sliding Window Detection Processes

Analysis of sliding window detection detection processes requires carefu...

Please sign up or login with your details

Forgot password? Click here to reset