




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































1
2
Reducibility
Turing reducible: A T B Mapping reducible: A m B or A + B Co-mapping reducible: A m B or A - B
Beyond undecidable
More Undecidable Problems
General grammars – acceptance problem Semi-Thue systems Post‟s correspondence problem (PCP) Problems involving CFG‟s
4
DEF: Given languages^1 A, B.
If a decider for A can be constructed assuming that a decider for B exists (by calling B as a sub-routine^2 ) then A is Turing reducible (or just reducible ) to B.
Furthermore, if there is a computable function^3 f such that f ( A ) B and f ( A ) B then A is mapping reducible^4 to B.
On the other hand, if there is a computable function f such that f (A ) B and f ( A ) B then A is co-mapping reducible^5 to B.
5
7
f A
___ ( ) f A ( )
8
is recognizable
corecognizable
undecidable
10
Let‟s re-cap the previous results in terms of the new terminology.
ASSUME: ATM is not corecognizable.
HaltJava: For every TM-string pair (M,w) created a Java program D.java halting on command line arguments M,w exactly when M accepts w. Therefore: ATM + HaltJava
Implication: HaltJava is not corecognizable.
Can also show that positive instance are recognizable so HaltJava is recognizable but not corecognizable. Docsity.com
11
Can also show that negative instances are
but not recognizable.
13
the second language to be the empty set:
nor corecognizable.
14
Can use notion of reducibility to study relative hardness of languages. Maybe
than others!
if a particular string is accepted. However:
16
into an infinite loop, which happens only
17
It turns out that some problems are even more undecidable than the problems above, i.e. cannot be reduced to ATM. By a counting argument they must exist. Exercise 6.21 in Sipser shows the following problem to be strictly harder than ATM:
Given a “Turing machine” M which uses a solution of ATM as a subroutine. Decide if M accepts w.
Proof is almost identical to proof that ATM is undecidable.
19
A: Has be type 4 or type 0. The larger the
number, the further the restrictions on the grammar, thus ensuring smaller class of languages.
TYPE 4 would have to be stricter than
regular languages, which can only be the finite languages, and this would be useless.
So last type must be TYPE 0: completely
unrestricted grammars. Docsity.com
20
DEF: An unrestricted grammar consists of
(V, S, R, S ) with: V – a finite set of variables S – a finite set set of terminals R – a finite set of rules of the form u v with u (S V ) +^ and v (S V )* S V – the start symbol
Computation same as in any grammar. A string
in S* is generated by the grammar iff it is derivable from S using the productions in R.