3. Draw the Turing Machine that accepts {strings in {0,1}* which terminate in 01} (1 pt) 4. Draw the Turing machine that computes the function f(x) = x/3 + 1, with x an integer represented in unary system, and x is multiple of 3. (2 pts)
Added by Stacey S.
Close
Step 1
First, we need to check if the input string is a multiple of 3. We can do this by moving the head right and marking every 3rd symbol until we reach the end of the input string. If we can mark every 3rd symbol and reach the end, then the input is a multiple of 3. Show more…
Show all steps
Your feedback will help us improve your experience
John Bell and 101 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Construct a Turing machine that computes the function $f(n)=3 n$ for all nonnegative integers $n .$
Modeling Computation
Turing Machines
Construct a Turing machine that computes the function $f\left(n_{1}, n_{2}\right)=n_{1}+n_{2}+1$ for all nonnegative integers $n_{1}$ and $n_{2} .$
Let <M1>, <M2>, <M3>, ... be an enumeration of all Turing machines with input alphabet {0, 1}. Let w1, w2, w3, ... be an enumeration of all binary strings. Prove that D = {wi | i ≥ 0 and Mi does not accept wi} is not Turing-recognizable. Hint: Use contradiction—assume D is Turing-recognizable and then use diagonalization.
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD