Question

Give an example of two languages L1 and L2 satisfying the following conditions at the same...

Give an example of two languages L1 and L2 satisfying the following conditions at the same time.

  1. L1 is a non-regular language;
  2. L2 is a regular language;
  3. L1 ⊂ L2.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

L1={anbn | n>0 alphabet={a,b}}

L1={ab,aabb,aaabbb,....}

L2={(a+b)*| alphabet={a,b}}

L2={e,a,b,ab,aa,ba,bb,.......,aabb,..,aaabbb,.....}

L2 is the set of all strings over a,b including (a,b).

Whereas L1 contains strings ove a,b where any string does not contain substring ' ba ' and does not contain e.

Add a comment
Know the answer?
Add Answer to:
Give an example of two languages L1 and L2 satisfying the following conditions at the same...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT