CSE 105
THEORY OF COMPUTATION
Fall 2016 http://cseweb.ucsd.edu/classes/fa16/cse105-abc/
CSE 105 THEORY OF COMPUTATION Fall 2016 - - PowerPoint PPT Presentation
CSE 105 THEORY OF COMPUTATION Fall 2016 http://cseweb.ucsd.edu/classes/fa16/cse105-abc/ T odays lecture Examples of undecidable languages Examples of decidable languages Reductions Reading: Chapter 5 Previously Diag
Fall 2016 http://cseweb.ucsd.edu/classes/fa16/cse105-abc/
–
Undecidable (in fact, not even RE)
–
Just like Diag: Undecidavle (in fact, not even RE)
–
Proof: Assume DD is decidable. It follows that Diag is decidable. Contradiction!
–
ATM is RE, but not Decidable. Therefore, also not coRE.
–
Proof: Assume ATM is decidable. It follows that MM is decidable. Contradiction!
languages is closed under set difgerence.
= { <M,<M>> | M is a TM} - {<M,w> | w ∈ L(M) } = { <M,<M>> | M is a TM and <M> ∉ L(M) } = DD
–
ADFA = { <M,w> | M is a DFA and M(w) accepts }
–
ATM = { <M,w> | M is a TM and M(w) accepts }
–
EDFA = {<M> | M is a DFA and L(M) is the empty set }
–
ETM = {<M> | M is a TM and L(M) is the empty set }
–
EQDFA = { <M,M’> | M and M’ are DFAs and L(M) = L(M’) }
–
ADFA = { <M,w> | M is a DFA and M(w) accepts } DECIDABLE
–
ATM = { <M,w> | M is a TM and M(w) accepts } UNDECIDABLE
–
EDFA = {<M> | M is a DFA and L(M) is the empty set } DECIDABLE
–
ETM = {<M> | M is a TM and L(M) is the empty set } UNDECIDABLE
–
EQDFA = { <M,M’> | M and M’ are DFAs and L(M) = L(M’) } DECIDABLE
a) Let q’ = δ(q,a) b) If q’ is not in X, then X ← X U {q’} and restart the loop at 3)
a) Let q’ = δ(q,a) b) If q’ is not in X, then X ← X U {q’} and restart the loop at 3)
EDFA
a) Let q’ = δ(q,a) b) If q’ is not in X, then X ← X U {q’} and restart the loop at 3)
What is the language of PEDFA? A) {<P,w> | P is a DFA and P(w) accepts} B) {<P> | P is a DFA} C) {<P> | P is a DFA and L(P) = Ø } D) {<P> | P is a DFA and L(P) = {ε} } E) None of the above
a) Let q’ = δ(q,a) b) If q’ is not in X, then X ← X U {q’} and restart the loop at 3)
reject, else accept accept
1) Check if both M and M’ are DFA. If not, then reject. 2) Use closure properties of regular languages to build a DFA M’’ for L(M’’) = (L(M) – L(M’)) U (L(M’) - L(M))
–
Run PEDFA(<M’’>). If PEDFA accepts, then accept, else reject.
–
Since Diag is undecidable, then DD is also undecidable
–
Since DD is undecidable, then ATM is undecidable
–
Since EDFA is decidable, then EQDFA is decidable
–
Assume A is decidable
–
Show that B is also decidable
–
Using closure properties of decidable languages: transform A into B
–
Let M be a decider for A. Use M to build a decider for B
–
Can be proved using closure properties, or assuming a decider for A
–
Makes sense even when A or B are undecidable
–
This reduces the problem of solving B to the (possibly easier) problem of solving A
–
Oftern written B < A
–
Can be proved using closure properties, or assuming a decider for A
–
Makes sense even when A or B are undecidable
–
This reduces the problem of solving B to the (possibly easier) problem of solving A
–
Oftern written B B < < A A Assume B<A B<A and A is decidable. What can you conclude? A) B is also decidable B) B is a subset of A C) B is undecidable D) B may be decidable or undecidable E) I don’t know
–
Can be proved using closure properties, or assuming a decider for A
–
Makes sense even when A or B are undecidable
–
This reduces the problem of solving B to the (possibly easier) problem of solving A
–
Oftern written B B < < A A Assume A<B A<B and A is decidable. What can you conclude? A) B is also decidable B) B is a subset of A C) B is undecidable D) B may be decidable or undecidable E) I don’t know
–
Can be proved using closure properties, or assuming a decider for A
–
Makes sense even when A or B are undecidable
–
This reduces the problem of solving B to the (possibly easier) problem of solving A
–
Oftern written B B < < A A Assume A<B A<B and A is undecidable. What can you conclude? A) B is also decidable B) B is a subset of A C) B is undecidable D) B may be decidable or undecidable E) I don’t know
–
Can be proved using closure properties, or assuming a decider for A
–
Makes sense even when A or B are undecidable
–
This reduces the problem of solving B to the (possibly easier) problem of solving A
–
Oftern written B B < < A A Assume B<A B<A and A is undecidable. What can you conclude? A) B is also decidable B) B is a subset of A C) B is undecidable D) B may be decidable or undecidable E) I don’t know
problems? In what direction?
–
EQCFG < SUBCFG ?
–
SUBCFG < SUPCFG ?
–
SUPCFG < EQCFG ?
ue Nov 29