最优Wheeler语言识别
Optimal Wheeler Language Recognition
AI总结:
本文提出O(mn)时间的DFA Wheler语言识别算法,大幅改进此前复杂度,给出匹配SETH的条件下界,结合已知NFA下的PSPACE完全性,基本解决该算法问题。
摘要:
Wheeler自动机是一种有限状态自动机,其状态满足全Wheeler序,该序反映了标记从源点到节点路径的字符串的共字典序。Wheeler语言是指存在可接受的Wheeler自动机的正则语言。Wheeler语言能够为自动机压缩、正则表达式匹配等难题提供高效且简洁的解决方案,因此判断一个正则语言是否为Wheeler语言,在需要这些问题高效解法的应用场景中具有重要意义。\n本文证明,判断一台具有n个状态、m条转移的DFA(确定有限自动机)是否识别Wheeler语言,可以在O(mn)时间内完成。这一结果相比此前多项式时间算法(Alanko等人,《Information and Computation》2021年)的O(n¹³ + m log n)运行时间有显著提升。该算法的概念验证实现已在公共代码仓库中开放。\n我们还给出了与该上界匹配的条件下界:除非强指数时间假设(SETH)不成立,否则该问题无法在严格次平方时间内求解。已知当输入为NFA(非确定有限自动机)时,该问题是PSPACE完全的(D'Agostino等人,《Theoretical Computer Science》2023年)。结合该结果,本文基本解决了Wheeler语言识别的算法问题。
英文摘要:
A Wheeler automaton is a finite state automaton whose states admit a total Wheeler order, reflecting the co-lexicographic order of the strings labeling source-to-node paths. A Wheeler language is a regular language admitting an accepting Wheeler automaton. Wheeler languages admit efficient and elegant solutions to hard problems such as automata compression and regular expression matching, therefore deciding whether a regular language is Wheeler is relevant in applications requiring efficient solutions to those problems. In this paper, we show that it is possible to decide whether a DFA with n states and m transitions recognizes a Wheeler language in $O(mn)$ time. This is a significant improvement over the running time $O(n^{13} + m\log n)$ of the previous polynomial-time algorithm (Alanko et al., Information and Computation 2021). A proof-of-concept implementation of this algorithm is available in a public repository. We complement this upper bound with a conditional matching lower bound stating that, unless the strong exponential time hypothesis (SETH) fails, the problem cannot be solved in strongly subquadratic time. The same problem is known to be PSPACE-complete when the input is an NFA (D'Agostino et al., Theoretical Computer Science 2023). Together with that result, our paper essentially closes the algorithmic problem of Wheeler language recognition.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。