arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.14835cs.FLcs.DS
收藏

形式语言的低延迟滑动窗口算法

Low-Latency Sliding Window Algorithms for Formal Languages

Moses Ganardi, Louis Jachiet, Markus Lohrey, Thomas Schwentick

摘要:

研究了正则语言和上下文无关语言的低延迟滑动窗口算法,其中延迟是指单个窗口更新或查询所花费的最坏情况时间。对于每一个正则语言$L$,它表明,存在一个恒定的延迟的解决方案,支持添加和删除符号独立的两端的窗口(所谓的双向可变大小模型)。我们证明了这一结果扩展到所有明显的下推语言。对于确定性1计数器语言,我们提出了一个$\mathcal{O}(\log n)$延迟滑动窗口算法的双向可变大小模型,其中$n$是指窗口大小。我们补充这些结果与条件下界:存在一个固定的实时确定性上下文无关的语言$L$这样,假设OMV(在线矩阵向量乘法)猜想,有没有滑动窗口算法的$L$与延迟$n^{1/2-ε}$的任何$ε>0$,即使在最受限制的滑动窗口模型(单向固定大小模型)。上述结果均参考了单位成本的对数字长RAM模型。对于正则语言,我们还使用单词大小$\mathcal{O}(1)$、$\mathcal{O}(\log\log n)$和$\mathcal{O}(\log n)$呈现了一个细化的图片。

英文摘要:

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 $\mathcal{O}(\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 $\mathcal{O}(1)$, $\mathcal{O}(\log\log n)$, and $\mathcal{O}(\log n)$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑