[Home]Context-sensitive language

HomePage | Recent Changes | Preferences

A context-sensitive language is a formal language that can be defined by a context-sensitive grammar.

Computational properties

Computationally the context-sensitive lanugages are equivalent with linear bounded Turing machines where a linear bounded Turing machine is a Turing with a tape of only kn cells where n is the size of the input and k a constant associated with the machine. This means that every formal language that can be decided by such a machine is a context-sensitive language, and every context-sensitive language can be decided by such a machine.

Examples

Every context-free language is context-sensitive.

An example of a context-sensitive language that is not context-free is L = { an : n is a prime number }. The easiest way to show this is using a linear bounded Turing machine.


See also: Chomsky hierarchy

HomePage | Recent Changes | Preferences
This page is read-only | View other revisions
Last edited October 12, 2001 8:36 am by AxelBoldt (diff)
Search: