Question

1.   Write DFA, NFA (small), regular expression and right linear grammar for strings over {a,b} a.  ...

1.   Write DFA, NFA (small), regular expression and right linear grammar for strings over {a,b}

a.   End in either aa or bb

b. ( an | bna)   n >= 0

c. {w : w such that w contains the substring “bb” or w contains an odd number of a’s (or both).

d.   {w : w does not contain exactly two a’s}

e.   { w : w starts with substring abb and contains substring bba}

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

This is long assignment to do at once. Please post the remaining part seperately. We are not allowed to answer long assignment. Let me now if you have any doubt.

a.   End in either aa or bb

Regular expression: (a+b)*(aa|bb)

DFA:

e.   { w : w starts with substring abb and contains substring bba}

Regular expression: abb(a+b)*bba(a+b)*

Add a comment
Know the answer?
Add Answer to:
1.   Write DFA, NFA (small), regular expression and right linear grammar for strings over {a,b} a.  ...
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