I need help designing a turing machine that will compute the following f(x) = x mod 3. I just need help getting started since I am not familiar on how to approach this problem
I need help designing a turing machine that will compute the following f(x) =
Share
Extracts from the comments:
The input and input is in unary as a string of
1. Space is0. The output should rewrite the input.The input is {x, 3} with one space between each argument or {x}.
The output is {x mod 3}.
Algorithm:
State machine: