Tutorial 11 -- CSC3130 : Formal Languages and Automata Theory Tu Shikui ( ) SHB 905, Office hour: Thursday 2:30pm-3:30pm 2008-11-16.

Slides:



Advertisements
Similar presentations
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
Advertisements

1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
1 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
Mapping Reducibility Sipser 5.3 (pages ).
Mapping Reducibility Sipser 5.3 (pages ). CS 311 Fall Computable functions Definition 5.17: A function f:Σ*→Σ* is a computable function.
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
Tutorial CSC3130 : Formal Languages and Automata Theory Tu Shikui ( ) SHB 905, Office hour: Thursday 2:30pm-3:30pm
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
CHAPTER 4 Decidability Contents Decidable Languages
CS 310 – Fall 2006 Pacific University CS310 Decidability Section 4.1/4.2 November 10, 2006.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Turing -Recognizable vs. -Decidable
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Decidability.
The Acceptance Problem for TMs
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
Recursively Enumerable Languages
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Undecidable Problems Costas Busch - LSU.
Lecture12 The Halting Problem
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
Theory of Computability
Intro to Theory of Computation
Pumping Lemma Revisited
Reducibility The Chinese University of Hong Kong Fall 2010
Intro to Theory of Computation
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 8: Undecidability, Mapping Reductions
CSE 105 theory of computation
Decidable Languages Costas Busch - LSU.
More undecidable languages
Theory of Computability
CS21 Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
CSE 105 theory of computation
Theory of Computability
Theory of Computability
More undecidable languages
CSCI 2670 Introduction to Theory of Computing
Decidability continued….
Theory of Computability
Instructor: Aaron Roth
Automata, Grammars and Languages
CSE 105 theory of computation
Presentation transcript:

Tutorial CSC3130 : Formal Languages and Automata Theory Tu Shikui ( ) SHB 905, Office hour: Thursday 2:30pm-3:30pm

Outline Examples for Decidable Undecidable but Recognizable Unrecognizable

The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be recognized by other TM M’ that does not always halt. If L is recognizable, then there might be such TM M that recognizes L but run forever, rather than rejecting, some inputs not in L. Simply, Decidable ---- always halt Recognizable ---- halt or loop

Example 1 -- Is it decidable? Proof: Decidable. Construct a TM M as follows: L(A)L(B) The shaded area:

Example 2 -- Is it decidable? 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. w

Example 2 -- Is it decidable?  NO. Construct M w Proof: (reduce it to Halting problem.) Suppose we have a TM D such that D 〈M〉〈M〉 Accept, if L(M) finite Reject, if L(M) NOT finite D 〈Mw〉〈Mw〉 〈M〉〈M〉 w Then, we should consider: HALT TM = {( 〈 M 〉, w): M is a TM that halts on input w} Accept, if M halts Reject, if M does not halt

How to construct M w ? halts on is infinite if and only if 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〉〈M〉 Accept, if L(M) finite Reject, if L(M) NOT finite D 〈Mw〉〈Mw〉 〈M〉〈M〉 w HALT TM = {( 〈 M 〉, w): M is a TM that halts on input w} Accept, if M halts Reject, if M does not halt reject accept halts on is infinite if and only if

Example 3 -- Is it decidable? Construct M w Proof: (reduce it to Halting problem.) Suppose we have a TM D such that D 〈M〉〈M〉 Accept, if … Reject, if NOT … D 〈Mw〉〈Mw〉 〈M〉〈M〉 w Then, we should consider: HALT TM = {( 〈 M 〉, w): M is a TM that halts on input w} Accept, if M halts Reject, if M does not halt

How to construct M w ? halts on Contains two equal length strings if and only if 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〉〈M〉 Accept, if … D 〈Mw〉〈Mw〉 〈M〉〈M〉 w Accept, if M accept w A TM = {( 〈 M 〉, w): M is a TM that accepts w} Reject, if NOT … Reject, if not

End of this tutorial! Thanks for coming!