1,197 views
3 votes
3 votes
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. Regular

b. DCFL but not Regular

c. CFL but not DCFL

d. REC but not DCFL

2 Answers

1 votes
1 votes
Yes Regular is correct answer.

consider any string you can divide it as two parts as given in question as(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).

Ex: abaabba

divide as abaa and bba then the given condition satisfies.

2. abba

divide it as 'a' and 'bba' .

3. aaaab

divide it as aaaa and b.
0 votes
0 votes
Option C

It is not regular because in question requires comparison

Concatenation followed by both CFL and REC BUT if it is CFL then also rec

Related questions

1 votes
1 votes
2 answers
1
Chhotu asked Nov 11, 2017
1,548 views
Hi Guys,What will be ${\left ( DCFL \cup Regular \right )} '$ ?
1 votes
1 votes
1 answer
2
1 votes
1 votes
2 answers
3
ggwon asked Dec 29, 2022
733 views
L = {$a^{n+m}b^{n}a^{m} | n,m \geq 0$}Is the above language DCFL or CFL ?