retagged by
2,292 views
2 votes
2 votes

 Describe the languages denoted by the following regular expressions:

  1. $a(a\mid b)^{\ast}a.$
  2. $((\epsilon\mid a)b^{\ast})^{\ast}.$
  3. $(a\mid b)^{\ast}a(a\mid b)(a\mid b).$
  4. $a^{\ast}ba^{\ast}ba^{\ast}ba^{\ast}.$
  5. $(aa\mid bb)^{\ast}((ab\mid ba)(aa\mid bb)^{\ast}(ab\mid ba)(aa\mid bb)^{\ast})^{\ast}.$
retagged by

1 Answer

1 votes
1 votes
a). start and end with a.

b). (a+b)* or we can say universal set on symbols (a,b).

c). end with aaa or aab or aba or abb.

d). containing exactly 3 b's.

e). m solving (i will post (e) asap.)

correct me if wrong..

Related questions

3 votes
3 votes
1 answer
3
admin asked Aug 5, 2019
1,878 views
In a string of length $n$, how many of the following are there? Prefixes. Suffixes. Proper prefixes. Substrings. Subsequences.