| Chomsky Hierarchy |
Article Index for Chomsky |
Website Links For Hierarchy |
Information AboutChomsky Hierarchy |
|
Marcel Schützenberger who played a crucial role in the development of the theory of Formal Language s. FORMAL GRAMMARS A formal grammar consists of a finite set of ''terminal symbols'' (the letters of the words in the formal language), a finite set of ''nonterminal symbols'', a finite set of ''production rules'' with a left- and a right-hand side consisting of a word of these symbols, and a ''start symbol''. A rule may be applied to a word by replacing the left-hand side by the right-hand side. A derivation is a sequence of rule applications. Such a grammar defines the formal language of all words consisting solely of terminal symbols that can be reached by a derivation from the start symbol. Nonterminals are usually represented by uppercase letters, terminals by lowercase letters, and the start symbol by . For example, the grammar with terminals , nonterminals , production rules : : ε (where ε is the empty string) : : : : : and start symbol , defines the language of all words of the form (i.e. copies of followed by copies of ). The following is a simpler grammar that defines a similar language: Terminals , Nonterminals , Start symbol , Production rules : : ε See Formal Grammar for a more elaborate explanation. THE HIERARCHY The Chomsky hierarchy consists of the following levels:
Note that the set of grammars corresponding to recursive languages is not a member of this hierarchy. Every regular language is context-free, every context-free language is context-sensitive and every context-sensitive language is recursive and every recursive language is recursively enumerable. These are all proper inclusions, meaning that there exist recursively enumerable languages which are not recursive, recursive languages that are not context-sensitive, context-sensitive languages which are not context-free and context-free languages which are not regular. The following table summarizes each of Chomsky's four types of grammars, the class of languages it generates, the type of automaton that recognizes it, and the form its rules must have.
REFERENCES # Noam Chomsky: ''Three models for the description of language'', IRE Transactions on Information Theory, 2 (1956), pages 113-124 # Noam Chomsky: ''On certain formal properties of grammars'', Information and Control, 2 (1959), pages 137-167 # Noam Chomsky, Marcel P. Schützenberger: ''The algebraic theory of context free languages,'' Computer Programming and Formal Languages (P. Braffort and D. Hirschberg ed.), North Holland, Amsterdam, 1963, 118-161. EXTERNAL LINKS
|
|
|