SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Pumping
Lemma for
Regular sets
-Sampath Kumar S,
AP/CSE, SECE
Pumping for Regular Set:
Theorem:
Let L be a regular set. Then there exists a
constant ‘n’ such that for every string W in L −
 |W| ≥ n
We can break W into 3 strings, W = X Y Z, such that:
 |Y| > 0
 |XY| ≤ n
 For all k ≥ 0, the string XYkZ is also in L.
Note: Select k such that the resulting string is not in L.
11/21/2017
Sampath Kumar S, AP/CSE, SECE
2
Applications of Pumping Lemma:
Pumping Lemma is to be applied to show that
certain languages are not regular. It should never be
used to show a language is regular.
 If L is regular, it satisfies Pumping Lemma.
 If L is non-regular, it does not satisfy Pumping
Lemma.
11/21/20173
Sampath Kumar S, AP/CSE, SECE
Method to prove that a language
L is not regular
 At first, we have to assume that L is regular.
 So, the pumping lemma should hold for L.
 Use the pumping lemma to obtain a contradiction
−
 Select W such that |W| ≥ n
 Select Y such that |Y| > 0
 Select X such that |XY| ≤ n
 Assign the remaining string to Z.
 Select k such that the resulting string is not in L.
 Hence L is not regular
11/21/2017
Sampath Kumar S, AP/CSE, SECE
4
Problems to Discuss:
45. Prove that L = {aibi | i ≥ 0} is not regular.
Solution
 At first, we assume that L is regular and n is the number of
states.
 Let w = anbn. Thus |W| = 2n ≥ n.
 By pumping lemma, let W = XYZ, where |XY|≤ n.
 Let X = ap, Y = aq, and Z = arbn, where p + q + r = n.p ≠ 0, q ≠ 0,
r ≠ 0. Thus |y|≠ 0
 Let k = 2. Then xy2z = apa2qarbn.
 Number of a’s = (p + 2q + r) = (p + q + r) + q = n + q
 Hence, xy2z = an+q bn. Since q ≠ 0, xy2z is not of the form anbn.
 Thus, xy2z is not in L. Hence L is not regular.
11/21/20175
Sampath Kumar S, AP/CSE, SECE
Problems to Discuss:
47. Prove that L = {wwR|w ∈ {a,b}} is not regular.
48. Prove that L = {0n1n2n|n>1} is not regular.
49. Prove that L = {0n1m|m>n & m,n>0} is not
regular
11/21/2017
Sampath Kumar S, AP/CSE, SECE
6
11/21/2017
Sampath Kumar S, AP/CSE, SECE
7
நன்றி
11/21/2017
Sampath Kumar S, AP/CSE, SECE
8

More Related Content

PPTX
CLR AND LALR PARSER
DOC
Time and space complexity
PPTX
Pumping lemma Theory Of Automata
PPT
Chapter 4 data link layer
PPTX
2 phase locking protocol DBMS
PPTX
Types of Parser
PPT
Multi Head, Multi Tape Turing Machine
PPTX
Automata theory - Push Down Automata (PDA)
CLR AND LALR PARSER
Time and space complexity
Pumping lemma Theory Of Automata
Chapter 4 data link layer
2 phase locking protocol DBMS
Types of Parser
Multi Head, Multi Tape Turing Machine
Automata theory - Push Down Automata (PDA)

What's hot (20)

PDF
Syntax Directed Definition and its applications
PPTX
Pumping lemma
PPT
16. Concurrency Control in DBMS
PPSX
Issues in Data Link Layer
PPTX
Church Turing Thesis
PPTX
Regular expressions
PDF
Symbol table in compiler Design
PDF
NFA to DFA
PPT
Transport services
PPTX
object oriented methodologies
PPTX
CONTEXT FREE GRAMMAR
PPT
Kleene's theorem
PPTX
Point to-point protocol (ppp)
PDF
Automata theory
PPT
Selective repeat protocol
PPT
Turing Machine
PPT
15. Transactions in DBMS
PDF
Theory of Computation Lecture Notes
PPTX
Automata theory - NFA ε to DFA Conversion
PPTX
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Syntax Directed Definition and its applications
Pumping lemma
16. Concurrency Control in DBMS
Issues in Data Link Layer
Church Turing Thesis
Regular expressions
Symbol table in compiler Design
NFA to DFA
Transport services
object oriented methodologies
CONTEXT FREE GRAMMAR
Kleene's theorem
Point to-point protocol (ppp)
Automata theory
Selective repeat protocol
Turing Machine
15. Transactions in DBMS
Theory of Computation Lecture Notes
Automata theory - NFA ε to DFA Conversion
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Ad

Similar to 1.10. pumping lemma for regular sets (20)

PPT
Mba admission in india
PPTX
AUTOMATA AUTOMATA Automata5Chapter4.pptx
PPTX
RegularLanguageProperties.pptx
PDF
09.LearningMaterial_Sample.pdf
PPT
hop-chap4.ppt
PPTX
pumpexamples.pptx
PPT
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PDF
Pumping lemma (1)
PPT
Pumping lemma
PDF
Lecture-8-Pumpdndndndndnddndning Lemma.pdf
PDF
Pumping lema topic of theory of automata
PDF
Regular pumping examples
PPTX
Pumping lemma for regular set h1
PPT
non regular language and pumping lemma toc
PPT
Theory of computing pdf
PPT
06_PumpingLemma compiler design of chapter 4.ppt
PPTX
Pumming Lemma
PPT
non regular language updated theory of automata.ppt
PPT
Class6
PPT
hw4s05solns.ppt
Mba admission in india
AUTOMATA AUTOMATA Automata5Chapter4.pptx
RegularLanguageProperties.pptx
09.LearningMaterial_Sample.pdf
hop-chap4.ppt
pumpexamples.pptx
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
Pumping lemma (1)
Pumping lemma
Lecture-8-Pumpdndndndndnddndning Lemma.pdf
Pumping lema topic of theory of automata
Regular pumping examples
Pumping lemma for regular set h1
non regular language and pumping lemma toc
Theory of computing pdf
06_PumpingLemma compiler design of chapter 4.ppt
Pumming Lemma
non regular language updated theory of automata.ppt
Class6
hw4s05solns.ppt
Ad

More from Sampath Kumar S (20)

PPTX
5.2 primitive recursive functions
PPTX
4.7. chomskian hierarchy of languages
PPTX
4.6 halting problem
PPTX
4.3 techniques for turing machines construction
PPTX
4.2 variantsof turing machines (types of tm)
PPTX
4.1 turing machines
PPTX
3.6 & 7. pumping lemma for cfl & problems based on pl
PPTX
3.5 equivalence of pushdown automata and cfl
PPTX
3.4 deterministic pda
PPTX
3.1,2,3 pushdown automata definition, moves & id
PPTX
2.8 normal forms gnf & problems
PPTX
2.7 normal forms cnf & problems
PPTX
2.5 ambiguity in context free grammars
PPTX
2.4 derivations and languages
PPTX
2.3 context free grammars and languages
PPTX
2.1 & 2.2 grammar introduction – types of grammar
PPTX
1.9. minimization of dfa
PPTX
1.8. equivalence of finite automaton and regular expressions
PPTX
1.7. eqivalence of nfa and dfa
PPTX
1.5 & 1.6 regular languages & regular expression
5.2 primitive recursive functions
4.7. chomskian hierarchy of languages
4.6 halting problem
4.3 techniques for turing machines construction
4.2 variantsof turing machines (types of tm)
4.1 turing machines
3.6 & 7. pumping lemma for cfl & problems based on pl
3.5 equivalence of pushdown automata and cfl
3.4 deterministic pda
3.1,2,3 pushdown automata definition, moves & id
2.8 normal forms gnf & problems
2.7 normal forms cnf & problems
2.5 ambiguity in context free grammars
2.4 derivations and languages
2.3 context free grammars and languages
2.1 & 2.2 grammar introduction – types of grammar
1.9. minimization of dfa
1.8. equivalence of finite automaton and regular expressions
1.7. eqivalence of nfa and dfa
1.5 & 1.6 regular languages & regular expression

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharma ospi slides which help in ospi learning
PDF
Business Ethics Teaching Materials for college
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Basic Mud Logging Guide for educational purpose
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Institutional Correction lecture only . . .
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
RMMM.pdf make it easy to upload and study
Anesthesia in Laparoscopic Surgery in India
Pharma ospi slides which help in ospi learning
Business Ethics Teaching Materials for college
TR - Agricultural Crops Production NC III.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Basic Mud Logging Guide for educational purpose
PPH.pptx obstetrics and gynecology in nursing
Module 4: Burden of Disease Tutorial Slides S2 2025
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Institutional Correction lecture only . . .
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Week 4 Term 3 Study Techniques revisited.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

1.10. pumping lemma for regular sets

  • 2. Pumping for Regular Set: Theorem: Let L be a regular set. Then there exists a constant ‘n’ such that for every string W in L −  |W| ≥ n We can break W into 3 strings, W = X Y Z, such that:  |Y| > 0  |XY| ≤ n  For all k ≥ 0, the string XYkZ is also in L. Note: Select k such that the resulting string is not in L. 11/21/2017 Sampath Kumar S, AP/CSE, SECE 2
  • 3. Applications of Pumping Lemma: Pumping Lemma is to be applied to show that certain languages are not regular. It should never be used to show a language is regular.  If L is regular, it satisfies Pumping Lemma.  If L is non-regular, it does not satisfy Pumping Lemma. 11/21/20173 Sampath Kumar S, AP/CSE, SECE
  • 4. Method to prove that a language L is not regular  At first, we have to assume that L is regular.  So, the pumping lemma should hold for L.  Use the pumping lemma to obtain a contradiction −  Select W such that |W| ≥ n  Select Y such that |Y| > 0  Select X such that |XY| ≤ n  Assign the remaining string to Z.  Select k such that the resulting string is not in L.  Hence L is not regular 11/21/2017 Sampath Kumar S, AP/CSE, SECE 4
  • 5. Problems to Discuss: 45. Prove that L = {aibi | i ≥ 0} is not regular. Solution  At first, we assume that L is regular and n is the number of states.  Let w = anbn. Thus |W| = 2n ≥ n.  By pumping lemma, let W = XYZ, where |XY|≤ n.  Let X = ap, Y = aq, and Z = arbn, where p + q + r = n.p ≠ 0, q ≠ 0, r ≠ 0. Thus |y|≠ 0  Let k = 2. Then xy2z = apa2qarbn.  Number of a’s = (p + 2q + r) = (p + q + r) + q = n + q  Hence, xy2z = an+q bn. Since q ≠ 0, xy2z is not of the form anbn.  Thus, xy2z is not in L. Hence L is not regular. 11/21/20175 Sampath Kumar S, AP/CSE, SECE
  • 6. Problems to Discuss: 47. Prove that L = {wwR|w ∈ {a,b}} is not regular. 48. Prove that L = {0n1n2n|n>1} is not regular. 49. Prove that L = {0n1m|m>n & m,n>0} is not regular 11/21/2017 Sampath Kumar S, AP/CSE, SECE 6

Editor's Notes

  • #2: School of EECS, WSU