Set with only a single letter string { a
}.
Set with only a empty string { "
" }
An element of sets s or t.
(alternation)
e.g.:
s = { a
}
t = { c
}
s|t = { a
,c
}
An element of set s is cotenated with a string an element from t.
(concatenation)
e.g.:
s = { a
,b
}
t = { c
,d
}
st = { ac
,ad
,bc
,bd
}
Concatenation of any number of elements from subsets of s.
e.g.:
s = { a
,b
}
s* = { ε,a
,b
,aa
,ab
,ba
,bb
,aaa
, ... }
- *
- concatenation
- |
e.g.:
a|ab*
= a|(a(b*))
- (r|s|)t = r|s|t = r|(s|t)
- s|t = t|s
- s|s = s
- s ε = s = ε s
- (rs)|t = rst = r(st)
- r ( s | t ) = rs | rt
- ( r | s ) t = rt | st
- (s*)* = s*
- s*s* = s*
- s? = s|ε
- s+ = ss* = s*s
- [st] = s|t