Proof of the Pumping Theorem for Regular Languages Richard Beigel CIS Temple University.

Slides:



Advertisements
Similar presentations
If R = {(x,y)| y = 3x + 2}, then R -1 = (1) x = 3y + 2 (2) y = (x – 2)/3 (3) {(x,y)| y = 3x + 2} (4) {(x,y)| y = (x – 2)/3} (5) {(x,y)| y – 2 = 3x} (6)
Advertisements

Deterministic Finite Automata (DFA)
1 Pumping Lemma –A technique for proving a language L is NOT regular –What does the Pumping Lemma mean? –Proof of Pumping Lemma.
Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
Regular operations Sipser 1.2 (pages 47-63). First… a sample proof Latex files on ella.
PDAs => CFGs Sipser 2.2 (pages ). Last time…
Turing machines Sipser 2.3 and 3.1 (pages )
Turing machines Sipser 2.3 and 3.1 (pages )
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.
1 Introduction to Computability Theory Lecture4: Non Regular Languages Prof. Amos Israeli.
Regular operations Sipser 1.2 (pages 47-63). First… a sample proof
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 More Applications of the Pumping Lemma.
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
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.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
CS5371 Theory of Computation Lecture 5: Automata Theory III (Non-regular Language, Pumping Lemma, Regular Expression)
1 Introduction to Computability Theory Lecture4: Non Regular Languages Prof. Amos Israeli.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Limitations.
What is the best way to start? 1.Plug in n = 1. 2.Factor 6n 2 + 5n Let n be an integer. 4.Let n be an odd integer. 5.Let 6n 2 + 5n + 4 be an odd.
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.
Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
1 Regular Languages Finite Automata eg. Supermarket automatic door: exit or entrance.
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.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
INHERENT LIMITATIONS OF COMPUTER PROGAMS CSci 4011.
Great Theoretical Ideas in Computer Science.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Closure.
Great Theoretical Ideas in Computer Science.
Class Discussion Can you draw a DFA that accepts the language {a k b k | k = 0,1,2,…} over the alphabet  ={a,b}?
Pumping with Al and Izzy Richard Beigel CIS Temple University.
CSCI 2670 Introduction to Theory of Computing September 13.
Non-Context-Free Languages Section 2.3 CSC 4170 Theory of Computation.
Deterministic Finite Automata COMPSCI 102 Lecture 2.
CSCI 3130: Formal languages and automata theory Tutorial 3 Chin.
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.
Great Theoretical Ideas in Computer Science for Some.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Nonregular Languages How do you prove a language to be regular? How do you prove a language to be nonregular? A Pumping Lemma.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Complexity and Computability Theory I
Recursively Enumerable and Recursive Languages
Formal Language & Automata Theory
Non-regular languages
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Turing acceptable languages and Enumerators
DPDA Deterministic PDA
CSCI 2670 Introduction to Theory of Computing
Hopcroft, Motawi, Ullman, Chap 4, sections 4.1 and 4.2
Elementary Questions about Regular Languages
Non-regular languages
Great Theoretical Ideas in Computer Science
Turing acceptable languages and Enumerators
Undecidable problems:
More Applications of the Pumping Lemma
DPDA Deterministic PDA
Chapter 1 Regular Language
CSCI 2670 Introduction to Theory of Computing
Presentation transcript:

Proof of the Pumping Theorem for Regular Languages Richard Beigel CIS Temple University

The Pumping Theorem for Regular Languages If L is regular then  N  z such that z  L and |z|  N  u,v,w such that z = uvw, |uv|  N, and |v| > 0  i [uv i w  L]

Proof Assume L is regular Then there is a (standardized) DFR P that recognizes L (no EOF or NOOP) Let be N be the number of control states in P Let z  L and |z|  N Consider P’s accepting computation on input z Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N.

Proof Then there is a standardized DFR P that recognizes L (no EOF or NOOP) Let be N be the number of control states in P Let z  L and |z|  N Consider P’s accepting computation on input z Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N. By the pigeonhole principle q j =q k for some j<k

Proof Let be N be the number of control states in P Let z  L and |z|  N Consider P’s accepting computation on input z Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N. By the pigeonhole principle q j =q k for some j<k Let u be the string scanned between q 0 and q j

Proof Let z  L and |z|  N Consider P’s accepting computation on input z Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N. By the pigeonhole principle q j =q k for some j<k Let u be the string scanned between q 0 and q j Let v be the string scanned between q j and q k

Proof Consider P’s accepting computation on input z Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N. By the pigeonhole principle q j =q k for some j<k Let u be the string scanned between q 0 and q j Let v be the string scanned between q j and q k Let w be the string scanned between q k and q n

Proof Let q 0, q 1, …, q n be the sequence of control states in that computation. Then n  N. By the pigeonhole principle q j =q k for some j<k Let u be the string scanned between q 0 and q j Let v be the string scanned between q j and q k Let w be the string scanned between q k and q n Then uvw = z, |uv|  N, |v|  1, and P accepts uv i w for all i  0

Proof By the pigeonhole principle q j =q k for some j<k Let u be the string scanned between q 0 and q j Let v be the string scanned between q j and q k Let w be the string scanned between q k and q n Then uvw = z, |uv|  N, |v|  1, and P accepts uv i w for all i  0 Therefore uv i w  L for all i  0, completing the proof of the Pumping Theorem

Picture-proof that uv*w  L q0q0 qjqj qnqn u v w q j = q k

Example: L = {a n 2 : n  0} Assume L is regular Let N be given by the Pumping Theorem Let z = a N 2 Let u, v, w be given by the Pumping Theorem Then v = a k where 0 < k  N Let i = 2 Then uv i w = uv 2 w = uvvw = a N 2 + k Since N 2 < N 2 + k  N 2 + N < N 2 + 2N + 1 = (N + 1) 2, N 2 + k is not a square, so uv i w = a N 2 + k  L This contradicts the Pumping Theorem, so L is not regular

Example: L = {a m b n : m  n} Assume L is regular Let N be given by the Pumping Theorem Let z = a N b N Let u, v, w be given by the Pumping Theorem Then v = a k where 0 < k  N Let i = 2 Then uv i w = uvvw = a N+k b N Since k > 0, N+k > N, so uv i w = a N+k b N  L This contradicts the Pumping Theorem, so L is not regular

Example: L = {a m b n : m  n} Assume L is regular Let N be given by the Pumping Theorem Let z = a N b N Let u, v, w be given by the Pumping Theorem Then v = a k where 0 < k  N Let i = 0 Then uv i w = uw = a N-k b N Since k > 0, N-k < N, so uv i w = a N-k b N  L This contradicts the Pumping Theorem, so L is not regular