4,701 views

2 Answers

Best answer
5 5 votes

L={Set of all string in which number of a's are multiple of 3 } and ∑ ={a,b,c}

L={∊,b,bb,bbb,c,c,ccc,aaa,baaa,aaab,aaabc,abaca.....}

Regular Expression=  (  (b+c) + a (b+c)* a (b+c)* a  )*

• selected by
0 0 votes

For this, we will get a DFA something like this

We will have 3 states a,b,c

From a to b, one a will come

From b to c, another a will come

And from c to a, we have to come back with a transition a so that number of a gives a mod 3 = 0.

Hence ,

RE = (b* a b* a b* a) * 

• edited by
Position:
Show:

Related questions

1 1 vote
0 0 answers
930
930 views
Tuhin Dutta asked Dec 4, 2017
930 views
why $bb^*$ is $b^*$ and not $b^+$?Ref:$a^*(bb^*a + a)a^*\\=a^*(bb^*+\epsilon)aa^*\\=a^*b^*aa^*\\=a^*b^*a^*a$
2 2 votes
1 answers 1 answer
768
768 views
VS asked Aug 11, 2017
768 views
Complement of : {anbn | n>=0} ?Also tell if it is CFL or CSL?
0 0 votes
1 answers 1 answer
589
589 views
VS asked Aug 11, 2017
589 views
{ambncp|m+n+p>=10} Reg or not ?
3 3 votes
2 2 answers
1.9k
1.9k views
Tuhin Dutta asked Jan 27, 2018
1,871 views
Let A is the language where no of 'a' is greater than no of 'b' and B is the language where no of 'b' is greater than no of ‘a’ the language A.B is ______________a. Regul...