Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

More Undecidable Problems - Automata and Complexity Theory - Lecture Slides, Slides of Theory of Automata

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

2012/2013

Uploaded on 04/29/2013

juni
juni 🇮🇳

4

(17)

122 documents

1 / 63

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
More Undecidable Problems
Rice’s Theorem
Post’s Correspondence Problem
Some Real Problems
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f

Partial preview of the text

Download More Undecidable Problems - Automata and Complexity Theory - Lecture Slides and more Slides Theory of Automata in PDF only on Docsity!

1

More Undecidable Problems

Rice’s Theorem

Post’s Correspondence Problem

Some Real Problems

2

Properties of Languages

Any set of languages

is a

property

of

languages.

Example: The infiniteness property is the set of infinite languages.

4

Trivial Properties

There are two (

trivial ) properties P for

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

Plan for Proof of Rice’s Theorem

Lemma needed: recursive languagesare closed under complementation.

We need the technique known asreduction, where an algorithmconverts instances of one problem toinstances of another.

Then, we can prove the theorem.

7

Proof – Concluded

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

Reductions

A

reduction

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

Reductions – (2)

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

Reductions – Aside

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

The Reduction

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

The Reduction – (2)

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

Action of M’ if M Accepts w

Simulate M

on input w

x

Simulate M

L

on input x

On accept

Acceptiff x isin M

L

17

Design of M’ – (2)

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

Action of M’ if M Does not

Accept w

Simulate M

on input w

x

Never accepts, sonothing else happensand x is not accepted

20

Design of M’ – Conclusion

Thus, the algorithm that converts M and w to M’ is a reduction of L

u

to L

P

Thus, L

P

is undecidable.