Question

Let L be the language described by the following regular grammar: a. For each of the following strings, indicate whether it i

The grammartofsm algorithm:

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

a)

(i)-또 L (iii)yyy: 또 L (iv)zyyzz EL

b)

Explanation:

Step 1:

As per the algorithm, we will make 3 states for each S, U and T.

Step 2:

Make S as the starting state.

Step 3:

Productions U -> y and T -> z leads to the creation of # as the final state.

Step 4:

All the remaining productions are included in the FSM.

The resultant FSM is as follows:

c)

FSM accepts the language that starts and ends with the same symbol except z, y and epsilon.

Explanation:

If the string starts with z then it should end with z.

If the string starts with y then it should end with y.

Add a comment
Know the answer?
Add Answer to:
The grammartofsm algorithm: Let L be the language described by the following regular grammar: a. For...
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