Lecture 13/65: Intro to Context Free Grammars and Languages

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

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

  • @amichael9670
    @amichael9670 8 лет назад +69

    Let's all thank God for this human being :-)

  • @cesare-o7l
    @cesare-o7l 6 лет назад +8

    These videos are pure gold, I feel I understand everything with your teaching style. I appreciate how concise and clear these videos are. Thanks!

  • @ARK-ju7xx
    @ARK-ju7xx 2 месяца назад +2

    First explanation I completely understand! Thank you!

  • @RED-pi9wo
    @RED-pi9wo 8 лет назад +63

    Thanks man! I got an exam in like 2 hours. Just learned it all from scratch.

    • @computerscientist5953
      @computerscientist5953 8 лет назад +1

      lol...

    • @mudsky
      @mudsky 8 лет назад +23

      was feeling crap about starting the night before, but this gave me hope. lmao

    • @Dr1nc
      @Dr1nc 7 лет назад +2

      i'm in the exact same spot right now lol

    • @doguseyidoglu5937
      @doguseyidoglu5937 7 лет назад +1

      my exam will start in two hours lol

    • @osama002009
      @osama002009 6 лет назад

      The Same with me Lol

  • @HollyFRyan
    @HollyFRyan 6 лет назад +8

    You're so goals. I'm in love. You turn logic into lovemaking with your beautiful videos. Thank you Harry Porter

    • @hhp3
      @hhp3  6 лет назад +1

      Holly Whimsy Thanks for your nice compliment, Holly.

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

      Hmm. You might be getting a little carried away here....

  • @spyros07
    @spyros07 9 лет назад +6

    Thank you so much Professor.

  • @james_01
    @james_01 5 лет назад +2

    Thank you for explaining things so clearly.

  • @mandy1339
    @mandy1339 7 лет назад +1

    reupload videos with higher resulution please. These are gold.

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

    Review 12:30 for understanding grammar and language definitions.

  • @ZawirAmin
    @ZawirAmin 9 лет назад +3

    Definition: 12:33

  • @corbinmckeeth2124
    @corbinmckeeth2124 7 лет назад +5

    you're a wizard harry!

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

      never heard that joke before

  • @Liaomiao
    @Liaomiao 5 лет назад +1

    What this made earlier? Not quite as clear as the FSM segments, still good though.

  • @eljeanxp
    @eljeanxp 9 лет назад +5

    How do you know when to stop expanding?

    • @kenanofify
      @kenanofify 7 лет назад +3

      You stop expanding when there is no more non-terminals (when all of the symbols are terminals). At this point, there is no way to expand anymore. Consider "a + (a x a)", 'a' is a terminal symbol and there is no way to convert it to any other symbol, and also ('+', 'x', '(', ')') are all terminals.

  • @DeveshBeri
    @DeveshBeri 8 лет назад +4

    In the first example, after 'a + F', why didn't we made it 'a + a' instead of making it 'a + (E)'??

    • @aminazmus
      @aminazmus 8 лет назад

      +Devesh Beri Do you got the answer?

    • @mudsky
      @mudsky 8 лет назад

      been bothering me too. any answers?

    • @LeTheory
      @LeTheory 8 лет назад +3

      Would a + a be accepted instead of a + (a x a)?

    • @dr1303
      @dr1303 5 лет назад

      "a + (E)" and "a + a" are both described by the grammar, so both are correct. The purpose of a grammar is (usually) not to generate expressions, but to check if they are valid. In this case the question would be "Is 'a + (a * a)' valid within this grammar?", and the answer is "Yes, because we can apply the rules until we arrive at that string of characters."

    • @onursimsek6094
      @onursimsek6094 5 лет назад

      @@dr1303 Is 'a' valid within this grammar ?

  • @BrettClimb
    @BrettClimb 7 лет назад

    If you had the expression A = B + C * D, and you did a LMD using an ambiguous grammar, couldn't that potentially add B + C before multiplying by D, and if you did a RMD, couldn't it multiply C * D before adding B? In other words, for an ambiguous CFG, wouldn't the LMD and RMD produce different parse trees, and not be abstracted to the same parse tree?

  • @amirkamalian8045
    @amirkamalian8045 6 лет назад +6

    *2018 poor computer science student here and I have no fucking Idea why should I know these things But thank god I found you Thank you*

  • @selamikadoglu7451
    @selamikadoglu7451 5 лет назад

    Tomorrow we have an exam ! And this video gave me hope too much...Appreciate thanks thanks muah muah i love yaaaaaaaaaaaaaaaaaa...

  • @21stcenturygurl
    @21stcenturygurl 5 лет назад

    Thank you for this sensational video!

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

    Starting from this video this course became really complicated to understand. What happened?

  • @ghty102
    @ghty102 9 лет назад +1

    What I can't seem to figure out is, when doing a left most derivation; does this assume we use the left-most rule in the CFG rules as well? Like what if your grammar is:
    S->a|B
    B->Bb|b
    is the left-most derivation just S=>a? because a is the left-most rule in the definition S->a|B? How do we determine rule to use in these types of situations?

    • @iali01987
      @iali01987 8 лет назад

      No and this is because A or B is the same as B or A. So
      S -> a|b
      is the same as
      S -> b|a
      You don't apply the left mot derivation when choosing a rule.

    • @dr1303
      @dr1303 5 лет назад

      Nope. Left most derivation is the idea of expanding the left-most token in your input.
      With your example grammar, and the input of "SB":
      SB => aB => aBb => abb
      Thus "abb" is valid grammar. If we only chose the left rule, we would arrive at:
      SB => aB => aBb => aBbb => aBbbb => aBbbbb => ...
      This tells us that abbbbbbb... is also valid within this grammar. This is however an infinite string, which is rather impractical, so at some point it must NOT follow the left most rule of B -> Bb, but rather the right rule of B -> b. This will give the string a finite length.

  • @navneetrks
    @navneetrks 9 лет назад +2

    Thank you! Sir !

  • @lattehour
    @lattehour 19 дней назад

    at 240p i am doing set theory on pixels they practically speak to me and i have learned their language atm i can fully say it`s context free

  • @ManoToor
    @ManoToor 7 лет назад

    Thank you for these videos, they are very helpful

  • @onursimsek6094
    @onursimsek6094 5 лет назад +1

    Is the following derivation also true : E -> T -> F -> a

    • @ridwa
      @ridwa 5 лет назад +1

      yes, it is

  • @WissalBe
    @WissalBe 8 лет назад

    Thank you!

  • @bilal.ashraf
    @bilal.ashraf 9 лет назад +1

    Great stuff..!

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

    UGA 2021 boi!!!!

  • @Marox007-m3i
    @Marox007-m3i 7 лет назад

    thank you

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

    this was uploaded in 2015 why the potato quality?

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

    I don’t get it I absolutely hate this, because I don’t know why I don’t understand any of it.

  • @杨健邦
    @杨健邦 7 лет назад

    I can't see the writting clearly.

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

    Thank you!