Chomsky Hierarchy - Explained in Detail with examples

Опубликовано: 05 Октябрь 2024
на канале: Advanced CS IT for GATE
51,357
676

Chomsky Hierarchy represents the class of languages that are accepted by the different machine.
According to Noam Chomsky, there are four types of grammars − Type 0, Type 1, Type 2, and Type 3.
Types of Grammars
Chomsky Classification

+----------------------------------------------------------------------------------------------------------------------+
| Chomsky Hierarchy |
+---------------------------+-----------------------------+---------------------------+-----------------------------+
| Grammar | Grammar | Language | Automaton |
| Type | Accepted | Accepted | |
+---------------------------+-----------------------------+---------------------------+-----------------------------+
| | Unrestricted | Recursively | Turing |
| Type 0 | Grammar | Enumerable | Machine |
| | | Language | |
+---------------------------+-----------------------------+---------------------------+-----------------------------+
| | Context | Context | Linear |
| Type 1 | Sensitive | Sensitive | Bounded |
| | Grammar | Language | Automaton |
+---------------------------+-----------------------------+---------------------------+-----------------------------+
| | Context | Context | Pushdown |
| Type 2 | Free | Free | Automaton |
| | Grammar | Language | |
+---------------------------+-----------------------------+---------------------------+-----------------------------+
| Type 3 | Regular | Regular | Finite |
| | Grammar | Language | Automaton |
+---------------------------+-----------------------------+---------------------------+-----------------------------+

▬▬▬▬▬▬▬▬▬♫ ▬▬ ♪▬▬▬▬▬▬▬▬▬
Song: Diamond Eyes - Father [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/iFather
Watch:    • Diamond Eyes - Father | Future Bass |...