960 views
1 votes
1 votes
Consider the following language L = {w ∈ (a+b)* | w has atleast as many occurrences of (bba)’s as (abb)’s}. Which of the following statements is/are true?
S1: Language L is regular.
S2: Complement of L is CFL.
S3: Complement of L is CSL.
S4: Reversal of L is CFL.

2 Answers

2 votes
2 votes
there is no need to keep the number of bba’s in the memory because whenever two abb’s comes together (adjacent), then one bba’s always come between them. So  L is regular.  regular language is closed under complement, reversal and regular language are subset of CSL and CFL.
So, all the statements are correct.

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
0 answers
2
ck asked Jul 22, 2017
312 views
If we number sigma* in dictionary order then sigma* is countable infinite. On the other hand sigma* is the superset of all the lunguagesso is sigma* regular?
0 votes
0 votes
1 answer
4
ck asked Jun 23, 2017
770 views
Is every EPSILON-NFA a DFA given the fact that every NFA is a DFA and every NFA is EPSILON-NFA