Question

Turing machine that subtracts two from the input string corresponding a ternary number.

Implement a Turing machine that subtracts two from the input string corresponding a ternary number. More specifically, suppose w = an−1an−2 . . . a1a0 is the input string with ai ∈ {0, 1, 2}. Your Turing machine should subtract two from w “in-place”, i.e., at the end of the computation the tape should contain the result, w − 2 and the tape head should be at the start of that string. Upon a successful operation, halt on accept. Otherwise, i.e., when the input is empty or the number is too small, halt on reject. Test your machine with w0 = 01, w1 = 1000 and w2 = 2011.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Turing machine that subtracts two from the input string corresponding a ternary number.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

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