Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma.

Slides:



Advertisements
Similar presentations
PROOF BY CONTRADICTION
Advertisements

1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
3.2 Pumping Lemma for Regular Languages Given a language L, how do we know whether it is regular or not? If we can construct an FA to accept the language.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Costas Busch - RPI1 Single Final State for NFAs. Costas Busch - RPI2 Any NFA can be converted to an equivalent NFA with a single final state.
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
Fall 2006Costas Busch - RPI1 Regular Expressions.
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Recursively Enumerable and Recursive Languages
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Courtesy Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Courtesy Costas Busch - RPI1 The Pumping Lemma for Context-Free Languages.
CS5371 Theory of Computation Lecture 5: Automata Theory III (Non-regular Language, Pumping Lemma, Regular Expression)
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
1 The Pumping Lemma for Context-Free Languages. 2 Take an infinite context-free language Example: Generates an infinite number of different strings.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Costas Busch - RPI1 The Pumping Lemma for Context-Free Languages.
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2003Costas Busch1 More Applications of The Pumping Lemma.
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Prof. Busch - LSU1 Pumping Lemma for Context-free Languages.
Prof. Busch - LSU1 Non-regular languages (Pumping Lemma)
Prof. Busch - LSU1 More Applications of the Pumping Lemma.
1 Non-regular languages. 2 Regular languages Non-regular languages.
Costas Busch - RPI1 More Applications of the Pumping Lemma.
1 Applications of Regular Closure. 2 The intersection of a context-free language and a regular language is a context-free language context free regular.
1 The Pumping Lemma for Context-Free Languages. 2 Take an infinite context-free language Example: Generates an infinite number of different strings.
Costas Busch1 More Applications of The Pumping Lemma.
Fall 2003Costas Busch - RPI1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
A Universal Turing Machine
Non-Context-Free Languages Section 2.3 CSC 4170 Theory of Computation.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 9 Mälardalen University 2006.
Costas Busch - LSU1 Pumping Lemma for Context-free Languages.
1 Applications of pumping lemma(Dr. Torng) Applications of Pumping Lemma –General proof template What is the same in every proof What changes in every.
1 Find as many examples as you can of w, x, y, z so that w is accepted by this DFA, w = x y z, y ≠ ε, | x y | ≤ 7, and x y n z is in L for all n ≥ 0.
Nonregular Languages How do you prove a language to be regular? How do you prove a language to be nonregular? A Pumping Lemma.
Equivalence with FA * Any Regex can be converted to FA and vice versa, because: * Regex and FA are equivalent in their descriptive power ** Regular language.
Lecture 8UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 8.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
Nonregular Languages Section 2.4 Wed, Oct 5, 2005.
Recursively Enumerable and Recursive Languages
Non-regular languages
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
More Applications of the Pumping Lemma
NPDAs Accept Context-Free Languages
NPDAs Accept Context-Free Languages
Infiniteness Test The Pumping Lemma Nonregular Languages
DPDA Deterministic PDA
The Post Correspondence Problem
Pumping Lemma for Context-free Languages
Elementary Questions about Regular Languages
Non-regular languages
Undecidable problems:
More Applications of the Pumping Lemma
DPDA Deterministic PDA
Applications of Regular Closure
COSC 3340: Introduction to Theory of Computation
Presentation transcript:

Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma

Fall 2006Costas Busch - RPI2 The Pumping Lemma: Given a infinite regular language there exists an integer (critical length) for any string with length we can write with and such that:

Fall 2006Costas Busch - RPI3 Regular languages Non-regular languages

Fall 2006Costas Busch - RPI4 Theorem: The language is not regular Proof: Use the Pumping Lemma

Fall 2006Costas Busch - RPI5 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Fall 2006Costas Busch - RPI6 We pick Let be the critical length for Pick a string such that: lengthand

Fall 2006Costas Busch - RPI7 we can write: with lengths: From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI8 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI9 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI10 BUT: CONTRADICTION!!!

Fall 2006Costas Busch - RPI11 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF

Fall 2006Costas Busch - RPI12 Regular languages Non-regular languages

Fall 2006Costas Busch - RPI13 Theorem: The language is not regular Proof: Use the Pumping Lemma

Fall 2006Costas Busch - RPI14 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Fall 2006Costas Busch - RPI15 We pick Let be the critical length of Pick a string such that: length and

Fall 2006Costas Busch - RPI16 We can write With lengths From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI17 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI18 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI19 BUT: CONTRADICTION!!!

Fall 2006Costas Busch - RPI20 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF

Fall 2006Costas Busch - RPI21 Regular languages Non-regular languages

Fall 2006Costas Busch - RPI22 Theorem: The language is not regular Proof: Use the Pumping Lemma

Fall 2006Costas Busch - RPI23 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Fall 2006Costas Busch - RPI24 We pick Let be the critical length of Pick a string such that: length

Fall 2006Costas Busch - RPI25 We can write With lengths From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI26 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI27 From the Pumping Lemma: Thus:

Fall 2006Costas Busch - RPI28 Since: There must exist such that:

Fall 2006Costas Busch - RPI29 However:for for any

Fall 2006Costas Busch - RPI30 BUT: CONTRADICTION!!!

Fall 2006Costas Busch - RPI31 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF