Pumping Lemma for Context-Free Languages, Statement and FULL PROOF

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 41

  • @mystic3549
    @mystic3549 9 месяцев назад +5

    you have the most professional and intuitive pedagogical style ive ever seen among all profs and teachers teaching theory of computation :) these videos are so interesting ...literally gems ...tysm

  • @aerialeye7744
    @aerialeye7744 3 года назад +21

    I swear you're tailoring these perfectly to my ASU professor's lectures lol. Saving my grade!!!!!!!

    • @EasyTheory
      @EasyTheory  3 года назад +16

      Guess where I taught before ;)

    • @aerialeye7744
      @aerialeye7744 3 года назад +2

      @@EasyTheory that would make a lot of sense

  • @miltonvento8767
    @miltonvento8767 3 месяца назад +1

    FINALLY got to understand the pumping lemma!!! YOU ARE AMAZING! THANK YOU SO MUCH! Very intuitive video, easy to follow and understand an d better than all the slides, notes, and textbook readings I've interacted with so far. Thank you!!!

  • @abigarcia9588
    @abigarcia9588 8 месяцев назад +1

    tonight i'm binging on your videos till sunrise bc i have automata theory exam tomorrow, tysm for your vids, best explanations out there! greetings from mexico :)

    • @imiriath2411
      @imiriath2411 7 месяцев назад +1

      howd the exam go? im in the same position...

  • @BryanOnofre
    @BryanOnofre 4 года назад +6

    Thank you for this awesome video! very timely because I'm currently taking theory of computation and we are on this subject! Will there be any videos soon on actually using the pumping lemma on a few examples??

    • @EasyTheory
      @EasyTheory  4 года назад +6

      Guess what's coming out on monday ;)

  • @hamedpanjeh3947
    @hamedpanjeh3947 4 года назад +5

    Isn't CNF awesome? absolutely yes, Only with your awesome explanation!

  • @korhankemalkaya5231
    @korhankemalkaya5231 9 месяцев назад

    Great explanation! Thanks.

  • @gourangpathak4443
    @gourangpathak4443 Год назад +1

    you're a great teacher

  • @isaacchuah7543
    @isaacchuah7543 3 года назад +1

    Awesome video. Just wanted to point out that there might be an error at the start when you were talking about the length of the word w. I think (i think anyways) that it should be less than or equal to, not more than or equal to 2^#variables.
    Ignore me if I'm wrong haha.

    • @EasyTheory
      @EasyTheory  3 года назад +2

      No, it should be greater than, because we want the tree to be super tall, so that a variable repeats. And we can't guarantee that unless we make the string (that we are trying to generate via the parse tree) super long.

  • @wsverdlik
    @wsverdlik 3 года назад +1

    Very nice lecture. But a question: in your proof that |vy|>=1 you spoke about productions like A->AB and A->BA and then showed that at least one of v and y could not be empty. But suppose there is a production like A->AA? CNF permits this production, but in fact wouldn't v and y be empty? Thanks.

    • @EasyTheory
      @EasyTheory  3 года назад +2

      Yes that's true. However, note that we looked at a *single* path from the top to the bottom, and so when we reach the "top" A, the path has to pick one of the two variables underneath it, with the other child variable being the "other side".

    • @wsverdlik
      @wsverdlik 3 года назад

      @@EasyTheory Ah yes, I see it now. Thank you, very good presentation.

  • @ngamcode2485
    @ngamcode2485 11 месяцев назад

    Thank you a lot.I have a question, what's happening if the parse tree are not fully connected. Does the prove work ?

  • @Miauwfy8bk
    @Miauwfy8bk Год назад

    Why do we need to add +1 at the end of 2^(#vars +1) +1?

  • @wsverdlik
    @wsverdlik 3 года назад

    Suppose we consider the language (a^n)(b*)(c^n) ; clearly this is context free and the decomposition of vxy would be v=a and y=c. So x is zero or more b's. We know |vxy|

    • @razvanefros411
      @razvanefros411 Год назад +1

      i hope this reply is useful 2 years later, but to clarify, the value of p is never settled to be something concrete. It is a number that the pumping lemma guarantees to exist if the language is context-free. You can of course think about it and find p for your specific example, but that is redundant, since you already know its Context Free (You can easily create the CFG for this language).
      Also, be mindful that the Pumping Lemma CANNOT be used to prove a language is Context Free - All CFL are Pumpable, but not all Pumpable Languages are Context Free!!
      You only really use the number p when trying to prove a language is not context free, in which case you would:
      I) Assume the language is a CFL (and thus pumpable)
      II) pick a word from the language with respect to p, making sure its longer than p
      III) prove that for any way of splitting the picked word into uvxyz it is impossible to pump it, thus achieving contradiction

  • @AyushGupta-mh6vq
    @AyushGupta-mh6vq 3 года назад +4

    ThNk MadhR jaini

  • @mustafadogan7958
    @mustafadogan7958 Год назад

    Which Programm are u using? Thank you!

  • @berkant8074
    @berkant8074 3 года назад

    amazing! thanks from turkey

  • @tejaspandit2551
    @tejaspandit2551 3 года назад

    Does parse tree come under pumping lemma for cfl

  • @somesome1315
    @somesome1315 3 года назад

    Nice lecture. thank you.
    I have one question. it says |vxy|

    • @somesome1315
      @somesome1315 3 года назад

      Well I thought about it, and is this the reason why existence of pumping lemma doesn't guarantee that it is CNF
      But all CNF has pumping lemma which means p(it is CNF) -> q(has pumping lemma) but not q -> p

  • @heileychan4910
    @heileychan4910 7 месяцев назад

    thank you so much!!

  • @anastasiamadrevska1668
    @anastasiamadrevska1668 2 года назад

    Thank you!

  • @yoavg2281
    @yoavg2281 4 года назад

    You are the best!😊😊

  • @cleopinoli
    @cleopinoli 3 года назад +1

    Bless you

  • @nevilholmes5900
    @nevilholmes5900 2 года назад

    thanks

  • @quantumobject3815
    @quantumobject3815 2 месяца назад

    love it

  • @drewkavi6327
    @drewkavi6327 8 месяцев назад

    goated video

  • @instagramlol
    @instagramlol 4 года назад

    Very clear derivation of pumping lemma thank you

  • @yunni7817
    @yunni7817 3 года назад

    thank you so much! now I know how it works LOL

  • @enochxu9289
    @enochxu9289 2 года назад

    🔥