1,534 views
1 votes
1 votes

if concatenation of two languages $L_1\ and\ L_2(L_1.L_2)$  is regular then what can we say about $L_1\ and\ L_2 $ ??

is there any possibility of  $L_1=nonregular\ ,\ L_2=nonregular \   $ ?? 

2 Answers

2 votes
2 votes

Theorem:

Concatenation of two non-regular languages can be regular.

Constructive Proof:

Let $L$ be any non-regular language. Now, we know $L’$ is also non-regular.

Consider $(L \cup \{ \epsilon \})$ ; $(L’ \cup \{ \epsilon \})$, both of which are non-regular.

Now, $(L \cup \{ \epsilon \}).(L’ \cup \{ \epsilon \}) = \Sigma^*$, which is regular.


For concrete example:

Consider $L =$ Set of All Prime Numbers over $\{ 0 \}$ , 

$M =$ Set of All Composite Numbers over $\{ 0 \}$

Both $L,M$ are Non-regular.

Now, $L.M = \{ 0^n , n \geq 6 \}$ which is regular.

0 votes
0 votes

is there any possibility of  L1=nonregular , L2=nonregular  ?? 

YES!

One can come up with many example but I’ll state one of the standard and easy to understand.

Goldbach's conjecture : It states that every even natural number greater than 2 is the sum of two prime numbers.

L={1^p:p is an odd prime} If the Goldbach conjecture is true then L.L=(11)^+ is regular, but L isn't. 

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2
Abhisek Tiwari 4 asked Jan 17, 2019
182 views
1. 0(000)*0(000)* == 00(000)*is it equal how?
0 votes
0 votes
1 answer
3
ck asked Dec 22, 2018
1,259 views
Give an example of DFA minimization where the initial state is final state and there are one or more final states
1 votes
1 votes
1 answer
4
nihal_chourasiya asked Jan 7
187 views
In how many ways can you distribute 4 different choclates to 3 people such that each gets atleast 1 choclate.