























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Some concept of Automata and Complexity Theory are Administrivia, Closure Properties, Context-Free Grammars, Decision Properties, Deterministic Finite Automata, Intractable Problems, More Undecidable Problems. Main points of this lecture are: More Undecidable Problems, Rice’S Theorem, Post’S Correspondence Problem, Some Real Problems, Infiniteness Property, Infinite Languages, Property, Languages, Descriptive Device, Turing Machines
Typology: Slides
1 / 63
This page cannot be seen from the preview
Don't miss anything!
1
Rice’s Theorem
Post’s Correspondence Problem
Some Real Problems
2
Any set of languages
is a
of
languages.
Example: The infiniteness property is the set of infinite languages.
4
There are two (
which L
P
is decidable.
The
always-false property, which contains
no RE languages.
The
always-true property, which contains
every RE language.
Rice’s Theorem: For every otherproperty P, L
P
is undecidable.
5
Lemma needed: recursive languagesare closed under complementation.
Then, we can prove the theorem.
7
M’ simulates M.
But if M enters an accepting state, M’ halts without accepting.
If M halts without accepting, M’ instead has a move taking it to state f.
In state f, M’ halts.
8
from language L to
language L’ is an algorithm (TM thatalways halts) that takes a string w andconverts it to a string x, with theproperty that:
x is in L’ if and only if w is in L.
10
If we reduce L to L’, and L’ is decidable, then the algorithm for L’ + thealgorithm of the reduction shows that Lis also decidable.
Used in the contrapositive: If we know L is not decidable, then L’ cannot bedecidable.
11
This form of reduction is not the most general.
Example: We “reduced” L
d
to L
u
, but in
doing so we had to complementanswers.
More in NP-completeness discussion on Karp vs. Cook reductions.
13
Our reduction algorithm must take M andw and produce a TM M’.
L(M’) has property P if and only if Maccepts w.
M’ has two tapes, used for:
Simulates another TM M
L
on the input to M’.
Simulates M on w.
Note: neither M, M
L
, nor w is input to M’.
14
Assume that
does not have property P.
If it does, consider the complement of P,which would also be decidable by the lemma.
Let L be any language with property P, and let M
L
be a TM that accepts L.
M’ is constructed to work as follows (next slide).
16
Simulate M
on input w
x
Simulate M
L
on input x
On accept
Acceptiff x isin M
L
17
Suppose M accepts w.
Then M’ simulates M
L
and therefore
accepts x if and only if x is in L.
That is, L(M’) = L, L(M’) has property P, and M’ is in L
P
19
Simulate M
on input w
x
Never accepts, sonothing else happensand x is not accepted
20
Thus, the algorithm that converts M and w to M’ is a reduction of L
u
to L
P
Thus, L
P
is undecidable.