具有有限延迟的正则语言的枚举
Enumerating Regular Languages with Bounded Delay
摘要:
我们研究的任务,对于一个给定的语言$L$,枚举(一般是无限的)序列的话,没有重复,而边界的两个连续的单词之间的延迟。为了允许不依赖于当前单词长度的延迟界限,我们假设一个模型,在这个模型中,我们通过使用一个小的编辑脚本编辑前面的单词来生成每个单词,而不是从头开始写出单词。特别是,这证明了语言是可排序的,即,我们可以将其单词写成无限序列,使得任何两个连续单词之间的Levenshtein编辑距离由仅取决于语言的值限定。例如,$(a+b)^*$是可排序的(具有格雷码的变体),但$a^* + b^*$不是。我们的特点,其中正则语言是在这个意义上可解释的,并表明,这可以决定在PTIME中的输入确定性有限自动机(DFA)的语言。事实上,我们表明,给定一个DFA $A$,我们可以计算PTIME自动机$A_1, \ldots, A_t$,使$L(A)$被划分为$L(A_1) \sqcup \ldots \sqcup L(A_t)$和每个$L(A_i)$在这个意义上是有序的。此外,我们表明,$t$的值是最佳的,即,我们不能将$L(A)$划分为少于$t$的可排序语言。在$L(A)$是可订购的情况下(即,$t=1$),我们表明,该命令可以产生一个有界延迟算法:具体地说,该算法运行在一个合适的指针机器模型,并产生一个序列的有限长度的编辑脚本访问的话$L(A)$没有重复,有界延迟-指数在$|A|$ -每个脚本之间。事实上,我们表明,我们可以实现这一点,同时只允许编辑操作推和弹出在开始和结束的话,这意味着这个词实际上可以保持在一个双端队列。
英文摘要:
We study the task, for a given language $L$, of enumerating the (generally infinite) sequence of its words, without repetitions, while bounding the delay between two consecutive words. To allow for delay bounds that do not depend on the current word length, we assume a model where we produce each word by editing the preceding word with a small edit script, rather than writing out the word from scratch. In particular, this witnesses that the language is orderable, i.e., we can write its words as an infinite sequence such that the Levenshtein edit distance between any two consecutive words is bounded by a value that depends only on the language. For instance, $(a+b)^*$ is orderable (with a variant of the Gray code), but $a^* + b^*$ is not. We characterize which regular languages are enumerable in this sense, and show that this can be decided in PTIME in an input deterministic finite automaton (DFA) for the language. In fact, we show that, given a DFA $A$, we can compute in PTIME automata $A_1, \ldots, A_t$ such that $L(A)$ is partitioned as $L(A_1) \sqcup \ldots \sqcup L(A_t)$ and every $L(A_i)$ is orderable in this sense. Further, we show that the value of $t$ obtained is optimal, i.e., we cannot partition $L(A)$ into less than $t$ orderable languages. In the case where $L(A)$ is orderable (i.e., $t=1$), we show that the ordering can be produced by a bounded-delay algorithm: specifically, the algorithm runs in a suitable pointer machine model, and produces a sequence of bounded-length edit scripts to visit the words of $L(A)$ without repetitions, with bounded delay -- exponential in $|A|$ -- between each script. In fact, we show that we can achieve this while only allowing the edit operations push and pop at the beginning and end of the word, which implies that the word can in fact be maintained in a double-ended queue.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。