Question

construct a turing machine to compute x-y where x and y are natural numbers

construct a turing machine to compute x-y where x and y are natural numbers
0 0
Add a comment Improve this question Transcribed image text
Answer #1

First we convert first zero of smaller number to x then we convert first zero of greater number to x.

Then same is done with second zero of both numbers. When all zeroes of smaller number has been converted to x, the remaining number of zeros is machine gives us our answer.

This turing machine will work only if larger number is on right hand side of c.

Hope this helps
If you have any doubt feel free to comment
Thank You!!

Add a comment
Know the answer?
Add Answer to:
construct a turing machine to compute x-y where x and y are natural numbers
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