Question

Let Σ = { a, b } , and consider the language L = { a...

Let Σ = { a, b } , and consider the language L = { a n : n is even } ∪ { b n : n is odd } . Draw a graph representing a DFA (not NFA) that accepts this language.

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

you can see that every string in this language either contains all a's in even no or all b's in odd number but there is no string such that it contains both a and b in any number .

DFA Graph a q a 226 6 95 90 1) а ta 6 24 qo is street state 90, 92, 93 are accepting states or final states q5 is dead stateyou can see in above graph when i am trying to accept a string with all a's in even number if in state q1 or q2 i see any b i move to q5 which is dead so that if string enters this state a string can never come out of this state and it is rejected

Similarly when i am trying to accept a string with all b's if i see any a in q3 and q4 states i move to q5 or dead state

If you are having any doubts please ask i will answer asap

Add a comment
Know the answer?
Add Answer to:
Let Σ = { a, b } , and consider the language L = { 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
ADVERTISEMENT