Regular Language: Difference between revisions
Jump to navigation
Jump to search
imported>Alexander Wiebel (→Closure Properties: beautifications) |
imported>Gaurav Banga |
||
Line 19: | Line 19: | ||
* <math>AB = \{xy ~|~ x \in A\ \mathrm{and}\ y \in B\}</math> ([[concatenation]]) | * <math>AB = \{xy ~|~ x \in A\ \mathrm{and}\ y \in B\}</math> ([[concatenation]]) | ||
* <math>A^* = \{x_1 x_2 \ldots x_n ~|~ n \geq 0\ \mathrm{and}\ x_i \in A,~1 \leq i \leq n\}</math> ([[asterate]]) | * <math>A^* = \{x_1 x_2 \ldots x_n ~|~ n \geq 0\ \mathrm{and}\ x_i \in A,~1 \leq i \leq n\}</math> ([[asterate]]) | ||
* <math>A - B = \{x - y ~|~ x \in A\ \mathrm{and}\ y \in B\}</math> ([[difference]]) | |||
* <math>A^R = \{x^R|~ x \in A\ \}</math> ([[reversal]]) | |||
Regular languages are also closed under homomorphic images and preimages. Suppose <math>C \subseteq \Gamma^*</math> is a regular language and <math>h : \Sigma^* \to \Gamma^*</math> is a [[string homomorphism]]. Then the following languages are regular. | Regular languages are also closed under homomorphic images and preimages. Suppose <math>C \subseteq \Gamma^*</math> is a regular language and <math>h : \Sigma^* \to \Gamma^*</math> is a [[string homomorphism]]. Then the following languages are regular. |
Revision as of 20:09, 14 July 2008
In computing theory, a regular language is one that is accepted by a finite automaton.
Equivalent Characterizations
- is a regular language.
- is accepted by a deterministic finite automaton.
- is accepted by a non-deterministic finite automaton.
- can be described by a regular expression.
Closure Properties
Suppose are regular languages. Then the following languages are also regular.
- (union)
- (intersection)
- (complement)
- (concatenation)
- (asterate)
- (difference)
- (reversal)
Regular languages are also closed under homomorphic images and preimages. Suppose is a regular language and is a string homomorphism. Then the following languages are regular.