hidden pixel

Chomsky Hierarchy Information

Within the field of computer science, specifically in the area of formal languages, the Chomsky hierarchy (occasionally referred to as Chomsky–Schützenberger hierarchy) is a containment hierarchy of classes of formal grammars.

This hierarchy of grammars was described by Noam Chomsky in 1956.[1] It is also named after Marcel-Paul Schützenberger, who played a crucial role in the development of the theory of formal languages.

Contents

Formal grammars

Main article: Formal grammar

A formal grammar of this type consists of:

A formal grammar defines (or generates) a formal language, which is a (usually infinite) set of finite-length sequences of symbols (i.e. strings) 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 to a sequence of symbols by replacing an occurrence of the symbols on the left-hand side of the rule with those that appear on the 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.

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 the same language: Terminals , Nonterminals , Start symbol , Production rules

ε

The hierarchy

Set inclusions described by the Chomsky 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, not containing the empty string, 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 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 language it generates, the type of automaton that recognizes it, and the form its rules must have.

Grammar Languages Automaton Production rules (constraints)
Type-0 Recursively enumerable Turing machine (no restrictions)
Type-1 Context-sensitive Linear-bounded non-deterministic Turing machine αAβ ⟶ αγβ
Type-2 Context-free Non-deterministic pushdown automaton
Type-3 Regular Finite state automaton and

However, there are further categories of formal languages, some of which are given in the following table:

Automata theory: formal languages and formal grammars
Chomsky hierarchy Grammars Languages Minimal automaton
Type-0 Unrestricted Recursively enumerable Turing machine
(no common name) Recursive Decider
Type-1 Context-sensitive Context-sensitive Linear-bounded
Indexed Indexed Nested stack
Linear context-free rewriting systems etc. Mildly context-sensitive Thread automata
Tree-adjoining etc. Tree-adjoining Embedded pushdown
Type-2 Context-free Context-free Nondeterministic pushdown
Deterministic context-free Deterministic context-free Deterministic pushdown
Visibly pushdown Visibly pushdown Visibly pushdown
Type-3 Regular Regular Finite
Star-free Counter-free (with aperiodic finite monoid)
Each category of languages is a proper subset of the category directly above it. - Any automaton and any grammar in each category has an equivalent automaton or grammar in the category directly above it.

References

  1. ^ Chomsky, Noam (1956). "Three models for the description of language". IRE Transactions on Information Theory (2): 113–124. http://www.chomsky.info/articles/195609--.pdf.

External links

Noam Chomsky
Select bibliography
Linguistics
Politics
Collections (articles & interviews)
Filmography
Family
^* with Edward S. Herman

Categories:

 

The above information uses material from Wikipedia and is licensed under the GNU Free Documentation License.
Some facts may not have been fully verified for accuracy. [Disclaimers]
This page was last archived by our server on Tue Mar 27 09:33:37 2012.
Displaying this page or its contents does not use any Wikimedia Foundation's resources.
The owners of this site proudly support the Wikimedia Foundation.