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

排序正则语言:一个危险地带

Ordering regular languages: a danger zone

Giovanna D'Agostino, Davide Martincigh, Alberto Policriti

摘要:

从底层字母表的顺序开始对给定自动机的状态集合进行排序是对自动机所接受的语言进行计算处理的自然举动。沿着这条道路,惠勒\emph{graphs}最近被引入作为Burrows-Wheeler变换(现在著名的BWT,最初定义在字符串上)的扩展/适应图。这些图构成了语言的重要数据结构,因为它们允许自动机的转换函数的非常有效的存储机制,同时为各种子串查询提供快速支持。这是可能的,因为一个属性--所谓的\emph{path coherence} --在惠勒图上有效,并且存在于节点上的排序中,该排序“传播”到字符串(的集合)。通过将惠勒图视为自动机,字符串的排序对应于进入每个状态的单词的共词典顺序。这自然会导致考虑惠勒自动机接受的正则语言类,即惠勒语言。它已被证明,与一般情况相反,经典的确定性的幂集结构是多项式惠勒语言。因此,大多数经典问题在Wheeler语言上都变得“容易”--也就是说,可以在多项式时间内解决。此外,决定DFA是否是Wheeler和决定DFA是否接受Wheeler语言是多项式。我们在这里的贡献是给简单的问题加一个上界。例如,每当我们通过切换到一般的NFA或不固定底层字母表的顺序来进行概括时,上述问题就变得“困难”-即NP完全或甚至PSPACE完全。

英文摘要:

Ordering the collection of states of a given automaton starting from an order of the underlying alphabet is a natural move towards a computational treatment of the language accepted by the automaton. Along this path, Wheeler \emph{graphs} have been recently introduced as an extension/adaptation of the Burrows-Wheeler Transform (the now famous BWT, originally defined on strings) to graphs. These graphs constitute an important data-structure for languages, since they allow a very efficient storage mechanism for the transition function of an automaton, while providing a fast support to all sorts of substring queries. This is possible as a consequence of a property -- the so-called \emph{path coherence} -- valid on Wheeler graphs and consisting in an ordering on nodes that "propagates" to (collections of) strings. By looking at a Wheeler graph as an automaton, the ordering on strings corresponds to the co-lexicographic order of the words entering each state. This leads naturally to consider the class of regular languages accepted by Wheeler automata, i.e. the Wheeler languages. It has been shown that, as opposed to the general case, the classic determinization by powerset construction is polynomial on Wheeler languages. As a consequence, most of the classical problems turn out to be "easy" -- that is, solvable in polynomial time -- on Wheeler languages. Moreover, deciding whether a DFA is Wheeler and deciding whether a DFA accepts a Wheeler language is polynomial. Our contribution here is to put an upper bound to easy problems. For instance, whenever we generalize by switching to general NFAs or by not fixing an order of the underlying alphabet, the above mentioned problems become "hard" -- that is NP-complete or even PSPACE-complete.

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

↑