You are on page 1of 1

Tarea 3 2162000644

1) Find a language (i.e., a set of strings) to describe each of the following regular
expressions.
a) a b ¿ +c
R { c , a , ab , abb , abbb , … , a b n }
¿ ¿
b) a b c +ac
R { a , c } ∪ { b , abc ,aabcc , aaabccc , … , an b c n }
2) Find a regular expression to describe each of the following languages.
a) { a a ,a b , a c } .
R a {a+ b+c } .
b) { a , aaa ,aaaaa , … , a 2n +1 , … } .

R { a ( aa )0 , a ( aa )1 , a ( aa )2 ,… , a ( aa )n }=a ( aa )¿
3) Find a regular expression over the alphabet { 0,1 } to describe the set of all binary numerals
without leading zeros (except 0 itself). So, the language is the set
{ 0,1 , 10,11,100,101,110,111, … }
¿
R 0+1 ( 0+1 )
4) Prove each of the following equalities of regular expressions.
¿ ¿ ¿ ¿
a) a ( b+a b )=b+a a b
¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿
R ∴ a ( b+ a b )=( ⋋ +a a ) ( b+a b )¿ b+ a b + a a b+ a a a b ¿ b+ ( ⋋+a a ) a b +a a b
¿ ¿
¿ b+ a¿ a b ¿ +a a ¿ b¿ b+ a a ( b +b )¿ b+ a a¿ b ¿
5) Prove each of the following properties of regular expressions.
¿ ¿
a) 0 = Λ = Λ

0¿ = Λ ¿¿ Λ 0¿ =0+ 0+00+00+ …¿ Λ+0¿ Λ Again


0= Λ¿ = Λ
¿ ¿ ¿ ¿
b) R =( R ) =R+ R
¿ ¿ ¿ ¿
R R =( R ) =R+ R
¿ ¿ ¿
R ( R ) = ( Λ + R+ RR + RRR+ … )¿ R
¿
R Again R+ R =R+ ( Λ+ R + RR+ RRR + … )¿ R¿

1
Carlos Adrian Fernandez Pineda

You might also like