edited by
3,310 views
9 votes
9 votes

Let A be a regular set . Consider the two sets below:

  • L1 = {$x \mid \exists{n}\geq 0 , \exists{y} \in A : y =x^{n}$}
  • L2 = {$x \mid \exists{n}\geq 0 , \exists{y} \in A : x =y^{n}$}

Which of the following is True ?

  1. L1 and L2 are Regular
  2. L1 is Regular but Not L2
  3. L2 is Regular but Not L1
  4. Both are not Regular
edited by

3 Answers

Best answer
11 votes
11 votes

Let us consider the language 2 first.Given that A is a regular set and the string denoted by 'y' belongs to the set A , so we know that power which we take as concatenation of the string itself  "n times " .

We are taking power of a language as concatenation "n" times with itself because :

Given a set V define

V0 = {ε} (the language consisting only of the empty string),

V1 = V

and define recursively the set

Vi+1 = { wv : w ∈ Vi and v ∈ V } for each i>0.

So Vi+1 is nothing but set comprising of concatenation of w and v where w belongs to Vi which I am referring as Vi  and v belongs to V. 

Reference : Definition and Notation Part of https://en.wikipedia.org/wiki/Kleene_star

Now the set V in this question is referred to the regular set A. We know that concatenation of regular language (or) regular set results in regular language only(by closure properties of regular language) .

So X is generated by Y's concatenation only and Y is a regular set (or) language.So X is also going to be regular set.

Now coming to language 1.

Now it says the opposite i.e. Y belongs to A only but now the relation between Y and X is :  Y  =  Xn  and given the clause there exist associated with the value of n , so we can assign any value of n which is >= 0 .So if n = 1 , then Y = X and hence X is obviously regular set .

Similarly on setting n = 2 , we get Y = X2  meaning Y can be partitioned on exactly 2 halves and hence we can say X is half(Y).And we know given a language or a set L is regular , then half(L) is also regular.

Hence the 1st language is also regular .

Hence A) should be the correct option.

selected by
1 votes
1 votes

Here y is a regular set

As y∊ A and A is a regular set

Here y=xn

So, here xn have to be regular

But in x= yn

 y is regular but y may  not be regular

say y = $\sum0^n$

$U=0^p,V=0^q,W=0^r$

Now p+q+r$\leq$n

Now when i=0

then equation not satisfied

So, here x=yn is not regular

edited by

Related questions

1 votes
1 votes
2 answers
3
aditi19 asked Mar 24, 2019
621 views
If $L = \Bigl \{ x \mid x \in \{ a, b, c \}^*, \text{The length of $x$ is a square } \Bigr \}$ then $L$ isRegularRecursive but not context freeContext Free but not regula...