Pumping Lemma (For Regular Languages)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มี.ค. 2017
  • TOC: Pumping Lemma (For Regular Languages)
    This lecture discusses the concept of Pumping Lemma which is used to prove that a Language is not Regular.
    Contribute: www.nesoacademy.org/donate
    Website ► www.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Pinterest ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    • Axol x Alex Skrindo - ...

ความคิดเห็น • 187

  • @cullenjohnson242
    @cullenjohnson242 6 ปีที่แล้ว +1511

    We who are about to fail our computer theory tests salute you.

    • @bradleyharrison9059
      @bradleyharrison9059 6 ปีที่แล้ว +7

      Cullen Johnson all hail Okasaki

    • @hxpi
      @hxpi 6 ปีที่แล้ว +17

      my brethren!!!

    • @SAMBERGAS
      @SAMBERGAS 5 ปีที่แล้ว +63

      tomorrow, I face my death

    • @archentity
      @archentity 5 ปีที่แล้ว +26

      Professor before he even gives me the exam paper: *Omae wa mou shindeiru...*

    • @RICK-tj1lz
      @RICK-tj1lz 5 ปีที่แล้ว +7

      i have watched all the videos of this tutorial and i have scored good marks....

  • @moneymitch624
    @moneymitch624 6 ปีที่แล้ว +411

    Important to note that the pumping lemma should be used to prove a language is not regular only when that language is NON-FINITE. All finite languages are regular since they can be described by finite automata. This was confusing to me at first because you can trivially see that a finite language will not satisfy the pumping lemma.

    • @patvax532
      @patvax532 5 ปีที่แล้ว +8

      Thanks I literally came here to check if a language that let's say only accepts w=a as an input will work with pumping lemma. Since a finite language with no variables can be described with an FSA without any loops it won't have parts that repeat themself. It's still a regular language by definition because there is a FSA that can describe it. Thanks again!

    • @ccppurcell
      @ccppurcell 5 ปีที่แล้ว +12

      I think that last part is wrong. A finite language L trivially *satisfies* the pumping lemma: just set P to be larger than all strings in L.

    • @patvax532
      @patvax532 5 ปีที่แล้ว +2

      And what about a language that only accepts words: a,ab,abc,abcd? There is no recurring part so x(y^i)z restriction couldn't be met, so pumping lemma wouldn't be satisfied. Correct me if I'm wrong. It is a regular language however because an FSA accepting that language does exist.

    • @bibekghimire944
      @bibekghimire944 5 ปีที่แล้ว +11

      PatVax The pumping lemma can be used by setting the pumping length to 5. Thus the pumping lemma *vacuously* holds true for all such strings (length >=5) in your language since there are no such strings.

    • @sukritmanikandan3184
      @sukritmanikandan3184 2 ปีที่แล้ว +5

      @@patvax532 Late, but the reason it is true is this: The pumping lemma states that for any regular language R, there exists n such that for all w ∈ R, *If* |w| > n *then* the conditions of pumping lemma hold.
      From the truth table of implication, in a statement like *If* A *then* B, if A is false, the statement is true no matter what B is.
      Hence if we can find any n larger than the length of all words in R (and we are guaranteed to be able to, if the language is finite), the statement is always true no matter what the form of the language is.

  • @hiteshkumarsaini8197
    @hiteshkumarsaini8197 2 ปีที่แล้ว +7

    Thanks a lot for your lectures. I've watched a lot of lectures from you now & thought I should make a comment appreciating your contribution and hardwork into this.

  • @user-hb9rj3ug9y
    @user-hb9rj3ug9y 6 ปีที่แล้ว +53

    You are explaining better than my professor. I have already watched all the videos from this section. Thank you very much for what you are doing.

    • @yashagrawal1663
      @yashagrawal1663 ปีที่แล้ว +1

      my professor watches the same lecture 5 min prior to the class

  • @dimpysenchoudhury706
    @dimpysenchoudhury706 5 ปีที่แล้ว +15

    I just love the way u teach sir... It helped me a lot...thank you

  • @pisithyim9198
    @pisithyim9198 7 ปีที่แล้ว +15

    Awesome lecture and great music at the end.

  • @roy_enigma
    @roy_enigma ปีที่แล้ว +5

    thank you so much Neso Academy for this , covered whole chapter in 1 night before exam .

  • @blue_mtn4408
    @blue_mtn4408 3 ปีที่แล้ว +2

    thank you for repeating some parts. it really helps me capture what you're saying.

  • @dhayakardhaya5698
    @dhayakardhaya5698 6 ปีที่แล้ว +5

    Great lectures,your explanation is in a huge way,we are understanding very clearly and also provide gate lectures sir for theory of computation

  • @randomdump7942
    @randomdump7942 4 ปีที่แล้ว +32

    Since there is NESO academy videos to teach me this stuff, I don't attend classes anymore, and I go to test and get maximum grade.
    I feel like the video teacher is a robot because he always describe what he does or repeat very simple steps like an algorithm, but I guess that's what makes it a great teacher, easy to follow.
    Thank you.

  • @rachitchhabra9578
    @rachitchhabra9578 6 ปีที่แล้ว +5

    This is absolutely brilliant and you explain it in such an easy way!!!!

  • @ShoniaVika
    @ShoniaVika 5 ปีที่แล้ว +7

    Thank you sir for these amazing videos!

  • @rafiabdul770
    @rafiabdul770 4 ปีที่แล้ว +1

    Great to see that you are back!

  • @somalinetworksolution283
    @somalinetworksolution283 7 ปีที่แล้ว +3

    really i love u Sir because u are the best lecturer i have ever seen thanks thanks. please complete for us the subject

  • @kainaatmakhani6550
    @kainaatmakhani6550 2 ปีที่แล้ว

    Jaise hi mein ne apka lecture suna shuru kiya mein zor se phar rahi thi aur mere saare concepts clear ho gaye. Good job sir.

  • @cvit47
    @cvit47 5 ปีที่แล้ว +33

    These videos will pump you up!

  • @jithapnair2641
    @jithapnair2641 5 ปีที่แล้ว +2

    Thank you for your explanation 😊

  • @pluviophile762
    @pluviophile762 4 ปีที่แล้ว +5

    Great sir! It helped me a lot

  • @AdarshNinganurthebest
    @AdarshNinganurthebest 4 ปีที่แล้ว +4

    5. 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
    o Select w such that |w| ≥ n
    o Select y such that |y| ≥ 1
    o Select x such that |xy| ≤ n
    o Assign the remaining string to z. o Select k such that the resulting string is not in L.
     Hence L is not regular.

  • @kaifahsan8459
    @kaifahsan8459 2 ปีที่แล้ว

    Thanks for the clear explanation.

  • @kajolyadav5825
    @kajolyadav5825 7 ปีที่แล้ว +4

    Thank you so much sir for these amzing videos.
    Sir, can you please upload videos of leftover topics of this subject soon. It'll be really helpful for us.
    Thank you so much.

  • @starzone9843
    @starzone9843 4 ปีที่แล้ว +6

    Man, what an explanation👍🏻👌🏼👌🏼👌🏼👌🏼 this is the 15th video I'm watching in a row and never liked this many videos in less time😁😁👌🏼👌🏼👍🏻👍🏻👍🏻

  • @payalsagar1808
    @payalsagar1808 5 ปีที่แล้ว +5

    neso academy video lectues are fab!😍😍😍😍😍thankyou!

  • @tiagomorais5982
    @tiagomorais5982 4 ปีที่แล้ว +2

    Rodrigo Félix is very thankful for your tutorial!

  • @satyamy866
    @satyamy866 4 ปีที่แล้ว

    I think you are best teacher of TOC for me.

  • @stevenguan1664
    @stevenguan1664 6 ปีที่แล้ว

    By far the best video

  • @rabikhan9787
    @rabikhan9787 5 ปีที่แล้ว

    That was helpful. Thanks

  • @rishabmudliar1058
    @rishabmudliar1058 3 ปีที่แล้ว

    I got a viva in 2 days and you are literally saving my life rn

  • @somtara3515
    @somtara3515 4 ปีที่แล้ว

    that's quite helpful! thx!

  • @ccppurcell
    @ccppurcell 5 ปีที่แล้ว +5

    In the statement of the lemma, it should be that S is a member of A. "If A is reg, there exists integer P such that all S in A with length at least P can be divided into xyz with these properties..."

    • @ZikreMustafaSAW
      @ZikreMustafaSAW 4 ปีที่แล้ว

      String S is any word of language A

  • @rajatprajapati6386
    @rajatprajapati6386 6 ปีที่แล้ว

    best lecture in youtube sir

  • @sudhanshupal4427
    @sudhanshupal4427 5 ปีที่แล้ว

    Thanks ! You are Great !!!

  • @salmamanzoor2900
    @salmamanzoor2900 5 ปีที่แล้ว

    Thank you sir😊

  • @kshitizjain9557
    @kshitizjain9557 4 ปีที่แล้ว +1

    You teach 10x better than my prof.

  • @leooriginal9151
    @leooriginal9151 4 ปีที่แล้ว +12

    better than my professor several times...

    • @HonsHon
      @HonsHon 3 ปีที่แล้ว

      I really loved my professor for the class I took in which this is one of the topics, but he seriously stumbled over this explanation even though he explained everything else really well

  • @alessandroguetta6816
    @alessandroguetta6816 2 ปีที่แล้ว

    Thanks a lot!

  • @jayshree9037
    @jayshree9037 5 ปีที่แล้ว

    Very Useful

  • @hesahesa5665
    @hesahesa5665 7 ปีที่แล้ว

    thanks very nuch this chanel good for this course

  • @khushalpujara
    @khushalpujara 4 ปีที่แล้ว

    Thanks a lot

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 3 ปีที่แล้ว

    Thank you..Sir..

  • @mandy1339
    @mandy1339 6 ปีที่แล้ว

    This guy is awesome!!

  • @bluebonnet6711
    @bluebonnet6711 3 ปีที่แล้ว +1

    Thanku ♥️

  • @phoenixgamming9346
    @phoenixgamming9346 7 ปีที่แล้ว +2

    pls add the video with example..

  • @akshayagarwal448
    @akshayagarwal448 6 ปีที่แล้ว +1

    appriciable sir... can u please upload an example of this also...

  • @GetXPercentBetter
    @GetXPercentBetter 6 ปีที่แล้ว

    Great Work . Some links in ur website are not working. Please Fix them.

  • @aliyyah82
    @aliyyah82 8 หลายเดือนก่อน

    Very helpful video :)

  • @muhammadshehrozaziz4058
    @muhammadshehrozaziz4058 8 หลายเดือนก่อน +1

    what is the pumping lenght? is it given ?

  • @lM4nu
    @lM4nu 6 ปีที่แล้ว +2

    Gracias.

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 3 ปีที่แล้ว

    Thankyou sir

  • @SuryanshVimalendraBCI
    @SuryanshVimalendraBCI 6 ปีที่แล้ว +1

    sir can you please tell the book u take reference from?

  • @Mariofockinggalaxy
    @Mariofockinggalaxy 4 ปีที่แล้ว +1

    Should y be split into uvw and pump v

  • @anoniem012
    @anoniem012 2 ปีที่แล้ว

    Allahu ekber, Elhamdulillah. Clear. Thank you Neso.

  • @x-heel7138
    @x-heel7138 7 ปีที่แล้ว +73

    for the sake of us , you are doing a great job sir, hat's of you sir, i would like to know your name sir...

  • @krishnasaivadapalli619
    @krishnasaivadapalli619 9 หลายเดือนก่อน

    ambn for m,n>=1 is regular or not . Has anybody tried Pumping Lemma for this? Plz explain

  • @demcomep2006
    @demcomep2006 5 ปีที่แล้ว

    ur great sir

  • @100levelz
    @100levelz 8 หลายเดือนก่อน +10

    I hate my life

  • @Hayat26474
    @Hayat26474 ปีที่แล้ว

    thanku sir

  • @elenafeder3923
    @elenafeder3923 3 ปีที่แล้ว

    wait so what is it called when a language is neither regular nor non-regular?

  • @ehteshamulhaq604
    @ehteshamulhaq604 4 ปีที่แล้ว +1

    aa(ab)*bb is Regular Language??? Can we prove it as non regular using Pumping Lemma?

  • @origin3100
    @origin3100 ปีที่แล้ว

    If the length of v is equal to 0 isnt it against the second point of the th?

  • @amolbambode2959
    @amolbambode2959 6 ปีที่แล้ว

    am i right in saying that case2 and case3 do not follow property 3 of pumping lemma? |xy|

  • @stutisrivastava1249
    @stutisrivastava1249 4 ปีที่แล้ว

    Plz upload data compression lecture sir

  • @nello9784
    @nello9784 หลายเดือนก่อน

    Tomorrow is my final exam can’t wait to get ride of this course😣

  • @syedrafay4563
    @syedrafay4563 4 ปีที่แล้ว

    Hail Neso!!!

  • @hashrajput5528
    @hashrajput5528 4 ปีที่แล้ว +1

    is P (pumoing length) denotes prime?

    • @ZikreMustafaSAW
      @ZikreMustafaSAW 4 ปีที่แล้ว

      No it is not prime
      It is named as pumping length
      For example:
      L = {a^n b^n} where n>0
      Here pumping length is n

  • @Amy-tw3zh
    @Amy-tw3zh 4 ปีที่แล้ว +2

    This is wrong. You don't get to choose pumping length p. You also don't get to choose how to "split" the string. You only get to choose the string s and i.

  • @horizonpenblade1288
    @horizonpenblade1288 3 ปีที่แล้ว +3

    So how do you know what P is for a given language? I mean, I know I'm misunderstanding something here but it feels like this theorem as it is could be used to prove a regular language irregular by using the wrong pumping length.

    • @nekdo9590
      @nekdo9590 3 ปีที่แล้ว +1

      You never know the exact value of P. The only thing you know is that such number EXISTS.

    • @oooBASTIooo
      @oooBASTIooo 3 ปีที่แล้ว +1

      Essentially P is the smallest number of states a machine for that language can have + 1. So you usually do not know it, unless you know the minimal automaton.
      You usually have to say, given P, .... so u dont get to chose the P, as you have to argue against EVERY possible P.

  • @aishikbhattacharjee3180
    @aishikbhattacharjee3180 5 ปีที่แล้ว +1

    Awesome explanation. But can you please what is pumping length?

    • @Omar-kw5ui
      @Omar-kw5ui 5 ปีที่แล้ว +4

      its the length of how much you expanded your regex. say you have a* this can be aaa or aaaaa or aaaaaa. the pumping length is how many times you expanded a. Thats the best explanation I can give from the tutorial.

    • @harishr5620
      @harishr5620 4 ปีที่แล้ว

      @@Omar-kw5ui It's not the pumping length..Pumping length is defined as the minimum number of states required b the automaton to accept the finite language.

    • @ZikreMustafaSAW
      @ZikreMustafaSAW 4 ปีที่แล้ว

      @@Omar-kw5ui right

  • @pramodkoushiktr1895
    @pramodkoushiktr1895 3 ปีที่แล้ว

    i can not afford to buy paid your course. i am in 3rd sem now btech. pleaseeeeee dont remove these lectures. its is extremely helpfull.

  • @anubhavheer4449
    @anubhavheer4449 8 หลายเดือนก่อน +2

    Those here for exam tomorrow ! 🔥

  • @lamaspacos
    @lamaspacos 2 หลายเดือนก่อน

    We find a string S and make all their possible divisions.

  • @overheadjumper
    @overheadjumper 3 ปีที่แล้ว

    Video very good

  • @M-ABDULLAH-AZIZ
    @M-ABDULLAH-AZIZ 5 ปีที่แล้ว

    a^n b^ n where n+m is even , how is this a regular language? one can prove it is not regular by pumping lemma, but I read online it is regular. Please help me understand this!

    • @chinmayhattewar4456
      @chinmayhattewar4456 3 ปีที่แล้ว +1

      we can form regular expressions for this string i.e. it is recognizable by FSM, Hence it is regular.

  • @SonalSK2
    @SonalSK2 4 ปีที่แล้ว +1

    Good

  • @rameshch8698
    @rameshch8698 ปีที่แล้ว

    what is exactly p...how do you know that value.....

  • @sharbelokzan9673
    @sharbelokzan9673 5 ปีที่แล้ว +1

    Best explanation ever 👌👌

  • @ziliestarrive
    @ziliestarrive 5 ปีที่แล้ว +2

    Why do you have to show that all three conditions cannot be satisfied to have a contradiction? Isn't proving that any one of the three condition cannot be satisfied enough?

    • @ZikreMustafaSAW
      @ZikreMustafaSAW 4 ปีที่แล้ว +1

      Yes any one condition is enough to prove a language non regular.

  • @AdeshPaul
    @AdeshPaul 4 ปีที่แล้ว

    Thanks for teaching.

  • @zerobit778
    @zerobit778 2 ปีที่แล้ว

    Can we say if we could not use pumping lemma to prove "Not regular", then it is regular?
    Suppose regular language is a set, then the complement set is non-regular language.
    If a language is non-regular we could use pumping lemma to prove.
    If a language is regular we could not use pumping lemma to prove(2:44).
    Thus If we could not use pumping lemma, then it would be regular.
    It's same like somewhere wrong, but I could not find it.
    plz help~

    • @Wock__
      @Wock__ ปีที่แล้ว

      No, the pumping lemma cannot be used to prove a language is regular.
      I believe there are non-regular languages that satisfy the pumping lemma, therefore this is just one method we can use to prove certain languages are non-regular.

  • @oromis995
    @oromis995 2 ปีที่แล้ว

    An example would have been nice, but good explanation

  • @radiaIes
    @radiaIes 4 ปีที่แล้ว

    Keine sorge, wir packen Hollas schon.

  • @iqbalahmad2147
    @iqbalahmad2147 7 ปีที่แล้ว

    Explanation and representation is great!
    #thumbsUp

  • @bilalchandiabaloch8464
    @bilalchandiabaloch8464 5 ปีที่แล้ว

    Sir L={ww|w €(a+b)* is a regular or Non regular language according to pumping lemma plz make a video on this language. Thanks in anticipation

    • @FleurDeCersier
      @FleurDeCersier 4 ปีที่แล้ว

      L is not a regular language. Let's choose for instance s=(b^p)a(b^p)a=xyz. If i=0 (or anything but 1), then s=xy^0z=(b^p-1)a(b^p)a which proves that L is not regular according to pumping lemma because p-1 != p
      Tried to explain it the best I could but I study CS in my native language which is not English. Hope you got the gist though

  • @govandibotelo2841
    @govandibotelo2841 7 หลายเดือนก่อน

    I have a Theory of computation exam in a few hours 😅

  • @siye9532
    @siye9532 2 ปีที่แล้ว +2

    Shout out to our professor who doesn't even teach us this lesson and let us watch NESO Academy's video instead, I'm so tired of you, I'm so annoyed!!! anyway thanks to NESO

    • @cr7mlc
      @cr7mlc 2 ปีที่แล้ว

      LMAO🤣 Yoohh I'm here for the same reasons!!

  • @harshjain8764
    @harshjain8764 5 ปีที่แล้ว

    tomorrow is my paper and you are my saviour ty sir

  • @mohammadvasimbaig8680
    @mohammadvasimbaig8680 8 หลายเดือนก่อน +2

    00:04 Pumping lemma is used to prove that a language is not regular.
    01:07 The pumping lemma can be used to prove that a language is not regular.
    02:09 The language can be divided into three parts: X, Y, and Z
    03:16 To determine if a language is regular, three conditions from the pumping lemma must be satisfied.
    04:16 To prove that a language is not regular
    05:12 We need to find a string in language A such that its length is greater than or equal to the pumping length and then divide it into three parts X, Y, and Z.
    06:18 The string s cannot be formed as a regular language.
    07:15 Using the pumping lemma, we prove that a language is not regular.
    Crafted by Merlin AI.

  • @hrishikeshbhaskar3161
    @hrishikeshbhaskar3161 5 ปีที่แล้ว +3

    Sir pls make a video on pigeon hole principle

  • @bdjeosjfjdskskkdjdnfbdj
    @bdjeosjfjdskskkdjdnfbdj 4 ปีที่แล้ว

    Intuition for why this lemma is true?

  • @akashshrestha01
    @akashshrestha01 4 ปีที่แล้ว

    Cool

  • @Prachita516
    @Prachita516 5 หลายเดือนก่อน

    was your teacher Saurabh Shanu?

  • @dilipkumarmaurya4878
    @dilipkumarmaurya4878 7 ปีที่แล้ว +12

    hii everyone;
    i request u if like all video of sir then please click on add(advertisement) to support neso acdemy....
    thanks

    • @pravinvedurla6787
      @pravinvedurla6787 6 ปีที่แล้ว

      Advertisements wont take them anywhere at all. Instead if you want to support their purpose, Try to donate at
      www.nesoacademy.org/donate

  • @fwwryh7862
    @fwwryh7862 ปีที่แล้ว

    Just watched one minute of this before realizing it's not about English grammar.

  • @Bonscott1
    @Bonscott1 3 ปีที่แล้ว

    I am really sad for on this incredible day, I did not understand what was going on in this video. Therefore consider this a formal complaint!

  • @SushmaBm-is9vc
    @SushmaBm-is9vc 3 หลายเดือนก่อน +1

    😢

  • @Renikor
    @Renikor 4 ปีที่แล้ว

    ?

  • @neiljohn2637
    @neiljohn2637 2 ปีที่แล้ว

    60

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 3 ปีที่แล้ว

    👍👍💯

  • @zackcarl7861
    @zackcarl7861 2 ปีที่แล้ว +1

    An indian to the rescue again 🤠

  • @amritacharya4011
    @amritacharya4011 4 ปีที่แล้ว

    From nepal. Bsccsit😂