Question

Construct the state digraph (including accept states) of a Moore machine that accepts all strings that start with b and end with baa. The input alphabet is A = {a, b].

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

Please follow the below example to construct state digraph of a Moore machine that accepts all strings that start with b and end with baa:

Let S0 be the starting state. The first thing you need to do is make sure that the first letter is a b, so we'll have the rules:

S0→aS1, S0→bS2

and if the machine is in state S1 it will remain there. If the machine gets to state S2, all we need to do is make it so that the accepting state is reached after any occurrence of the sequence baa, so that if the string ends with such a sequence the machine will be in an accepting state. Thus we want transition rules

S2→bS3, S3→aS4, S4→aS5

with S5 the accepting state. If we run into a letter which is not part of the sequence baa, we want to restart our search for baa, which we do by returning to the state S2. Thus we add the rules

S2→aS2, S3→bS2, S4→bS2, S5→a,bS2

Add a comment
Know the answer?
Add Answer to:
Construct the state digraph (including accept states) of a Moore machine that accepts all strings that...
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