994 views
0 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 1 vote
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 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.
Position:
Show:

Related questions

3 3 votes
2 2 answers
327
327 views
Mr_Soprano asked Jul 5, 2025
327 views
Can someone provide a formal proof for such questions?
0 0 votes
1 1 answer
710
710 views
practicalmetal asked Mar 25, 2023
710 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 1 vote
1 1 answer
1.3k
1.3k views
atulcse asked Jan 28, 2022
1,334 views
Which of the following languages is/are regular?
5 5 votes
3 answers 3 answers
4.8k
4.8k views
Hirak asked May 25, 2019
4,824 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...