Chomsky Classification of Grammar || GATECSE || TOC

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025
  • #chomskyclassification, #chomskyhierarchy, #gatecse, #toc
    chomsky classification of grammar || chomsky hierarchy || chomsky hierarchy of formal languages || chomsky hierarchy of languages in theory of computation || type 0 grammar || type 1 grammar || type 2 grammar || type 3 grammar || context free grammar || computer science lectures for gate || automata lecture for gate || chomsky hierarchy in toc || chomsky classification in toc || chomsky classification of formal language || chomsky hierarchy of languages
    Contact Details (You can follow me at)
    Instagram: / thegatehub
    LinkedIn: / thegatehub
    Twitter: / thegatehub
    ...................................................................................................................
    Email: thegatehub2020@gmail.com
    Website: thegatehub.com/
    ...................................................................................................................
    📚 Subject Wise Playlist 📚
    ▶️Data Structures: tinyurl.com/bwp...
    ▶️Theory of Computation: tinyurl.com/5bh...
    ▶️Compiler Design: tinyurl.com/2p9...
    ▶️Design and Analysis of Algorithms: tinyurl.com/ywk...
    ▶️Graph Theory: tinyurl.com/3e8...
    ▶️Discrete Mathematics: tinyurl.com/y82...
    This video discusses the Chomsky Hierarchy, a classification system used in automata for grammar. It identifies three types of grammar: Unrestricted Grammar (Type 0), Context Sensitive Grammar (Type 1), Context Free Grammar (Type 2), and Regular Grammar (Type 3). The hierarchy categorizes languages accepted by different machines into three types: Unrestricted, Context Sensitive, Context Free, and Regular.
    Type 0 grammar, also known as Unrestricted grammar, allows for the efficient modeling of languages with no restrictions on their grammar rules.
    Type 1 grammar, also known as Context Sensitive Grammar, is used to represent context-sensitive language. It follows rules such as having multiple symbols on the left side of production rules, not exceeding the right-hand side's number of symbols, and not allowing the rule A → ε unless A is a start symbol. Type 1 grammar should be Type 0, with production in the form of V → T.
    Type 2 Grammar, also known as Context Free Grammar, is a type of language that can be represented by the context free grammar (CFG). Its production rule is based on the form A → α, where A is a single non-terminal or a combination of terminals and non-terminals.
    Type 3 Grammar, also known as Regular Grammar, describes languages using regular expressions and can be modeled using NFA or DFA. It is the most restricted form of grammar, requiring Type 2 and Type 1 and forming the form of V → T*V / T* or V → VT* / T*.

ความคิดเห็น • 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 ปีที่แล้ว +43

    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 TH-cam.

  • @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 20 วันที่ผ่านมา

    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 👍👍

  • @41_ZakiKhan
    @41_ZakiKhan 9 หลายเดือนก่อน

    Thanks shoeb sir✅

  • @Hey_im_here
    @Hey_im_here ปีที่แล้ว

    Best teacher❤

  • @brayanrai2880
    @brayanrai2880 2 ปีที่แล้ว

    Nice explaination sir

  • @manjunathmulimani6926
    @manjunathmulimani6926 2 ปีที่แล้ว

    Best explanation sir

  • @somanyamaan5010
    @somanyamaan5010 ปีที่แล้ว

    Good explaination

  • @gamersgame43
    @gamersgame43 ปีที่แล้ว

    amazing explanation

  • @UmerKhan-ro3dy
    @UmerKhan-ro3dy ปีที่แล้ว +2

    Best

  • @RajBharad
    @RajBharad 2 ปีที่แล้ว

    Best vidio

  • @aboveallff7698
    @aboveallff7698 ปีที่แล้ว

    Thanx bro❤🎉

  • @anitarajvanshi5288
    @anitarajvanshi5288 2 ปีที่แล้ว

    Thank you sir 🙏

  • @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

    • @THEGATEHUB
      @THEGATEHUB  ปีที่แล้ว +1

      Yes

    • @subhash07092
      @subhash07092 ปีที่แล้ว

      Then how it is left linear or right linear

  • @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 😃