We investigate the conversion of one-way nondeterministic finite automata and context-free grammars into Parikh equivalent one-way and two-way deterministic finite automata, from a descriptional complexity point of view.
We prove that for each one-way nondeterministic automaton with $n$ states there exist Parikh equivalent one-way and two-way deterministic automata with $e^{O(\sqrt{n \ln n})}$ and $p(n)$ states, respectively, where $p(n)$ is a polynomial. Furthermore, these costs are tight. In contrast, if all the words accepted by the given automaton contain at least two different letters, then a Parikh equivalent one-way deterministic automaton with a polynomial number of states can be found.
Concerning context-free grammars, we prove that for each grammar in Chomsky normal form with h variables there exist Parikh equivalent one-way and two-way deterministic automata with $2^{O(h^2)}$ and $2^{O(h)}$ states, respectively. Even these bounds are tight.
Lecture Notes on Automata, Languages, and Grammars
这些课堂讲稿旨在作为Moore和Mertens的《计算的本质》的补充,或者作为一个独立的资源,任何想要使用它们的人都可以使用。欢迎评论,如果你在课程中使用这些笔记,请告诉我。有61个练习。我强调,自动机是我们可以探索确定性和非确定性计算问题的基本游乐场。与P vs. NP不同的是,我们可以证明非确定性等价于确定性,或者严格地比确定性更强大,分别在有限状态和下推自动机中。我还纠正了一些历史和美学上的不公正:特别是,Myhill-Nerode定理和从前缀的等价类构建最小DFA的想法被恢复到正则语言的泵引理之上。我还讨论了上下文无关语言的泵引理,并简要讨论计数器自动机,队列自动机,以及明确的上下文无关语言和代数生成函数之间的联系。
考虑下面的单人游戏。采用格式良好的左括号和右括号序列。作为一种移动,玩家可以将任何左括号与其右侧的任何右括号配对,删除它们。目标是重新配对(擦除)整个序列,策略的复杂性由其宽度来衡量:在游戏过程中看到的非空符号段(由空格分隔)的最大数量。对于不同的初始序列,我们证明了最小宽度的上限和下限足够的修复配对。(In特别地,与高度$n$的完全二叉树相关联的序列允许$\log n$中的宽度次指数策略。我们的两个主要贡献是(1)宽度的下界和(2)它们在自动机理论中的应用:从一计数器自动机到Parikh等价的非确定有限自动机的转换的准多项式下界。后一个结果回答了Atig et al.(2016)的一个问题。