Dr.
Hasmik Gharibyan
Chomsky Hierarchy
Grammars Languages Accepting Machines
Type 0 grammars:
Unrestricted Recursively enumerable Turing Machine
Type 1 grammars:
Context-sensitive Context-sensitive Linear-bounded automaton
Type 2 grammars:
Context-free Context-free Push-down automaton
Type 3 grammars:
Regular Regular Finite State automaton
Note: The restrictions placed on the rules increase with the number of the grammar.
Relationships between the families of grammars:
Every regular grammar is context-free
Every context-free grammar that doesn’t contain a λ-rule is context-sensitive
Every context-free grammar is unrestricted
Every context-sensitive grammar is unrestricted
Relationships between the families of languages:
Every regular language is context-free
Every context-free language that doesn’t contain the λ-string is context-sensitive
Every context-free language is recursively enumerable
Every context-sensitive language is recursively enumerable
Relationships between the families of abstract machines:
PDAs can accept any language that Finite Automata accept
Linear Bounded Automata can accept any language that PDAs accept
Turing Machines can accept any language that Linear Bounded Automata accept