Presentation On Production Rule of All The Grammers
Presentation On Production Rule of All The Grammers
on
Production rule of all the
grammers
NAME-SUSHIL JASWAL SUBMITTED TO-Dr BRIJESH BAKARIYA
ROLL NO-1916413
NAME-SIMRAN KAUR
ROLL NO-1916410
NAME-RADHIKA
ROLL NO-1916405
Chomsky Hierarchy
Chomsky Hierarchy represents the class of languages that are accepted by the different machine. The
category of language in Chomsky's Hierarchy is as given below:
• Type 0 known as Unrestricted Grammar.
• Type 1 known as Context Sensitive Grammar.
• Type 2 known as Context Free Grammar.
• Type 3 Regular Grammar.
This is a hierarchy. Therefore every language of type 3 is also of type 2, 1 and 0. Similarly, every language
of type 2 is also of type 1 and type 0, etc.
Comparision between four types of
grammars
According to Noam Chomosky, there are four types of grammars − Type 0, Type 1, Type 2, and
Type 3. The following table shows how they differ from each other −
Type - 0 Grammar
CB → DB aD → Db
Rules for Type 0 Grammar:
For example:
bAa → aa
S → s
Type - 1 Grammar