Deterministic finite automata (or DFA) are state transition machines which approve or disapprove sequence by communicate of information and sequence.Suppose have been the DFA that recognizes the language D and has five states. M's following example looks like this:

![]()
Sequence such as The language accepts the word b since it has an odd number of b's (1) followed by an even number of 's (0). The language D may written as a mixture of the two languages and .
The regular language can be defined as follows,
Consider the two languages,
The relation of the languages can be defined as follows,
.
Consider that, the regular expression that generates , the regular expressiongenerates and the regular expression R generates D.
The relation can be defined as,
Substitute, inas follows,
Therefore, the regular expression that generates the language D is .