is a regular expression over the alphabet if:
, with
, with and regular expressions.
with and regular expressions.
, with a regular expressions.
---------------------------------------------------------
note: The use of brackets in the above definition avoids issues of operator precedence. In general, star is considered to be of higher precedence than concatenation (0 ) , which in turn is higher than union . Thus reads, "apply star to the union of and . And
reads take the union of and .
---------------------------------------------------------
Given a regular expression over the alphabet , we define , the language of , recursively as a set of strings in as follows:
if , with , then , the set with the single string "".
if , then , the set with the single string being the empty string.
, then , the empty set of strings.
, with and regular expressions, then , the union of the two sets of strings.
with and regular expressions, then
, with a regular expressions,
then .
Finally we say if and only if
---------------------------------------------------------
only if , else
Sipser Pages 84-85 :
1.5 a,b,c
1.6 a.
1.10
________________________________________________
________________________________________________