Question

7. (Exercise 8.5.1) Simulating a Turing machine. Here is a description of a Turing machine. The input alphabet is {a, b}. The

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

The initial state is q0. If there is no input string on input tape, it gets into rejected state. Therefore, the string length should of at least 1.

If the first symbol is a, it goes to state q1, else if it is b, it goes to q2.

From q1, on both a and b, state will not be changed. But on completion of reading the string, it goes to state q3. q3 goes to accept state only if the last symbol is a, else the string is rejected. Therefore, if the string starts with a and end with a, it gets accepted.

Similarly from state q2, on completion of reading the string, it goes to q4. And then further, it gets accepted only if the last symbol is b, else rejected. Therefore, if the string starts with b, then it has to ended with b to get accepted.

By combining above both conclusions, we can conclude that the turing machine accepts the strings that starts and end with same symbol with length greater than 1.

Add a comment
Know the answer?
Add Answer to:
7. (Exercise 8.5.1) Simulating a Turing machine. Here is a description of a Turing machine. The...
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