TK PrasadPumping Lemma1 Nonregularity Proofs. TK PrasadPumping Lemma2 Grand Unification Regular Languages: Grand Unification (Parallel Simulation) (Rabin.

Slides:



Advertisements
Similar presentations
Lecture 9,10 Theory of AUTOMATA
Advertisements

Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
Finite Automata Great Theoretical Ideas In Computer Science Anupam Gupta Danny Sleator CS Fall 2010 Lecture 20Oct 28, 2010Carnegie Mellon University.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Mount Holyoke College 2 Nonregular languages? We now know: –Regular languages may be specified either.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
Fall 2006Costas Busch - RPI1 Regular Expressions.
1 Positive Properties of Context-Free languages. 2 Context-free languages are closed under: Union is context free is context-free.
CS 310 – Fall 2006 Pacific University CS310 Pumping Lemma Sections:1.4 page 77 September 27, 2006.
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.
1 Languages and Finite Automata or how to talk to machines...
Lecture 7 Sept 22, 2011 Goals: closure properties regular expressions.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2006Costas Busch - RPI1 Properties of Regular Languages.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Limitations.
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.
Transparency No. 7-1 Formal Language and Automata Theory Chapter 7 Limitations of Finite Automata (lecture 11 and 12)
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
FSA Lecture 1 Finite State Machines. Creating a Automaton  Given a language L over an alphabet , design a deterministic finite automaton (DFA) M such.
Transparency No. P2C5-1 Formal Language and Automata Theory Part II Chapter 5 The Pumping Lemma and Closure properties for Context-free Languages.
1 Background Information for the Pumping Lemma for Context-Free Languages Definition: Let G = (V, T, P, S) be a CFL. If every production in P is of the.
Cs466(Prasad)L14Equiv1 Equivalence of Regular Language Representations.
Prof. Busch - LSU1 Non-regular languages (Pumping Lemma)
1 Non-regular languages. 2 Regular languages Non-regular languages.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
Tutorial CSC3130 : Formal Languages and Automata Theory Haifeng Wan ( )
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Closure.
Chapter 4 Pumping Lemma Properties of Regular Languages Decidable questions on Regular Languages.
CS 3240 – Chapter 4.  Closure Properties  Algorithms for Elementary Questions:  Is a given word, w, in L?  Is L empty, finite or infinite?  Are L.
Class Discussion Can you draw a DFA that accepts the language {a k b k | k = 0,1,2,…} over the alphabet  ={a,b}?
Properties of Regular Languages
Chapter 6 Properties of Regular Languages. 2 Regular Sets and Languages  Claim(1). The family of languages accepted by FSAs consists of precisely the.
CS355 - Theory of Computation Regular Expressions.
Conversions & Pumping Lemma CPSC 388 Fall 2001 Ellen Walker Hiram College.
CSCI 2670 Introduction to Theory of Computing September 13.
CS 203: Introduction to Formal Languages and Automata
Regular Expressions Costas Busch - LSU.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 9 Mälardalen University 2006.
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
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.
Chapter 8 Properties of Context-free Languages These class notes are based on material from our textbook, An Introduction to Formal Languages and Automata,
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.
Finite Automata Great Theoretical Ideas In Computer Science Victor Adamchik Danny Sleator CS Spring 2010 Lecture 20Mar 30, 2010Carnegie Mellon.
Cs466(Prasad)L11PLEG1 Examples Applying Pumping Lemma.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
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.
Regular Languages Chapter 1 Giorgi Japaridze Theory of Computability.
CS 154 Formal Languages and Computability March 17 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
1 Use the pumping theorem for context-free languages to prove that L= { a n b a n b a p : n, p ≥ 0, p ≥ n } is not context-free. Hint: For the pumping.
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Properties of Regular Languages
PROPERTIES OF REGULAR LANGUAGES
CSE 3813 Introduction to Formal Languages and Automata
PDAs Accept Context-Free Languages
Properties of Regular Languages
CSE322 PROPERTIES OF REGULAR LANGUAGES
Properties of Regular Languages
4. Properties of Regular Languages
Deterministic PDAs - DPDAs
Properties of Regular Languages
Closure Properties of Context-Free languages
Elementary Questions about Regular Languages
Chapter 4 Properties of Regular Languages
Properties of Context-Free languages
CHAPTER 1 Regular Languages
Presentation transcript:

TK PrasadPumping Lemma1 Nonregularity Proofs

TK PrasadPumping Lemma2 Grand Unification Regular Languages: Grand Unification (Parallel Simulation) (Rabin and Scott’s work) (Collapsing graphs; Structural Induction) (S. Kleene’s work) (Construction) (Solving linear equations)

TK PrasadPumping Lemma3 Role of various representations for Regular Languages Closure under complemention. (DFAs) Closure under union, concatenation, and Kleene star. (NFA- s, Regular expression.) Consequence: Closure under intersection by De Morgan’s Laws. Relationship to context-free languages. (Regular Grammars.) Ease of specification. (Regular expression.) Building tokenizers/lexical analyzers. (DFAs)

TK PrasadPumping Lemma4 Consider pairs of strings: M If L were regular, then there exists a DFA M accepting L with the following property:

TK PrasadPumping Lemma5 JUSTIFICATION: Otherwise, from the definition of DFA, CLAIM: which contradicts the earlier conclusion. In order to satisfy the machine M must have a unique state for every i. infinite Thus, M must have infinite number of states, if L is regular. This violates the definition of DFA. So, L must be non-regular.

TK PrasadPumping Lemma6 Using Closure Properties Regular languages are closed under set-intersection. Note that regularity is a property of a collection, and not a property of an individual string in the collection. L1=bit strings with even parity L2=bit strings with number of 1’s divisible by 3 L=bit strings with number of 1’s a multiple of 6

TK PrasadPumping Lemma7 Show that is not regular. Proof: If L were regular, ought to be regular. However, is known to be non-regular. Hence, L cannot be regular. If R is a regular language and C is context-free, then may not be regular. Proof:

TK PrasadPumping Lemma8 Prelude to Pumping Lemma Is divisible by 46? Is divisible by 46? Is divisible by 46? Necessary vs sufficient condition

TK PrasadPumping Lemma9 Pumping Lemma for Regular Languages It is a necessary condition. –Every regular language satisfies it. –If a language violates it, it is not regular. RL => PL not PL => not RL It is not a sufficient condition. –Not every non-regular language violates it. not RL =>? PL or not PL (no conclusion)

TK PrasadPumping Lemma10 Basic Idea: q0 b a a a,b b b a q2q3 q1

TK PrasadPumping Lemma11 Note, So,

TK PrasadPumping Lemma12 Fundamental Observation Given a “sufficiently” long string, the states of a DFA must repeat in an accepting computation. These cycles can then be used to predict (generate) infinitely many other strings in (of) the language. Pigeon-Hole Principle

TK PrasadPumping Lemma13 Pumping Lemma Let L be a regular language that is accepted by a DFA M with k states. Let z be any string in L with. Then z can be decomposed as uvw with

TK PrasadPumping Lemma14 For all sufficiently long strings (z) There exists non-null prefix (uv) and substring (v) For all repetitions of the substring (v), we get strings in the language.

TK PrasadPumping Lemma15 Proving non-regularity If there exists an arbitrarily long string s L, and for each decomposition s = uvw, there exists an i such that, then L is non-regular. Negation of the necessary condition:

TK PrasadPumping Lemma16 Examples Applying Pumping Lemma

TK PrasadPumping Lemma17 Proof by contradiction: Let be accepted by a k-state DFA. Choose For all prefixes of length show there exists such that i.e.,

TK PrasadPumping Lemma18 Choose (For this specific problem happens to be independent of j, but that need not always be the case.) is non-regular because it violates the necessary condition.

TK PrasadPumping Lemma19 Proof : ( For this example, choice of initial string is crucial.) For this choice of s, the pumping lemma cannot generate a contradiction! However, let instead.

TK PrasadPumping Lemma20 For Thus, by pumping the substring containing a’s 0 times (effectively deleting it), the number of a’s can be made smaller than the number of b’s. So, by pumping lemma, L is non-regular.

TK PrasadPumping Lemma21 Proof by contradiction: –If is regular, then so is, the complement of – But which is known to be non-regular. –So, cannot be regular.

TK PrasadPumping Lemma22 Summary: Proof Techniques Counter Examples Constructions/Simulations Induction Proofs Impossibility Proofs Proofs by Contradiction Reduction Proofs : Closure Properties