397 views
0 votes
0 votes
Let A = {a, b}, L = {a^nb^n:n>=1} and R = A*, then the languages RUL and R are:

a) Regular, Regular

b) Regular, Not Regular

c) Not Regular, Regular

d) Not Regular, Not Regular

2 Answers

Best answer
1 votes
1 votes
R = {a, b}*

So it contains everything. And it is regular.

Now R U L is also R since whatever L be it will always be a subset of R(since it contains all possible strings).

So both the languages are same i.e. {a, b}* . Hence, both are regular.

And by the way, L is DCFL.
selected by
2 votes
2 votes
First of all L is DCFL. Not regular.

Now R is {a,b}*  So regular.
So it contains everything.
Now everything Union Something = Everything.
Everything is Regular.

So RUL & R both are regular.

Related questions

0 votes
0 votes
1 answer
1
practicalmetal asked Mar 25, 2023
379 views
The solution to $X = r +Xs$ by Arden’s Lemma when s has ϵa) an infinite number of solutionsb) a finite number of solutionsc) is always uniqued) none
1 votes
1 votes
1 answer
2
atulcse asked Jan 28, 2022
486 views
Which of the following languages is/are regular?
5 votes
5 votes
3 answers
3
Hirak asked May 25, 2019
1,812 views
Consider the following statements:$S_1:\{(a^n)^m|n\leq m\geq0\}$$S_2:\{a^nb^n|n\geq 1\} \cup \{a^nb^m|n \geq1,m \geq 1\} $Which of the following is regular?$S_1$ only$S_2...