1 / 31

More Applications of the Pumping Lemma

More Applications of the Pumping Lemma. The Pumping Lemma:. Given a infinite regular language . there exists an integer . for any string with length . we can write. with and. such that:. Non-regular languages. Regular languages.

holleb
Download Presentation

More Applications of the Pumping Lemma

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. More Applications ofthe Pumping Lemma

  2. The Pumping Lemma: • Given a infinite regular language • there exists an integer • for any string with length • we can write • with and • such that:

  3. Non-regular languages Regular languages

  4. Theorem: The language is not regular Proof: Use the Pumping Lemma

  5. Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

  6. Let be the integer in the Pumping Lemma Pick a string such that: and length We pick

  7. Write From the Pumping Lemma it must be that length Thus:

  8. From the Pumping Lemma: Thus:

  9. From the Pumping Lemma: Thus:

  10. BUT: CONTRADICTION!!!

  11. Therefore: Our assumption that is a regular language is not true Conclusion: is not a regular language

  12. Non-regular languages Regular languages

  13. Theorem: The language is not regular Proof: Use the Pumping Lemma

  14. Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

  15. Let be the integer in the Pumping Lemma Pick a string such that: and length We pick

  16. Write From the Pumping Lemma it must be that length Thus:

  17. From the Pumping Lemma: Thus:

  18. From the Pumping Lemma: Thus:

  19. BUT: CONTRADICTION!!!

  20. Therefore: Our assumption that is a regular language is not true Conclusion: is not a regular language

  21. Non-regular languages Regular languages

  22. Theorem: The language is not regular Proof: Use the Pumping Lemma

  23. Assume for contradiction that is a regular language Since is infinite we can apply the Pumping Lemma

  24. Let be the integer in the Pumping Lemma Pick a string such that: length We pick

  25. Write From the Pumping Lemma it must be that length Thus:

  26. From the Pumping Lemma: Thus:

  27. From the Pumping Lemma: Thus:

  28. Since: There must exist such that:

  29. However: for for any

  30. BUT: CONTRADICTION!!!

  31. Therefore: Our assumption that is a regular language is not true Conclusion: is not a regular language

More Related