PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
[parent] regular language (Definition)

A regular grammar is a context-free grammar where all productions must take one of the following forms (specified here in BNF, $ \lambda$ is the empty string):

$\displaystyle \verb.<.\textit{non-terminal}\verb.>.$ $\displaystyle ::=$ $\displaystyle terminal$  
$\displaystyle \verb.<.\textit{non-terminal}\verb.>.$ $\displaystyle ::=$ $\displaystyle terminal\,\verb.<.\textit{non-terminal}\verb.>.$  
$\displaystyle \verb.<.\textit{non-terminal}\verb.>.$ $\displaystyle ::=$ $\displaystyle \lambda$  

A regular language (also known as a regular set or a regular event) is the set of strings generated by a regular grammar. Regular grammars are also known as Type-3 grammars in the Chomsky hierarchy.

A regular grammar can be represented by a deterministic or non-deterministic finite automaton. Such automata can serve to either generate or accept sentences in a particular regular language. Note that since the set of regular languages is a subset of context-free languages, any deterministic or non-deterministic finite automaton can be simulated by a pushdown automaton.

There is also a close relationship between regular languages and regular expressions. With every regular expression we can associate a regular language. Conversely, every regular language can be obtained from a regular expression. For example, over the alphabet $ \lbrace a,b,c\rbrace$, the regular language associated with the regular expression $ a(b\cup c)^*a$ is the set

$\displaystyle \lbrace a\rbrace \circ \lbrace b,c\rbrace^* \circ \lbrace a\rbrace=\lbrace awa\mid w$ is a word in two letters $\displaystyle b$ and $\displaystyle c\rbrace,$
where $ \circ$ is the concatenation operation, and $ *$ is the Kleene star operation. Note that $ w$ could be the empty word $ \lambda$.

Yet another way of describing a regular language is as follows: take any alphabet $ \Sigma$. Let $ \mathcal{R}(\Sigma)$ be the smallest subset of $ P(\Sigma^*)$ (the power set of the set of words over $ \Sigma$, in other words, the set of languages over $ \Sigma$), among all subsets of $ P(\Sigma^*)$ with the following properties:

Then $ L$ is a regular language over $ \Sigma$ iff $ L\in \mathcal{R}(\Sigma)$.



"regular language" is owned by mps. [ full author list (3) | owner history (1) ]
(view preamble)

View style:

See Also: language, deterministic finite automaton, non-deterministic finite automaton, regular expression, Kleene algebra, context-free language

Other names:  regular grammar, Type-3 grammar, regular set, regular event
Keywords:  regular expression, Chomsky

This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: iff, union, closed under, singletons, cardinality, contains, properties, languages, power set, empty word, Kleene star, operation, concatenation, alphabet, associate, regular expressions, pushdown automaton, subset, sentences, generate, automata, non-deterministic finite automaton, Chomsky hierarchy, generated by, strings, empty string, BNF, productions, context-free grammar
There are 15 references to this entry.

This is version 13 of regular language, born on 2002-02-23, modified 2007-11-09.
Object id is 2548, canonical name is RegularLanguage.
Accessed 12165 times total.

Classification:
AMS MSC68Q45 (Computer science :: Theory of computing :: Formal languages and automata)
 68Q42 (Computer science :: Theory of computing :: Grammars and rewriting systems)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)