How to create a Turing machine that takes a single digit decimal number from 0 - 9 and output the cu
Posted
by Julian
on Stack Overflow
See other posts from Stack Overflow
or by Julian
Published on 2010-04-15T04:06:43Z
Indexed on
2010/04/15
4:13 UTC
Read the original article
Hit count: 530
I'm working on a project for a Turning machine but having problems conceptualizing the steps.
f(x) = x^3, where x is a single digit between 0 - 9 inclusive.
Based on my understanding I am to convert the number to binary but how do I find the cube of a number in binary.
Also, how do I write the cube on the tape.
So far I'm thinking I should create a state diagram that accepts the binary versions of 0-9 but what next?
© Stack Overflow or respective owner