Question

(9) For each of the following languages L, give a simple English description. Show two strings...

(9) For each of the following languages L, give a simple English description. Show two strings that are in L and two that are not (unless there are fewer than two strings in L or two not in L, in which case show as many as possible).

• L = {ω ∈ {a,b}∗| exactly one prefix of ω ends in a }.

• L = {ω ∈ {a,b}∗| all prefixes of ω end in a }.

• L = {ω ∈ {a,b}∗|ω = axa,x ∈ {a,b}+}.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Only one a is in the language

In language
-> a
-> bba

Not in language
-> aa
-> baba

2. Strings having only a's

In language
-> a
-> aa

Not in language
-> ab
-> baba

3. Strings that start and end with a

In language
-> aaa
-> aba

Not in language
-> ab
-> baba

--------------------------------------
Hit the thumbs up if you are fine with the answer. Happy Learning!

Add a comment
Know the answer?
Add Answer to:
(9) For each of the following languages L, give a simple English description. Show two strings...
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