正規語言-L5
正規語言相關文章參考資料為陳穎平教授上課講義
L5 Reducibility
If problem A reduces to problem B, we can use a solution to B to solve A.
When A is reducible to B, solving A cannot be harder than solving B because a solution to B gives a solution to A. Therefore, if A is reducible to B,
- B is decidable ⇒ A is decidable;
- A is undecidable ⇒ B is undecidable.
Undecidable Problems from Language Theory
定義
Theoremis undecidable.
- 證明: 假設 的
decider存在,則可以利用 建立 的decider,產生矛盾
定義
Theoremis undecidable.
- 證明: 假設 的
decider存在,則可以利用 建立 的decider,產生矛盾
定義
Theoremis undecidable.
- 證明: 假設 的
decider存在,則可以利用 建立 的decider,產生矛盾
Theorem
Rice’s theorem: Let be a language consisting of Turing machine descriptions where fulfills two conditions.
First, is nontrivial: it contains some, but not all, TM descriptions.
Second, is a property of the TM’s language: whenever , we have . Here and are any TMs.
Prove that is an undecidable language.
定義
Theoremis undecidable.
- 證明: 假設 的
decider存在,則可以利用 建立 的decider,產生矛盾
Reductions via Computation Histories
The computation history for a Turing machine on an input is simply the sequence of configurations that the machine goes through as it processes the input.
An accepting computation history for on is a sequence of configurations, , where is the start configuration of on , is an accepting configuration of , and each legally follows from according to the rules of .
A rejecting computation history for on is defined similarly, except that is a rejecting configuration.
A linear bounded automaton is a restricted type of Turing machine wherein the tape head isn’t permitted to move off the portion of the tape containing the input. (除了 input 之外不需要額外空間)
Lemma
Let be an LBA with states and symbols in the tape alphabet. There are exactly distinct configurations of for a tape of length .
定義
Theoremis decidable.
- 證明: 因為
LBA的configurations是有限的,因此我們可以判斷它是否進入循環
定義
Theoremis undecidable.
- 證明: 可以建立一個
LBA,輸入TM的computation history並檢驗,如果是accepting computation history的話則 accept,否則 reject
定義
Theoremis undecidable.
- 證明:
- 給定
TM以及 input ,可以建立一個PDA, 會 accept 除了 在 的accepting computation histories之外的所有 strings - 則
PDA對應的CFG會產生 iff not accept - 可以利用 去判斷 是否為 去得出 是否 accept
- 給定
generates all strings
A Simple Undecidable Problem
Post correspondence problem (PCP)
To determine whether a collection of dominos has a match.
A collection of dominos:
A match (abcaaabc):
Formally, an instance of PCP is a collection of dominos:
and a match is a sequence , where . The problem is to determine whether has a match.
定義
Theoremis undecidable.
- 證明: 略
Mapping Reducibility
Being able to reduce problem to problem by using a mapping reducibility means that a computable function, called a reduction, exists that converts instances of problem to instances of problem .
Computable Functions
A Turing machine computes a function by starting with the input to the function to the tape and halting with the output of the function on the tape.
DefinitionA function is a computable function if some Turing machine , on every input , halts with just on its tape.
Formal Definition of Mapping Reducibility
DefinitionLanguage is mapping reducible to language , written , if there is a computable function , where for every , .
The function is called the reduction of to .
If and is decidable, then is decidable.
- 證明: 假設 的
decider存在,則可以利用 以及computable function建立 的decider
Corollary
If and is undecidable, then is undecidable.
ex:
Theorem
If and is Turing-recognizable, then is Turing-recognizable.
- 證明: 類似
decidable的證明
If and is not Turing-recognizable, then is not Turing-recognizable.
is neither Turing-recognizable nor co-Turing-recognizable.
There are only the following situations are possible for a language and its complement
- and are both
decidable. - Neither nor is
Turing-recognizable. - is
Turing-recognizablebut undecidable, and isnot Turing-recognizable.
統整
-
decidableor not:DFA CFG LBA TM A O O O X E O O X X EQ O X X X -
is
undecidable. -
is
not Turing-recognizable.




