






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































Standard Representations of Regular Languages Regular Languages
DFAs NFAs Regular Expressions
Regular expressions^ Regular Expressions describe regular languages Example: describes the language
( a b c )* a , bc * , a , bc , aa , abc , bca ,...
^1 1
r r rr rr Are regular expressions
Primitive regular expressions: Given regular expressions r 1 and r 2
Languages of Regular Expressions : language of regular expression Example
L r r
L ( a b c )* , a , bc , aa , abc , bca ,...
Definition For primitive regular expressions: L a a
Regular expression:^ Example a b a * L a b a LL (^) (^) a a bb L (^) L a * a La a bL b a (^) L a aa ,, baa , aaa , a ,,..., aa , baaa , ba ,..., baa ,...
Example Regular expression r a b * a bb
L r a , bb , aa , abb , ba , bbb ,...
Example Regular expression r (^0 ^1 )^00 (^0 ^1 ) L ( r ) = { all strings with at least two consecutive 0 }
Example
L ( r ) = { all strings without two consecutive 0 }
L = { all strings without^ Example two consecutive 0 }
L ( r 1 ) L ( r 2 ) L are equivalent regular expr. r^1 and r^2
Languages Generated by Regular Expressions ^ Regular^ Languages Languages Generated by Regular Expressions ^ Regular^ Languages
Proof:
Theorem - Part 1
Languages Generated by Regular Expressions ^ Regular^ Languages