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

Formal Languages and Automata Theory: Decidability and Recognizability, Slides of Theory of Automata

An outline and examples to help understand the concepts of decidability and recognizability in formal languages and automata theory. It explains the difference between these two concepts and provides proofs for decidable and undecidable languages using examples.

Typology: Slides

2012/2013

Uploaded on 04/29/2013

juni
juni 🇮🇳

4

(17)

122 documents

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Formal Languages and Automata Theory
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Formal Languages and Automata Theory: Decidability and Recognizability and more Slides Theory of Automata in PDF only on Docsity!

Formal Languages and Automata Theory

Outline

• Examples for

– Decidable

– Undecidable but Recognizable

– Unrecognizable

Example 1

-- Is it decidable?

Proof: Decidable. Construct a TM M as follows: The shaded area: L(A) L(B)

Example 2

-- Is it decidable?

Mw

A decider
of target
problem
Construct
M

w The answer: NOT decidable. The difficulty: How to prove a language to be not decidable? accept reject The target problem is embedded. < M > w

How to construct M

w

M halts on

( )

w

L M is infinite

if and

only if

w

( )  w L M Our Target … Construction On any input string: s Simulate M on w ; If M halts, accept s , else reject s , end

Example 2

-- Is it decidable?  NO.

Construct
M

w

D

M 〉 Accept,^ if L ( M )^ finite Reject, if L ( M ) NOT finite DMw 〉 〈 M 〉 w

HALTTM = {(〈 M 〉, w ): M is a TM that halts on input

w } Accept, if M halts Reject, if M does not halt reject accept M^ halts on L ( Mw )^ is infinite if and only if w

L ( Mw )

How to construct M

w

M halts on

( ) w L M^ Contains two equal length strings

if and

only if

w

L ( Mw ){ a , b } Our Target … Construction On any input string: s Simulate M on w ; If M halts, accept if s=a or s=b else reject s , end

Example 4

-- Is it decidable?

Construct
M

w Proof: Suppose we have a TM D such that

D

M 〉 Accept,^ if … DMw 〉 〈 M 〉 w Accept, if M accept w A TM = {(〈 M 〉, w ): M is a TM that accepts w } Reject, if NOT … Reject, if not