The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
L={a^n b^n :n>=1} and R = (a+b)^*

L union R is going to be regular or not regular

plzz give reason L is not regular if N leads to infinity then how it can be regular ..........
asked in Theory of Computation by (153 points)
retagged by | 71 views

2 Answers

+2 votes
Best answer
$L$ = {$ab,aabb,aaabbb,aaaabbbb....... $}     $\Rightarrow DCFL$
$R$ = {$\epsilon, a ,b , aa,bb,ab,ba,aaa,bbb ,aabb,aaaabbbb,,,,,,,,$}  $\Rightarrow Regular$
$L\cup R$ = {$\epsilon, a ,b , aa,bb,ab,ba,aaa,bbb ,aabb,aaaabbbb,,,,,,,,$} = $R$  $\Rightarrow Regular$

The thing is $R$ is a set of all strings over {$a,b$}. So $union$ of $R$ and $L$ is $R$ only. So it's regular.
$DCFL \cup Regular$ = $DCFL$ and Regular languages are subset of DCFL .
answered by Boss (12k points)
selected by
+2 votes

it should be regular.

  • (a+b)* U any language = (a+b)* -----> which is regular.
answered by Boss (22.5k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

37,964 questions
45,466 answers
48,380 users