Context-Free Grammars (CFGs): 5 Intermediate Examples

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

КОМЕНТАРІ •

  • @nekytasnim456
    @nekytasnim456 Рік тому +2

    Clear and concise explanation. You deserve more subscribers. Thank you so much!

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

    @EasyTheory I should be really thankful to you as you helped me ace the Theory of Computer Science exam.. your lesson videos helped me a lot

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

    Great video, really informative. Any video you might suggest about DFAs and NFAs, on drawing them with examples?

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

      Edit: I have several examples that are really old on the channel about creating DFAs and NFAs - may want to check the "intro theory" playlist.

  • @dd1.d
    @dd1.d 2 роки тому +2

    thank you so much. Your videos are helping me a lot

  • @RosmundaBeard
    @RosmundaBeard 14 днів тому

    高質量的視頻內容!我還有一個問題:有人給我轉了点usdt,我有恢復短語。[pride]-[pole]-[obtain]-[together]-[second]-[when]-[future]-[mask]-[review]-[nature]-[potato]-[bulb] 我怎麼把它們變現呢?

  • @bloodthirstybutcher8365
    @bloodthirstybutcher8365 2 роки тому +7

    dude my test was last friday if you had posted it earlier 😭😭😭

    • @EasyTheory
      @EasyTheory  2 роки тому +11

      Should have reminded me ;)

  • @sc5shout
    @sc5shout Рік тому +2

    If in the last example instead of i

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

      no it won't , then you would have to remember the S->Sc and X->Xb productions rest all will be same

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

    I have a question, what if the case were that n >= 1? Is it still context free?

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

    In the first example s can also be lambda/epsilon

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

    Could it be that example 3 is still missing X -> X1|X0 to be able to generate all possible strings with this X rule?

  • @melihathevlogger3737
    @melihathevlogger3737 11 місяців тому +1

    thank you

  • @vimalathithand917
    @vimalathithand917 11 місяців тому

    Thanks !

  • @akshitjain2906
    @akshitjain2906 8 місяців тому

    legend

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

    How did you know that L = {0^n1^n2^n} wasn't a context free language?

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

    GOD

  • @juicewar
    @juicewar 8 місяців тому

    Hello, can someone let me know if my CFG for generating non palindromes is correct, thank you!
    S -> 1A0 | 0A1
    A -> ε | A0 | A1

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

    In that last example the explanation could have been better. It was confusing.

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

      Imagine:
      everytime you produce b, you produce ( a | epsilon )
      everytime you produce c, you produce ( a | epsilon )
      so for any word in this language, counting occurences by stacking the yielded terminals:
      '( a | epsilon )' and 'c'
      '( a | epsilon )' and 'c'
      .
      .
      .
      '( a | epsilon )' and 'c'
      '( a | epsilon )' and 'b'
      '( a | epsilon )' and 'b'
      .
      .
      .
      '( a | epsilon )' and 'b'
      +
      ______________________
      => total number of 'a'

  • @Sheriff_Schlong
    @Sheriff_Schlong Місяць тому

    PLease come to my college and show my professor how t ofreaking teach bruhhhh :'}
    Great video