Is it true that for every regular language L &#x2286;<!-- ⊆ --> <mo fence="false" stretchy

tinydancer27br

tinydancer27br

Answered question

2022-05-29

Is it true that for every regular language L { 0 , 1 } the language { w | w | | w L } is also regular?

Answer & Explanation

Smarmabagd7

Smarmabagd7

Beginner2022-05-30Added 6 answers

Step 1
In fact, it is not even true that for every regular language L { 1 } , the language L = { w | w | w L } is regular.
In particular, let S V = { n N 1 n V } for all languages V { 1 } . Note that V = { 1 n n S V } = { s { 1 } | s | S v }.
Step 2
Clearly, we see that S L = { n 2 n S L } for all L { 1 } .
Now take L = { 1 } . Then we see that S L = { n 2 n N }. That is, L′ is the set of all strings whose length is a perfect square.
I will leave it as an exercise to apply the pumping lemma and finish the proof.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?