REGULAR EXPRESSIONS
REGULAR EXPRESSIONS We say that R is a regular expression if R is 1. a for some a , 2. , 3. , 4. (R1 R2 ), where R1 and R2 are regular expressions, 5. (R1 R2 ), where R1 and R2 are regular expressions,
6. (R1 ), where R1 is a regular expressions.
Let = {0, 1}, {w|w has exactly two 1 s}
Let = {0, 1}, {w|w has at least two 1 s}
Let = {0, 1}, {w|whas even number of 1 s}
A language is regular i some regular expression describes it
If a language is described by a regular expression, then it is regular
A generalized non-deterministic nite automata is a 5-tuple M = (Q, , , q0 , qf ).
Converting a GNFA to a regular expression
10
Convert the following FA to a regular expression
11