arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.10261cs.DScs.CLcs.FL
收藏

正则语言的滑动窗口性质测试

Sliding window property testing for regular languages

Universität Siegen(锡根大学);DI/ENS, PSL Research University(法国巴黎高等师范学院(DI/ENS, PSL研究大学))

Moses Ganardi, Danny Hucke, Markus Lohrey, Tatiana Starikovskaya

摘要:

我们研究的问题,识别正则语言的计算流模型的一个变种,称为滑动窗口模型。在这个模型中,我们给出了滑动窗口$n$的大小和符号流。在每个时刻,我们必须决定当前流(“活动窗口”)的长度后缀$n$是否属于给定的正则语言。最近的工作表明,该问题的最佳确定性滑动窗口算法的空间复杂度是常数,对数或线性的窗口大小$n$,并提供了自然语言理论表征的空间复杂度类。随后,这些结果被扩展到随机算法,以表明任何这样的算法承认要么常数,双对数,对数或线性空间复杂度。在这项工作中,我们向前迈出了重要的一步,并结合了滑动窗口模型与属性测试设置,这导致了所有正则语言的超高效算法。非正式地,滑动窗口属性测试器必须接受活动窗口,如果它属于语言,如果它远离语言,则拒绝它。我们考虑确定性和随机滑动窗口属性测试仪的单侧和双侧的错误。特别是,我们表明,对于任何正则语言,有一个确定性的滑动窗口属性测试仪,使用对数空间和随机滑动窗口属性测试仪,使用恒定的空间与双侧错误。

英文摘要:

We study the problem of recognizing regular languages in a variant of the streaming model of computation, called the sliding window model. In this model, we are given a size of the sliding window $n$ and a stream of symbols. At each time instant, we must decide whether the suffix of length $n$ of the current stream ("the active window") belongs to a given regular language. Recent works showed that the space complexity of an optimal deterministic sliding window algorithm for this problem is either constant, logarithmic or linear in the window size $n$ and provided natural language theoretic characterizations of the space complexity classes. Subsequently, those results were extended to randomized algorithms to show that any such algorithm admits either constant, double logarithmic, logarithmic or linear space complexity. In this work, we make an important step forward and combine the sliding window model with the property testing setting, which results in ultra-efficient algorithms for all regular languages. Informally, a sliding window property tester must accept the active window if it belongs to the language and reject it if it is far from the language. We consider deterministic and randomized sliding window property testers with one-sided and two-sided errors. In particular, we show that for any regular language, there is a deterministic sliding window property tester that uses logarithmic space and a randomized sliding window property tester with two-sided error that uses constant space.

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

↑