






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
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
1 / 12
This page cannot be seen from the preview
Don't miss anything!
Proof: Decidable. Construct a TM M as follows: The shaded area: L(A) L(B)
Mw
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
( )
( ) w L M Our Target … Construction On any input string: s Simulate M on w ; If M halts, accept s , else reject s , end
w
〈 M 〉 Accept,^ if L ( M )^ finite Reject, if L ( M ) NOT finite D 〈 Mw 〉 〈 M 〉 w
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 )
( ) w L M^ Contains two equal length strings
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
w Proof: Suppose we have a TM D such that
〈 M 〉 Accept,^ if … D 〈 Mw 〉 〈 M 〉 w Accept, if M accept w A TM = {(〈 M 〉, w ): M is a TM that accepts w } Reject, if NOT … Reject, if not