Context-Free Grammar Definitions: Yields, Ambiguous, Leftmost Derivation

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 21

  • @umairphoenix
    @umairphoenix 3 роки тому +22

    Man Seriously You Deserve Lot of appreciation for your work!

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

    Thanks! Really got insights ,a great video !

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

    This is awesome content. actually saved my life.

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

    Thank you!! you are why I am passing computational theory

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

    You're gonna shine one day proffesor!

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

    Great video!! i clicked on this video because of the thumbnail btw.

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

    Thanks for the video!

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

    Thank you! that was really helpful !

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

    thank you bro

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

    Is the * in the E set of terminals just mean 'the permutation/combinations of all elements in the set E' or does it have a more nuanced definition?

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

    great work bro

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

    Hi, the two examples you shared for left most derivations, in the first example when you have replaced S with epsilon only, how is that a leftmost derivation when you've merely used a rule? The second makes sense that you've replaced the left most variable with a epsilon. Please help

  • @itsmemouha2811
    @itsmemouha2811 4 роки тому +1

    Hey! Nice vid. Could you make a video explaining reductions in a deterministic CFG? I find it very hard to understand

    • @EasyTheory
      @EasyTheory  4 роки тому

      What do you mean by reduction?

    • @itsmemouha2811
      @itsmemouha2811 4 роки тому

      @@EasyTheory the bottom up derivation. In Sipser, a DCFG is defined by a series of reduction from a string of all terminal to the start variable.

    • @EasyTheory
      @EasyTheory  4 роки тому +8

      @@itsmemouha2811 Didn't know about that! Got some reading to do 👀

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

    thanks!

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

    In Ambiguous, the derivation has to have the same answer?

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

    for the second derivation you did for S -> SS | ε, why is this considered leftmost derivation because aren't we still replacing the S on the right? I thought leftmost derivation means you only replace leftmost variables, but once you have done that, are you allowed to replace another variable that is not the leftmost one?
    Edit: Is it because we cannot end on a variable so we need to replace the right one?

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

      I might misunderstand your question and my answer may be off ( i am learning as well). But, with a leftmost derivation you start with variables to the left and replace them moving left->right until the string is in the set of terminals. You don't just replace the leftmost variable. If you only replaced the leftmost variable and there were other variables in the string, the derivation would be incomplete. Does this answer the question?