Question

Design a TM (Turing Machine) which writes the reverse of the input word on the tape after reading the first blank after the word. The input alphabet is = { &, c, d), and assume the word starts with &, then with a word from (c+d)*

As an example: input tape is &ccdd\Delta..., after executing the Turing Machine, the tap would contain &ccdd\Deltaddcc\Delta

0 0
Add a comment Improve this question Transcribed image text
Answer #1

쇠사 3 Ct clca did 10 #xと. С.С.

Add a comment
Know the answer?
Add Answer to:
Design a TM (Turing Machine) which writes the reverse of the input word on the tape...
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
  • . Please design a standard TM (i.e., a single semi-infinite tape, deterministic) for the laın gua...

    . Please design a standard TM (i.e., a single semi-infinite tape, deterministic) for the laın guage of all palindromes over alphabet {a, b} . Please give both the high-level description (text description or pseudo-code algorithm) and the low-level state transition diagram. Please analyze how many steps (one transition is considered as a step) it takes to accept an input palindrome with n symbols . Please design a deterministic Turing machine with two semi-infinite tapes for the same language. Please give...

  • 3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a...

    3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a 7-tuple (Q, T, B, ? ?, q0,B,F) where: . Q is a finite set of states T is the tape alphabet (symbols which can be written on Tape) .B is blank symbol (every cell is filled with B except input alphabet initially .2 is the input alphabet (symbols which are part of input alphabet) is a transition function which maps QxTQxTx (L, R :...

  • a) What language is accepted by the Turing machine d(%-a)-(%-a, R), d(%-a)-(9-a, R). (5) Design a...

    a) What language is accepted by the Turing machine d(%-a)-(%-a, R), d(%-a)-(9-a, R). (5) Design a Turing machine that will accept language OL-L6.a) (6) Design a Turing machine that will calculate fx)-3x. You must show the representation of s and 3x on the tape of Turing machine when the calculation starts and ends, respectively Extra Questions (20 points) 1. Fill the proper words in the blank (1) Given alphabet Σ, a language on Σ isa (2) Given a grammar G,...

  • Rarisition written in the format of the Turing Machine simulator is a special state H which means...

    rarisition written in the format of the Turing Machine simulator is a special state H which means halt. For the given Below is a Turing machine program where each line is a transition writen current state, read symbol, new state, write symbol, drection e-d. wmeans to state 4, write a 1 and move the tape head left. Notc there is a special state a os on the leftmost n nanks , write the resulting bitstring when the TM reaches the...

  • Question 6 Consider the Turing Machine (TM) T (over the input alphabet Σ = {a, b})...

    Question 6 Consider the Turing Machine (TM) T (over the input alphabet Σ = {a, b}) given below. (b,b,R) (a.a, R) (b.b,,R) (A,A,L) 1 Start 2 نيا 4 Halt (a, a,R) (a, a,R) (b,b,R) (A,A,R) Trace the execution of the TM on a few strings of as and bs so that you can see how it works and answer the following questions. 6.1. What is the shortest word that would be accepted by T? (2) 6.2. What is accept(T)? (2)...

  • Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows....

    Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows. input alphabet {1} Tape alphabet = { 1,0, x,□} where □ represents a blank Set of states (A, B, C, D Initial state A set of accept states = {D} Transition function: 6(A, z) = (A,z, R) 6(A, □)-(C,D, L) (i) Draw a transition graph for this Turing machine. (ii) Determine the output of the Turing machine for each of the following input i)...

  • design a turing machine that accepts word1#word2 where word 2 is substring of word1. the regular...

    design a turing machine that accepts word1#word2 where word 2 is substring of word1. the regular expression for word1 and word2 is (a+b+c+d)*

  • Write a TM (Turing Machine) program that adds two base two numbers. Input is two nonnegative...

    Write a TM (Turing Machine) program that adds two base two numbers. Input is two nonnegative integers in base 2 with a plus sign between them. Output is their sum in base 2, with nothing else left on the tape. So first decrement, then increment. Use the following language for the program: current state, read symbol, next state, write symbol, direction [directions are (< left, > right, s stay)] Here's an example program: 1,B,2,#,> 2,B,2,B,> 2,X,2,X,> 2,_,3,X,> 3,_,4,X,> 4,_,5,X,< 5,X,5,X,<...

  • 3. (1 point) Which of the following is true of PDA's? A. The stack of a...

    3. (1 point) Which of the following is true of PDA's? A. The stack of a PDA is unbounded in terms of the numbers of symbols it can store. B. A transition of the form (q, a, 8) = (r,c) corresponds to the PDA transitioning from state q to state s by reading a from the input string, popping nothing from the stack, and pushing r on the stack. Page 2 of 8 C. A transition of the form 8(q,a,s)...

  • You are given the following system of equations: Design a system which calculates x and y...

    You are given the following system of equations: Design a system which calculates x and y given a, b, c, d, e, and f. You may use any architecture of your choosing. You may also assume that n-bit dividers are available. c=ax + by We were unable to transcribe this image

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