3. Regular Pumping Lemma, Conversion of FA to Regular Expressions

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 51

  • @koma2000music
    @koma2000music 3 роки тому +62

    I finally understand the Pumping Lemma for regular languages!! 😊 I didn’t quite get it by reading the proof in the ’Sipser’ book the first time; but after this really great lecture by the author himself it’s all clear. He gave just the right amount of intuition necessary. Thank you Prof, and thank you MIT for making these courses available to everyone who wants to learn.

  • @rajbopche7992
    @rajbopche7992 2 роки тому +29

    "Some make simple things complex and Some make complex things simple"
    Thank you, Sir Sipser❤️
    Thank you, MIT
    Thank you, UA-cam

  • @anonviewerciv
    @anonviewerciv 3 роки тому +17

    19:00 Proof by mathematical induction.
    41:41 Pumping lemma.

  • @dtung2008
    @dtung2008 Рік тому +5

    This series of lectures by Professor Sipser is absolutely great! This is the first time I get a clear picture of FAs.
    There is only one thing could be mentioned that I think will greatly improve the intuition of the pumping lemma: that any language with finite number of strings is a FA. Even though it is a trivial result, but that will imply the pumping lemma is dealing with languages with infinite number of strings. Further with the property that all FA have finite number of states, we can now understand that the pumping lemma is something related to "loop" of states.

  • @persi_dev
    @persi_dev 6 місяців тому +1

    It's been 8 years since I studied theory of computation in my university, you make me feel like it was yesterday! Thank you Mr. Sipser

  • @centerfield6339
    @centerfield6339 Рік тому +14

    20 years after doing CS degree, finally understand the pumping lemma.

    • @texastalent3300
      @texastalent3300 Рік тому +7

      so ur saying its gonna take me 20 years to understand my HW thats due tonight

    • @dtung2008
      @dtung2008 Рік тому +7

      @@texastalent3300 Finish a homework and understand are two different things. You can apply the lemma without understanding it, that is for sure.

  • @junguusdaisd1016
    @junguusdaisd1016 3 місяці тому

    I love how Sipser reinforces all levels of thoought. It makes me feel more confident.

  • @pc19937
    @pc19937 10 місяців тому

    These lectures are simply amazing. I was hopeless in my university when we started automata theory, but now it's all getting clear slowly. Thanks!

  • @ashn
    @ashn 2 роки тому +18

    pumping 🅿️

  • @yuntaozhao5693
    @yuntaozhao5693 Рік тому +4

    4 hours before topic exam
    Thank you professor heart heart heart

  • @texastalent3300
    @texastalent3300 Рік тому +1

    Just realized that my entire class is based off this professors book. Didn't know he was the author

  • @james-fy1ms
    @james-fy1ms Рік тому +6

    I tried the pumping length with my girlfriend. This video helped, thanks!

  • @vietnamle6229
    @vietnamle6229 2 роки тому +5

    I am student from RIT and this is excellent supplementary material for CSCI 262: intro to cs theory

    • @w0nnafight
      @w0nnafight Рік тому +5

      RIT what is that? your backyard? LOL!

    • @moatef1886
      @moatef1886 Рік тому

      @@w0nnafight Rochester Institute of Technology. It actually has a somewhat known theoretical computer science research group.

    • @classicalfandom8219
      @classicalfandom8219 Рік тому +9

      @@w0nnafight your name says it all.

  • @vaalarivan_p
    @vaalarivan_p 2 роки тому +1

    4:49
    CFG : 1:00:00

  • @mr_vazovski
    @mr_vazovski 2 роки тому +4

    One point I think he should have emphasized more is that concatenation with the empty language gives you the empty language.
    Then it becomes obvious why no arrow is the same as the arrow with and the empty language.

    • @yeni_nick
      @yeni_nick 2 роки тому +2

      What is the relation between concatenation of empty language and that arrow?i think the reason why he labeled it with the empty language is that even if the computer read the empty string it cant go empty language's path. Because empty language doesn't contain empty string as a member.

  • @wondererasl
    @wondererasl Рік тому

    @53:23, 1, since i >=0, when i ==0, y is an empty string, right ? 2, could x or z be an empty string ? so s = y...y, p >=1 .

  • @jonaskoelker
    @jonaskoelker 2 роки тому

    I think in the proof of the pumping lemma, p needs to be (at least) 1 + [the number of states in M]: only in that case is the input string guaranteed to repeat a state.

    • @sultown4343
      @sultown4343 Рік тому

      this is correct. consider the pigeonhole theorem: if we have P states and a string of length P+1, then there is necessarily a repeated state. then the route the states took between the two repeated states (call it y) can repeated how ever many times you’d like. so you have x, the string before the repetition and z, the string after, and so an accepted string is xy*z where the * means you can repeat it many times.

    • @kevinalfos
      @kevinalfos 24 дні тому +1

      Remember that the initial state is visited before any character is read, so a string of n characters will trigger a sequence of n+1 states. This makes your suggestion to add 1 more character unnecessary. If n is the total number of states in the automaton, then a string of length n will be enough to apply the pigeonhole principle since, once again, n+1 states will be visited (with repetition).

  • @ethernet764
    @ethernet764 4 місяці тому

    I see, so GNFA is just a superset of DFA and NFA, meaning one can create a DFA or NFA using GNFA. Wouldn't it be less confusing if it was just called GFA or Generalized Finite Automata?

  • @sourire3223
    @sourire3223 4 місяці тому

    Have we proved the closure under intersection(∩)

  • @CR7Ashironaldo
    @CR7Ashironaldo 3 роки тому +3

    Doubt at Checkin 3.1 at 28:30 Shouldn't the answer be B as we showed in the last lecture how to convert NFAs to DFAs, just like that we have to show GNFAs to DFAs even if we assume the transitions to be a single symbol ?

    • @wenjunliu
      @wenjunliu 3 роки тому

      We cannot convert all GFNAs to DFA as DFA is only a type of GNFA.

    • @m.s.6449
      @m.s.6449 3 роки тому

      Assuming that, what would be the end purpose of converting GNFAs to DFAs?

    • @chilldude1337
      @chilldude1337 3 роки тому +1

      All NFAs can be converted into DFAs. Because GNFAs are also NFAs, we can assume that GNFAs can be converted into DFAs.

    • @Kalernor
      @Kalernor 3 роки тому +2

      @@chilldude1337 You got it the other way around. All NFAs are also GNFAs.
      However you can indeed convert any GNFA to a DFA. One possible way to do this is to convert the GNFA to a regular expression, convert the regular expression to an NFA, and finally convert the NFA to a DFA.

    • @Kalernor
      @Kalernor 3 роки тому +4

      @@wenjunliu You can convert any GNFA to a DFA. One possible way to do this is to convert the GNFA to a regular expression, convert the regular expression to an NFA, and finally convert the NFA to a DFA.

  • @gergerger5888
    @gergerger5888 Рік тому

    52:23 What if pumping's lemma holds for D? Is it necessarilly regular?
    Because, according to the lecture, pumping's lemma holds for all regular expressions, but it is not said that it holds ONLY for regular expressions. At least according to the lecture. So if it doesn't hold, D is not regular, but what if it holds?

    • @dtung2008
      @dtung2008 Рік тому +1

      Usually you construct a FA directly if the language is regular, because it is really hard to show all cases don't have the pumping property. Try his example of equal number of 01 and 10 is regular.

  • @Spacexioms
    @Spacexioms Рік тому

    I get that he uses induction to prove GNFA, but the really uses a proof by contradiction here with an induction flavor added to it.

  • @tomislavtomic9627
    @tomislavtomic9627 Рік тому

    anyone mind explaining why, when we're trying to prove D is not regular by contradiction, we can't take 010101 as a string, where the first 01 is x, the second 01 is y and the last 01 is z. We take the y and repeat it as much as needed and we still stay in the language.
    why is that not possible? is it because 01 is same as 01010101....

  • @michaelliuzzi
    @michaelliuzzi 10 місяців тому +4

    great lectures, but his pessimism about students gives me anxiety about what my professors used to think about me 😝

    • @lxn7404
      @lxn7404 7 місяців тому +1

      💯 those belittling comments would literally crush people with lack of confidence

  • @sirluoyi2853
    @sirluoyi2853 2 роки тому

    Thanks sir!

  • @sudharshans1545
    @sudharshans1545 Рік тому

    1:01:00

  • @Estheryaaa
    @Estheryaaa 2 роки тому +3

    smart is the new sexy, how you explain the knowledge is so damn sexy

  • @yunoletmehaveaname
    @yunoletmehaveaname Рік тому +4

    I don’t particularly like the way he talks about students not getting the correct answer. Stuff like that really turns me off math courses.

    • @Karim-nq1be
      @Karim-nq1be 5 місяців тому +4

      I don't think he meant that in a bad way though, I suppose he was just worried about the fact that his students understood what he meant.

  • @pellythirteen5654
    @pellythirteen5654 Рік тому

    This is fascinating stuff , but I have to get this off my chest :
    You speak the words " and uhm" , " Uh " , " so ..", " and " etc ............. soooooo many times in a minute it utterly distracts me from the subject.
    You Sir , are not a good teacher .

    • @dtung2008
      @dtung2008 Рік тому +8

      That I disagree. The professor try to find good wordings to describe the idea, but that is just a secondary factor. Don't try to follow what he says verbally, try to follow what he intends to show.

    • @Spyro-kt8gy
      @Spyro-kt8gy Рік тому +5

      I'm not sure if using filler words makes him a bad teacher, albeit bad speaker.

    • @usethisforproductivity-tg7xq
      @usethisforproductivity-tg7xq 3 місяці тому

      1) this shit is not fascinating
      2) he is a good teacher, albeit a bit fast