Information AboutRegular Language |
| CATEGORIES ABOUT REGULAR LANGUAGE | |
| formal languages | |
REGULAR LANGUAGES OVER AN ALPHABET The collection of regular languages over an alphabet Σ is defined recursively as follows:
All Finite Language s are regular. Other typical examples include the language consisting of all strings over the alphabet {''a'', ''b''} which contain an even number of ''a'''s, or the language consisting of all strings of the form: several ''a'''s followed by several ''b'''s. A simple example of a language that is not regular is the set of strings . Some additional examples are given below. If a language is ''not'' regular, it requires a machine with at least Ω (log log ''n'') space to recognize (where ''n'' is the input size). In other words, DSPACE( O (log log ''n'')) equals the class of regular languages. In practice, most nonregular problems are solved by machines taking at least Logarithmic Space . CLOSURE PROPERTIES The regular languages are Closed under the following operations: That is, if ''L'' and ''P'' are regular languages, the following languages are regular as well:
DECIDING WHETHER A LANGUAGE IS REGULAR To locate the regular languages in the or the Pumping Lemma .
The language ''L'' is regular if and only if the number of equivalence classes of ~ is finite (A proof of this is provided in the article on the Syntactic Monoid ). When a language is regular, then the number of equivalence classes is equal to the number of states of the Minimal Deterministic Finite Automaton accepting ''L''.
FINITE LANGUAGES A specific subset within the class of regular languages is the finite languages - those containing only a finite number of words. These are obviously regular as one can create a Regular Expression that is the Union of every word in the language, and thus are regular. SEE ALSO REFERENCES
EXTERNAL LINKS
|
|
|