07/02/2022 KevinZonda
X and Y are language equivalent, they recognise the same language
An automaton is minimal if
It does not have any superfluous (多余的) states. (i.e., no one can be removed or merged.)
I.e.:
- Every state is reachable
- Every 2 distinct state are inequivalent
i.e. there is a word leading to an accepting state from one, but not other state.
- Every state is reachable:
State | Reached After |
---|---|
1 | epsilon |
2 | c |
3 | cb |
95 | cc |
18 | b |
- Any 2 distinct state are inequivalent:
I.e. We have to find a word that can be only accepted from one state, but not the other one.
State | Accepted Word |
---|---|
2 | 2 accept epsilon but no other states |
3 | 3 accepts b, but no other states |
7 | 7 accepts c, but no other states accept c |
95 | 95 accepts a, but no other states accept a |
18 | others show this is inequivalent |
首先发现
-
Accept:
{4, 6}
-
Reject:
{3, 5, 7, 8}
-
回溯,会发现通过 a 可以抵达
{4, 6}
-
我们首先绘制 a 转换
{3, 5}
可以通过 a 转换至{4, 6}
{7, 8}
无法通过 a 转换至{4, 6}
- 拆分
{3, 5, 7, 8}
为{3, 5}
和{7, 8}
- 链接
{3, 5} -a-> {4, 6}
以类似方式绘制所有原图的链接,直到绘制结束
我们还需要进行额外检查以展示这是 minimal 的
Q: Are all language
A: No. There are languages that would require an automaton with infinitely state. (F in DFA is finite)
Regular: countable
Proof
Idea: We show that
We assume there is a DFA recognising
We construct this DFA:
->[0] -(-> [1] -(-> [2] -(-> [3] -(-> [...]
Suppose have state
Therefore,
Suppose
However, if we start at
Therefore
So we can get we need a