






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







th
CS402 (Formal Language and Automata Theory) Chomsky classification of Grammar
INTRODUCTION Formal Grammars A formal grammar of this type consists of a finite set of production rules ( left-hand side ā right-hand side ), where each side consists of a finite sequence of the following symbols: ļµa finite set of nonterminal symbols (indicating that some production rule can yet be applied) ļµa finite set of terminal symbol (indicating that no production rule can be applied) ļµa start symbol (a distinguished nonterminal symbol) A formal grammar provides an axiom schema for (or generates ) a formal language , which is a (usually infinite) set of finite- length sequences of symbols that may be constructed by applying production rules to another sequence of symbols (which initially contains just the start symbol). A rule may be applied by replacing an occurrence of the symbols on its left-hand side with those that appear on its right-hand side. A sequence of rule applications is called a derivation. Such a grammar defines the formal language: all words consisting solely of terminal symbols which can be reached by a derivation from the start symbol.
Formal Language
Production rules ļµ SENTENCE ā NOUNPHRASE VERBPHRASE ļµ NOUNPHRASE ā ADJ NOUNPHRASE ļµ NOUNPHRASE ā NOUN ļµ VERBPHRASE ā VERB NOUNPHRASE ļµ VERBPHRASE ā VERB
The Hierarchy Grammar Languages Automaton Type-0 Recursively enumera ble Turing machine Type-1 Context-sensitive Linear-bounded non-deterministic Turing machine Type-2 Context-free Non-deterministic pushdown automaton Type-3 Regular Finite state automaton
CONCLUSION After completion of this paper, a brief idea on the different types of grammars as classified by Noam Chomsky can be understood clearly. The basis of their classification can also be understood and furthermore we also get to know about the significance of it. It is an important topic in the syllabus of CS402 (Formal Language & Automata Theory). So a paper for having a brief on the topic was prepared and hence, successful.