AUTOMATA
PUMPING-LEMMA
Name- Anshika Das
Roll no- 14400121029
Subject code-PEC-IT501A
Subject-Theory of Computation
Sem-5th
College-Neotia Institute of Technology
Management and Science
agenda
• Introduction
• Types
• Examples
• Advantages
• Applications
INTRODUCTION
• Pumping Lemma IsUsedTo ProveThat
a Language Is Not Regular .
• ItCan Not BeUse to ProveThat a
Language Is Regular.
TYPES OF PUMPING LEMMA
Context-free
languages
Regular
languages
For regular languages
• Pumping Lemma IsUsedTo ProveThat a Language
Is Not Regular
• ItCan Not BeUse to ProveThat a Language Is Regular
• n simple terms, this means that if a string v is ‘pumped’,
i.e., if v is inserted any number of times, the resultant
string still remains in L.
• Pumping Lemma is used as a proof for irregularity of a
language.Thus, if a language is regular, it always
satisfies pumping lemma. If there exists at least one
string made from pumping which is not in L, then L is
surely not regular.
The opposite of this may not always be true.That is, if
Pumping Lemma holds, it does not mean that the
language is regular
P.L For Regular Language Rules
Example
Pumping Lemma of Context Free Language
• Pumping Lemma isUsed to Prove that a
Language Is NotContext Free.
• Pumping Lemma forCFL states that for any
Context Free Language L, it is possible to
find two substrings that can be ‘pumped’
any number of times and still be in the
same language. For any language L, we
break its strings into five parts and pump
second and fourth substring.
Pumping Lemma, here also, is used as a
tool to prove that a language is notCFL.
Because, if any one string does not satisfy
its conditions, then the language is notCFL.
P.L For CFG Rules
• Let L(G) IsCFGThen FollowingCondition Must BeSatisfied.
• Steps
n is natural Number AndZ=uvwxy For
1. EveryZ ∈ L(G) With |Z|>=n
String Divide Into Five Parts.
2. |vx|>=1
3. |uwx|<=n
4. u v^k w x^k y ∈ L forAll K>=0
Example
• Prove L={a^i,b^i,c^I / i>=1} is NotCFG.
n=10
1. Assume L Is CFG & n is Natural Number
2. L={abc,aabbcc,aaabbbccc,aaaabbbbcccc….}
3. Z=aaaabbbbcccc |z|>=n
4. v & x Contain Some Symbols
5. u=aa, v=aa, w=bbbb, x=c, y=ccc
6. u v^i w x^i y ∈ L K>=0
7. K=1 aaaabbbbcccc ∈L
8. K=2 aaaaaabbbbccccc ! ∈ L
ADVANTAGES OF PUMPING-LEMMA
• Pumping lemma for regular languages, the fact that all
sufficiently long strings in such a language have a substring
that can be repeated arbitrarily many times, usually used to
prove that certain languages are not regular.
• Pumping lemma for context-free languages, the fact that all
sufficiently long strings in such a language have a pair of
substrings that can be repeated arbitrarily many times,
usually used to prove that certain languages are not context-
free
• Pumping lemma for indexed languages
Applications of Pumping Lemma
• Pumping lemma is a negative test. It can be used in
applications like Showing an invalid move in game of chess.As
the move may not obey rules of game.
Applications of Pumping Lemma
• pumping lemma can be applied to prove
that the inputted move is invalid.
Moreover, some Power stations also use
this lemma for determining the cut off
temperatures to be kept in furnaces.
• For an example, say pumping lemma can
answer to why the temperature shouldn’t
go beyond 250 Degrees, etc.Thus, in a
nutshell, pumping lemma has variety of
applications in practical engineering.
REFRENCES
https://en.wikipedia.org/wiki/Pumping_lemma
https://www.geeksforgeeks.org/theory-of-computation-pumping-lemma/
https://www.sanfoundry.com/automata-theory-pumping-lemma-regular-languages
pumping-lemma-181011153118.pptx

pumping-lemma-181011153118.pptx

  • 1.
  • 2.
    Name- Anshika Das Rollno- 14400121029 Subject code-PEC-IT501A Subject-Theory of Computation Sem-5th College-Neotia Institute of Technology Management and Science
  • 3.
    agenda • Introduction • Types •Examples • Advantages • Applications
  • 4.
    INTRODUCTION • Pumping LemmaIsUsedTo ProveThat a Language Is Not Regular . • ItCan Not BeUse to ProveThat a Language Is Regular.
  • 5.
    TYPES OF PUMPINGLEMMA Context-free languages Regular languages
  • 6.
    For regular languages •Pumping Lemma IsUsedTo ProveThat a Language Is Not Regular • ItCan Not BeUse to ProveThat a Language Is Regular • n simple terms, this means that if a string v is ‘pumped’, i.e., if v is inserted any number of times, the resultant string still remains in L. • Pumping Lemma is used as a proof for irregularity of a language.Thus, if a language is regular, it always satisfies pumping lemma. If there exists at least one string made from pumping which is not in L, then L is surely not regular. The opposite of this may not always be true.That is, if Pumping Lemma holds, it does not mean that the language is regular
  • 7.
    P.L For RegularLanguage Rules
  • 8.
  • 9.
    Pumping Lemma ofContext Free Language • Pumping Lemma isUsed to Prove that a Language Is NotContext Free. • Pumping Lemma forCFL states that for any Context Free Language L, it is possible to find two substrings that can be ‘pumped’ any number of times and still be in the same language. For any language L, we break its strings into five parts and pump second and fourth substring. Pumping Lemma, here also, is used as a tool to prove that a language is notCFL. Because, if any one string does not satisfy its conditions, then the language is notCFL.
  • 10.
    P.L For CFGRules • Let L(G) IsCFGThen FollowingCondition Must BeSatisfied. • Steps n is natural Number AndZ=uvwxy For 1. EveryZ ∈ L(G) With |Z|>=n String Divide Into Five Parts. 2. |vx|>=1 3. |uwx|<=n 4. u v^k w x^k y ∈ L forAll K>=0
  • 11.
    Example • Prove L={a^i,b^i,c^I/ i>=1} is NotCFG. n=10 1. Assume L Is CFG & n is Natural Number 2. L={abc,aabbcc,aaabbbccc,aaaabbbbcccc….} 3. Z=aaaabbbbcccc |z|>=n 4. v & x Contain Some Symbols 5. u=aa, v=aa, w=bbbb, x=c, y=ccc 6. u v^i w x^i y ∈ L K>=0 7. K=1 aaaabbbbcccc ∈L 8. K=2 aaaaaabbbbccccc ! ∈ L
  • 12.
    ADVANTAGES OF PUMPING-LEMMA •Pumping lemma for regular languages, the fact that all sufficiently long strings in such a language have a substring that can be repeated arbitrarily many times, usually used to prove that certain languages are not regular. • Pumping lemma for context-free languages, the fact that all sufficiently long strings in such a language have a pair of substrings that can be repeated arbitrarily many times, usually used to prove that certain languages are not context- free • Pumping lemma for indexed languages
  • 13.
    Applications of PumpingLemma • Pumping lemma is a negative test. It can be used in applications like Showing an invalid move in game of chess.As the move may not obey rules of game.
  • 14.
    Applications of PumpingLemma • pumping lemma can be applied to prove that the inputted move is invalid. Moreover, some Power stations also use this lemma for determining the cut off temperatures to be kept in furnaces. • For an example, say pumping lemma can answer to why the temperature shouldn’t go beyond 250 Degrees, etc.Thus, in a nutshell, pumping lemma has variety of applications in practical engineering.
  • 15.