Prof. Busch - LSU1 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.
Pumping Lemma Problem: Solution:
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.
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
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.
Homework 4 Solutions.
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma.
Prof. Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
Prof. Busch - LSU1 Pumping Lemma for Context-free Languages.
Prof. Busch - LSU1 Non-regular languages (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.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
Prof. Busch - LSU1 NFAs accept the Regular Languages.
A Universal Turing Machine
CS355 - Theory of Computation Regular Expressions.
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.
Cs466(Prasad)L11PLEG1 Examples Applying Pumping Lemma.
Costas Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
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.
Nonregular Languages Section 2.4 Wed, Oct 5, 2005.
A Universal Turing Machine
Non-regular languages
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
More Applications of the Pumping Lemma
Busch Complexity Lectures: Reductions
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Regular Expressions Prof. Busch - LSU.
Infiniteness Test The Pumping Lemma Nonregular Languages
DPDA Deterministic PDA
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:

Prof. Busch - LSU1 More Applications of the Pumping Lemma

Prof. Busch - LSU2 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:

Prof. Busch - LSU3 Regular languages Non-regular languages

Prof. Busch - LSU4 Theorem: The language is not regular Proof: Use the Pumping Lemma

Prof. Busch - LSU5 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Prof. Busch - LSU6 We pick Let be the critical length for Pick a string such that: lengthand

Prof. Busch - LSU7 we can write: with lengths: From the Pumping Lemma: Thus:

Prof. Busch - LSU8 From the Pumping Lemma: Thus:

Prof. Busch - LSU9 From the Pumping Lemma: Thus:

Prof. Busch - LSU10 BUT: CONTRADICTION!!!

Prof. Busch - LSU11 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF

Prof. Busch - LSU12 Regular languages Non-regular languages

Prof. Busch - LSU13 Theorem: The language is not regular Proof: Use the Pumping Lemma

Prof. Busch - LSU14 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Prof. Busch - LSU15 We pick Let be the critical length of Pick a string such that: length and

Prof. Busch - LSU16 We can write With lengths From the Pumping Lemma: Thus:

Prof. Busch - LSU17 From the Pumping Lemma: Thus:

Prof. Busch - LSU18 From the Pumping Lemma: Thus:

Prof. Busch - LSU19 BUT: CONTRADICTION!!!

Prof. Busch - LSU20 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF

Prof. Busch - LSU21 Regular languages Non-regular languages

Prof. Busch - LSU22 Theorem: The language is not regular Proof: Use the Pumping Lemma

Prof. Busch - LSU23 Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

Prof. Busch - LSU24 We pick Let be the critical length of Pick a string such that: length

Prof. Busch - LSU25 We can write With lengths From the Pumping Lemma: Thus:

Prof. Busch - LSU26 From the Pumping Lemma: Thus:

Prof. Busch - LSU27 From the Pumping Lemma: Thus:

Prof. Busch - LSU28 Since: There must exist such that:

Prof. Busch - LSU29 However:for for any

Prof. Busch - LSU30 BUT: CONTRADICTION!!!

Prof. Busch - LSU31 Our assumption that is a regular language is not true Conclusion: is not a regular language Therefore: END OF PROOF