Docsity

Undecidable Problems - Computability - Lecture Slide, Slides of Computer Science

Partial preview of the text

Download Undecidable Problems - Computability - Lecture Slide and more Slides Computer Science in PDF only on Docsity!

1

More Undecidable Problems

2

Agenda

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

Reducibility

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

Reducibility

Notation

A is Turing reducible B :

A T B

A is mapping reducible B 2 :

A m B or A + B

A is co-mapping reducible B :

A m B or A - B

7

Visualizing Co-Mapping

Reduction A - B

A A

_

B B

_

f A

___ ( ) f A ( )

f

f

8

Reducibility

Simple Lemmas

LEMMA: Let A and B be languages:

If A + B then A T B

If A - B then A T B

If A + B and B is recognizable, then A

is recognizable

If A - B and B is recognizable, then A is

corecognizable

If A T B and A is undecidable, then B is

undecidable

10

Previous Results in terms of

Reducibility: HaltJava

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

Previous Results in terms of

Reducibility: ETM

ETM : For every TM-string pair (M,w)

created a TM KM,w which is non-empty

exactly when M doesn't accept w:

ATM - ETM

Implication: ETM is not recognizable.

Can also show that negative instances are

recognizable so ETM is corecognizable

but not recognizable.

13

Previous Results in terms of

Reducibility: EQTM

EQTM : Each positive instance of ETM

becomes an instance of EQTM by setting

the second language to be the empty set:

ETM + EQTM

Similarly, ALLTM reduces to EQTM:

ALLTM + EQTM

Implication: EQTM is neither recognizable,

nor corecognizable.

14

Reducibility: Equivalently

Undecidable Problems

Can use notion of reducibility to study relative hardness of languages. Maybe

some languages are more undecidable

than others!

EG: At first it may seem that ETM is harder

than ATM since we are trying to figure out

if any string is accepted, vs. figuring out

if a particular string is accepted. However:

CLAIM: ETM has the same difficulty as ATM.

16

Reducibility: Equivalently

Undecidable Problems

A: M‟ doesn‟t accept w only when it goes

into an infinite loop, which happens only

when M accepts nothing. I.e., M‟

accepts w iff L(M ) is non-empty.

Consequently, if we could decide if M‟

accepted w could tell if M is empty!

This shows that a procedure for ATM

gives rise to a procedure for ETM and

therefore ETM T ATM. •

Notation for algorithmic equivalence :

A T B (i.e., A T B and A T B ) Docsity.com

17

Beyond Undecidable

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

General Grammars

Chomsky Hierarchy

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

TYPE 0

Unrestricted Grammars

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.