请输入您要查询的字词:

 

单词 RegularLanguage
释义

regular language


A regular grammar is a context-free grammar where a production has one of the following three forms:

Aλ,Au,AvB

where A,B are non-terminal symbols, u,v are terminal words, and λ the empty wordPlanetmathPlanetmathPlanetmath. In BNF, they are:

<non-terminal>::=terminal
<non-terminal>::=terminal<non-terminal>
<non-terminal>::=λ

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 deterministicMathworldPlanetmath or non-deterministic finite automaton. Such automata can serve to either generate or accept sentencesMathworldPlanetmath 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 expressionsMathworldPlanetmath. 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 {a,b,c}, the regular language associated with the regular expression a(bc)*a is the set

{a}{b,c}*{a}={awaw is a word in two letters b and c},

where is the concatenationMathworldPlanetmath operationMathworldPlanetmath, and * is the Kleene star operation. Note that w could be the empty word λ.

Yet another way of describing a regular language is as follows: take any alphabet Σ. Let (Σ) be the smallest subset of P(Σ*) (the power setMathworldPlanetmath of the set of words over Σ, in other words, the set of languagesPlanetmathPlanetmath over Σ), among all subsets of P(Σ*) with the following properties:

  • (Σ) contains all sets of cardinality no more than 1 (i.e., and singletons);

  • (Σ) is closed under set-theoretic union, concatenation, and Kleene star operations.

Then L is a regular language over Σ iff L(Σ).

Normal form. Every regular language can be generated by a grammar whose productions are either of the form AaB or of the form Aλ, where A,B are non-terminal symbols, and a is a terminal symbol. Furthermore, for every pair (A,a), there is exactly one production of the form AaB.

Remark. Closure properties on the family of regular languages are: union, intersectionMathworldPlanetmath, complementation, set differenceMathworldPlanetmath, concatenation, Kleene star, homomorphismPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath, inverseMathworldPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath homomorphism, and reversal.

References

  • 1 A. Salomaa Computation and Automata, Encyclopedia of Mathematics and Its Applications, Vol. 25. Cambridge (1985).
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 11:44:31