arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.13100cs.FLcs.DS
收藏

正序成员在正则语言中的问题

Out-of-Order Membership in Regular Languages

Univ. Lille, INRIA, CNRS, Centrale Lille, UMR 9189 CRIStAL(里尔大学、法国国家信息与自动化研究所、法国国家科学研究中心、中央里尔学院)

Antoine Amarilli, Sebastien Labbe, Charles Paperman

AI总结:

研究正则语言中在对抗性顺序下判断单词成员的高效算法,揭示了单调和半群的空问复杂度特性。

摘要:

我们引入了将单词w的字母以对抗性顺序逐步揭示给形式语言L的任务。已知单词长度|w|,但内容以配对(i, w[i])的形式流式传输,每个位置i恰好一次。我们研究当L为正则语言时的高效算法,寻求以|w|为函数的紧致复杂度界。大多数结果适用于代数定义的变种,称为正序评估:该问题针对固定的有限monoid或semigroup S定义,我们的目标是计算流式传输的w元素的有序乘积。我们证明,对于任何固定的正则语言或有限semigroup,两个问题都可以在常数时间每流式传输符号和线性空间内解决。然而,精确的空间复杂度强烈依赖于目标语言或评估semigroup的代数结构。我们的主要贡献是展示(确定性)空间复杂度特征,我们为此展示了单调和semigroup的正序评估。对于monoids,我们建立了三元组:空间复杂度是Θ(1)、Θ(log n)或Θ(n),其中n = |w|。更具体地说,该问题允许常数空间解决方案用于交换monoids,而所有非交换monoids需要Ω(log n)空间。我们进一步识别了一类允许O(log n)-空间算法的monoids,并证明所有剩余monoids需要Ω(n)空间。对于一般semigroups,情况更为复杂。我们表征了一类允许常数空间算法的semigroups进行正序评估,并证明该类外的semigroups需要至少Ω(log n)空间。

英文摘要:

We introduce the task of out-of-order membership to a formal language L, where the letters of a word w are revealed one by one in an adversarial order. The length |w| is known in advance, but the content of w is streamed as pairs (i, w[i]), received exactly once for each position i, in arbitrary order. We study efficient algorithms for this task when L is regular, seeking tight complexity bounds as a function of |w| for a fixed target language. Most of our results apply to an algebraically defined variant dubbed out-of-order evaluation: this problem is defined for a fixed finite monoid or semigroup S, and our goal is to compute the ordered product of the streamed elements of w. We show that, for any fixed regular language or finite semigroup, both problems can be solved in constant time per streamed symbol and in linear space. However, the precise space complexity strongly depends on the algebraic structure of the target language or evaluation semigroup. Our main contributions are therefore to show (deterministic) space complexity characterizations, which we do for out-of-order evaluation of monoids and semigroups. For monoids, we establish a trichotomy: the space complexity is either Θ(1), Θ(log n), or Θ(n), where n = |w|. More specifically, the problem admits a constant-space solution for commutative monoids, while all non-commutative monoids require Ω(log n) space. We further identify a class of monoids admitting an O(log n)-space algorithm, and show that all remaining monoids require Ω(n) space. For general semigroups, the situation is more intricate. We characterize a class of semigroups admitting constant-space algorithms for out-of-order evaluation, and show that semigroups outside this class require at least Ω(log n) space.

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

↑