3. For Turing machines: (a). (8 pts) Give the state diagram of a Turing machine that recognizes the following language over ? = {a, b}: L1 = {w : w contains the substring aab} (b). (12 pts) A Turing machine X with Right Tab T is similar to a normal Turing machine except that its transition function is defined as ?: Q × ? ? Q × ? × {L, R, T} where T is an extra tape directive, in addition to Left and Right, that moves the read/write head to the first blank space to the right. Show that X is Turing-complete. Note: Please use the following notation to label your Turing machine transitions: qi ? qj x ? y, z (read symbol x, write symbol y, direction to move is z)
Added by Tiffany Y.
Close
Step 1
- Alphabet: Σ = {a, b} - States: Let's define a set of states Q = {q0, q1, q2, q_accept, q_reject} where: - q0 is the initial state. - q1 is the state after reading an 'a'. - q2 is the state after reading 'aa'. - q_accept is the accepting state when 'aab' Show more…
Show all steps
Your feedback will help us improve your experience
Keondre Parker and 78 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
Akash M.
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.
The table below gives the transition function for a Turing Machine. The set of input symbols is {c, d}. The set of tape symbols is {c, d, *}. The character * is the blank symbol. The start state is q0. Select the strings below that will be accepted by the Turing Machine. cdc cdd c dcd dcc The empty string
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD