Safekipedia

Indexed language

Discoverer · ages 10+Adapted from Wikipedia

Indexed languages are a type of formal languages that were discovered by Alfred Aho. They are described by indexed grammars and can be recognized by nested stack automata.

Indexed languages are a proper subset of context-sensitive languages. They count as an abstract family of languages (and even a full AFL), so they follow many useful rules about how they behave when combined. However, they are not closed under intersection or complement.

Indexed languages matter in natural language processing, the field that works on how computers handle human language. They are a computationally affordable way to extend context-free languages, because indexed grammars can describe many of the long-distance rules found in natural languages.

Gerald Gazdar (1988) and Vijayashanker (1987) introduced a mildly context-sensitive language class now known as linear indexed grammars (LIG). Linear indexed grammars have extra restrictions compared with indexed grammars. LIGs are weakly equivalent to tree adjoining grammars, meaning they generate the same class of languages.

Examples

Some languages are indexed but are not context-free. Two examples are {anbncndn|n≥1} and {anbmcndm|m,n≥0}. Two other languages are also indexed, but they are not even mildly context sensitive under Gazdar's characterization. These are {a2n|n≥0} and {www|w∈{a,b}+}. However, the language {(abn)n|n≥0} is not indexed.

Properties

Hopcroft and Ullman think of indexed languages as a "natural" group, because several different ways of describing them can generate them. These include indexed grammars, one-way nested stack automata, Fischer's macro grammars, Greibach's automata with stacks of stacks, and Maibaum's algebraic characterization.

Hayashi generalized the pumping lemma to indexed grammars. Gilman, on the other hand, gives a "shrinking lemma" for indexed languages.

This article is a child-friendly adaptation of the Wikipedia article on Indexed language, available under CC BY-SA 4.0.