for run M on w for |w| steps
进行情形的翻转Operator | Regular | Context-free | recursive | recursively enumerable |
---|---|---|---|---|
√ | √ | √ | √ | |
√ | × | √ | √ | |
√ | × | √ | × | |
√ | √ | √ | √ | |
√ | √ | √ | √ |
Problem
Consider the following DFA. What sequence of configurations does the machine go through on input
Solution
Problem
将以下的 NFA 转化为 RL
Solution
Problem
Convert the following NFA to an equivalent DFA. Give only the portion of the DFA that is reachable from the initial state.
Answer
简单的 画出有限自动机即可;复杂的 构造
Problem1
The set of all binary strings that end with 00.
Solution1
Problem2
Let
Solution2
Contruct a new FA
(需要为接收到 # 的非法情况建立新的状态
Problem
Construct a NFA that accepts
Solution
Problem1
Solution1
Pumping Theorem.
假设 Pumping length 为 p,构造
因为 (2) |y|>0 (3) |xy≤p|,所以
则
Problem2
Solution2
注意
正确。
Problem1
Construct a context-free grammar that generatesthe following language.
Solution1
Problem2
令
Solution2
Problem
Construct a pushdown automaton that accepts the following language.
Solution
The list of
Problem
Consider the following context-free grammar.
Show two distinct parse trees with root
Solution
Problem
Solution
图灵机之间状态转移时可能会出现不合法的情况
p.s. You can assume the start configuration of the Turing machine is
Problem
Let
Solution
根据定义,
对于
M = on input
则
flowchart LR subgraph recursive function = μ-recursive function p[primitive recursive function] end