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

下推自动机的编辑距离

Edit Distance for Pushdown Automata

Krishnendu Chatterjee, Thomas A. Henzinger, Rasmus Ibsen-Jensen, Jan Otop

摘要:

两个单词之间的编辑距离$w_1, w_2$是将$w_1$转换为$w_2$所需的最小单词操作数(字母插入、删除和替换)。编辑距离推广到语言$\mathcal{L}_1, \mathcal{L}_2$,其中从$\mathcal{L}_1$到$\mathcal{L}_2$的编辑距离是最小数目$k$,使得对于来自$\mathcal{L}_1$的每个单词,在$\mathcal{L}_2$中存在编辑距离最多为$k$的单词。研究了下推自动机与其子类之间的编辑距离计算问题。计算到下推自动机的编辑距离的问题是不可判定的,在实践中,有趣的问题是计算从下推自动机(实现,递归程序的标准模型)到正则语言(规范)的编辑距离。在这项工作中,我们提出了一个完整的图片的可判定性和复杂性的以下问题:(1)~决定是否,对于一个给定的阈值$k$,编辑距离从下推自动机到有限自动机是最多$k$,和(2)~决定是否编辑距离从下推自动机到有限自动机是有限的。

英文摘要:

The edit distance between two words $w_1, w_2$ is the minimal number of word operations (letter insertions, deletions, and substitutions) necessary to transform $w_1$ to $w_2$. The edit distance generalizes to languages $\mathcal{L}_1, \mathcal{L}_2$, where the edit distance from $\mathcal{L}_1$ to $\mathcal{L}_2$ is the minimal number $k$ such that for every word from $\mathcal{L}_1$ there exists a word in $\mathcal{L}_2$ with edit distance at most $k$. We study the edit distance computation problem between pushdown automata and their subclasses. The problem of computing edit distance to a pushdown automaton is undecidable, and in practice, the interesting question is to compute the edit distance from a pushdown automaton (the implementation, a standard model for programs with recursion) to a regular language (the specification). In this work, we present a complete picture of decidability and complexity for the following problems: (1)~deciding whether, for a given threshold $k$, the edit distance from a pushdown automaton to a finite automaton is at most $k$, and (2)~deciding whether the edit distance from a pushdown automaton to a finite automaton is finite.

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

↑