Chomsky Classification of Grammar || GATECSE || TOC

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

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

  • @KaushalBeniwal_
    @KaushalBeniwal_ Год назад +26

    03:17 Chomsky classification of grammar
    06:34 Chomsky Classification of Grammar
    09:51 Type 0 grammar is defined using 4 tuples: V, T, P, S
    13:08 Chomsky classification of grammar
    16:25 Chomsky classification of type 1 grammar
    19:42 Representation of grammar and Chomsky Classification
    22:59 Chomsky classification defines type 2 and type 3 grammar
    26:13 Chomsky classification of grammars involves left linear and right linear grammars.

  • @almazakhtar4834
    @almazakhtar4834 Год назад +63

    the most underrated channel for automata🤌...simple and point to point explanation =best explanation🙏

  • @katw434
    @katw434 2 года назад +44

    pure youtube per iss subject ko aap se acha koi nhi padata aap padate ho toh sab samaj aata hai

    • @sumaghosh8242
      @sumaghosh8242 6 месяцев назад +1

      Gate smashers is there

    • @abcde923
      @abcde923 6 месяцев назад +1

      I​@@sumaghosh8242toc me ye top pe hai pura content serial wise 😊

    • @harshh_1573
      @harshh_1573 3 месяца назад

      Sachhe gyan ki ekmatra pehchan hai ki aap jo chiz aapne khud samjhu hai usko dusro ko bhi smjha sako

    • @IronmanDon-my6fw
      @IronmanDon-my6fw Месяц назад

      ​@@sumaghosh8242he has not covered all things though it's helpfull for semester exams only

  • @rohankhandare2967
    @rohankhandare2967 Год назад +5

    I've watched all other videos but this one is very crystal clear and understandable ,really helpful .keep it up sir .

  • @sahilanand30
    @sahilanand30 2 года назад +31

    Legends studying last night before exams
    Thanks sir 💖

  • @RohitKumar-gx5zx
    @RohitKumar-gx5zx Месяц назад +1

    Context-Free Languages (CFLs) are Type 2 in the Chomsky hierarchy. They sit above Regular Languages (Type 3) but below Context-Sensitive Languages (Type 1) and Recursively Enumerable Languages (Type 0).
    Type 3 (Regular Languages) are simpler than context-free languages and can be recognized by finite automata, which have no memory stack.
    Type 2 (Context-Free Languages) can be recognized by pushdown automata, which have an additional stack for memory, making them more powerful than finite automata. This allows CFLs to handle nested structures, like balanced parentheses or recursion in programming languages, which regular languages cannot.
    Type 1 (Context-Sensitive Languages) are more powerful than context-free languages. These languages require a more complex computational model (linear-bounded automaton), and their grammar allows rules where the left side of a production can be longer than the right side.
    Type 0 (Recursively Enumerable Languages) are the most powerful and can be recognized by Turing machines, which can simulate any computation. These languages encompass all others but are much more complex and less efficient to parse.
    Key Differences:
    Context-Free Languages (CFLs) can handle recursion and nested structures (e.g., matching parentheses in programming languages), but they can't handle some constructs that require context (e.g., matching an equal number of as, bs, and cs in the string "a^n b^n c^n").
    Context-Sensitive Languages (CSLs) are more powerful than CFLs and can handle certain dependencies between different parts of a string that context-free grammars cannot. For example, CSLs can describe languages where the number of symbols from different sets must match (e.g., "a^n b^n c^n").
    Summary of Chomsky Hierarchy:
    Type 3: Regular Languages (RL)
    Simple rules, recognized by finite automata.
    Example: a*, valid phone numbers.
    Type 2: Context-Free Languages (CFL)
    One non-terminal on the left side of each production rule, recognized by pushdown automata.
    Example: Arithmetic expressions, programming languages syntax.
    Type 1: Context-Sensitive Languages (CSL)
    Rules can have context-dependent production, recognized by linear-bounded automata.
    Example: Some programming languages and more complex syntactic structures.
    Type 0: Recursively Enumerable Languages (RE)
    Unrestricted grammar, recognized by Turing machines.
    Example: Complex natural languages and certain computations.
    Conclusion:
    Context-Free Languages are an important class of languages in the Chomsky hierarchy because they describe many of the syntactical structures in programming languages. They are more powerful than regular languages but less powerful than context-sensitive languages. Understanding where CFLs fit in the hierarchy helps in designing compilers, interpreters, and understanding the complexity of different languages.

  • @prabhleenkaur_293
    @prabhleenkaur_293 8 месяцев назад +1

    the best channel for TOC

  • @tausifansari8651
    @tausifansari8651 2 года назад +3

    Very helpful video sir. Simple way to teaching.i will waiting for more videos. Thank u so much sir.

  • @ninjahyper335
    @ninjahyper335 Год назад +3

    Sir aab lagra hai kuch toh ukhad liya hai TOC ka nahi toh samaj hi nahi aara tha 😂❤️
    Thank you so much ❤

  • @panvirsingh9428
    @panvirsingh9428 8 месяцев назад +1

    Best channel for toc

  • @technopal7969
    @technopal7969 3 года назад +2

    Sir, you are the best teacher on RUclips.

  • @anishsingh9043
    @anishsingh9043 7 месяцев назад +2

    G = {V,T,P,S}
    Type 0 : Unrestricted Grammar : Turing machine
    Rule : NT -> (NT+T)*
    Note : There should be a non terminal defining a set of terminal or non terminal
    a->S fail
    Type 1 : Context Sensitive Grammar : Linear bounded Automata
    Note : There should be no null production in NT->(NT+T)+
    |LHS|a/e; If this is done then S should not come on the RHS at any time.
    Type 2 : Context Free Grammar : Push Down Automata
    Note : |LHS|=1
    Null production is allowed anywhere
    Type 3 : Regular Grammar : Finite Automata
    Note : It should be either RLG or LFG, right/left linear grammar, it shouldnt be a combination
    S->aS/Sb is wrong,so it is not type 3

  • @fukrajvd
    @fukrajvd 8 месяцев назад +4

    Wait till end you get better understanding and tackle with question❤

  • @omthorat4962
    @omthorat4962 8 месяцев назад

    Explained in a very easy and helpful manner 👏🏻👏🏻👏🏻

  • @Vlogs_230
    @Vlogs_230 23 дня назад

    Sab achhese samj aa gaya sir❤

  • @bhawarthpadwal152
    @bhawarthpadwal152 2 года назад +2

    thankyou... you explained this in a simplest way!

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

    You're to good man.. Thankq Sir..

  • @DeeptiMohapatra-x6s
    @DeeptiMohapatra-x6s Год назад

    Excellent teaching style

  • @sakshimarne6267
    @sakshimarne6267 Год назад

    I really like this video. Very well explained 😃

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

    sir kl paper hy apka video daykh kar pura samajh agaya.

  • @myknowledgehouse2282
    @myknowledgehouse2282 4 года назад +3

    superb video

  • @gokugohan5994
    @gokugohan5994 2 года назад +1

    Nice explanation sir 👍

  • @anushthakumari2393
    @anushthakumari2393 2 года назад +3

    Finally understood this topic, nice video

  • @sonalidigar4968
    @sonalidigar4968 7 месяцев назад

    best video for toc

  • @panvirsingh9428
    @panvirsingh9428 8 месяцев назад

    Best playlist

  • @ukritik325
    @ukritik325 Год назад

    Thanks for suitable explanation sir

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

    Best explanation 👍👍

  • @Hey_im_here
    @Hey_im_here Год назад

    Best teacher❤

  • @41_ZakiKhan
    @41_ZakiKhan 9 месяцев назад

    Thanks shoeb sir✅

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

    Nice explaination sir

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

    Best explanation sir

  • @gamersgame43
    @gamersgame43 Год назад

    amazing explanation

  • @somanyamaan5010
    @somanyamaan5010 Год назад

    Good explaination

  • @UmerKhan-ro3dy
    @UmerKhan-ro3dy Год назад +2

    Best

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

    Best vidio

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

    Thank you sir 🙏

  • @aboveallff7698
    @aboveallff7698 Год назад

    Thanx bro❤🎉

  • @chandravijaynagesh1117
    @chandravijaynagesh1117 2 года назад +1

    ɢᴀᴊᴀʙ ꜱɪʀ

  • @Gaurav-vl6ym
    @Gaurav-vl6ym Год назад

    thank you sir ji

  • @ChandanKumarSWF
    @ChandanKumarSWF 10 месяцев назад

    thank you sir

  • @tanishqyadav9379
    @tanishqyadav9379 Год назад

    sir aB--> AB i also Type 0

  • @nishantkumar1360
    @nishantkumar1360 Год назад +1

    Bhaishab pair kaha h aapke🙌

  • @subhash07092
    @subhash07092 Год назад +3

    Y€ vT*/T*
    Then Y€ V, means y belongs to single variable only
    S-> A , is it true

  • @filmshorts3098
    @filmshorts3098 Месяц назад

    ❤❤

  • @haroonkhan7094
    @haroonkhan7094 4 года назад +2

    👍👍👍

  • @musharafkhan7935
    @musharafkhan7935 9 месяцев назад

    ❤❤❤❤❤❤❤❤❤

  • @rashidahmad5401
    @rashidahmad5401 Год назад

    Nice

  • @ManishKalyan-gx2wi
    @ManishKalyan-gx2wi 2 года назад

    subscribed

  • @honeyagrawal3053
    @honeyagrawal3053 2 года назад +1

    kal paper ha mara

  • @sakshimarne6267
    @sakshimarne6267 Год назад

    I really like this video. Very well explained 😃

  • @tarun8983
    @tarun8983 Год назад

    nice explanation

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 3 года назад +1

    👍👍👍

  • @sakshimarne6267
    @sakshimarne6267 Год назад +1

    I really like this video. Very well explained 😃