Question

A step by step example on how to go about this question would be great!

Given a Turing machine M, consider the following language LLEFT {(( Describe a Turing machine that decides this language. M), r)| M moves its head to the left at least once during its execution on input x}.

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

ANS:

IF YOU LIKE THE ANSWER PLZ GIVE THUMBSUP IT WILL HELP ME ALOT

A turing machine, which moves its head at least once during its execution on input x, can be said as, machine takes input x, moves its head to left and can move futher left without even immediate x.

So we describe Turing machine:

Input alphabet \sum =\left \{ x \right \}

tape alphabet \Gamma =\left \{ x,\Lambda \right \} where \Lambda is blank symbol

q_{s} is start state

The transition function \delta is specified by following instruction:

1) q_{s}\Lambda \rightarrow q_{s}\Lambda R

2) q_{s}x \rightarrow q_{0}x N

3) q_{0} x\rightarrow q_{1}xL

4) q_{1} x\rightarrow q_{0}xL

5) q_{2} x\rightarrow q_{0}xL

6) q_{1} \Lambda \rightarrow q_{2}\Lambda L

7) q_{2} \Lambda \rightarrow q_{1}\Lambda L

Now lets take example, say input string is \Lambda \Lambda \Lambda \Lambda x\Lambda

a) on accpeting \Lambda in initial state it will move forward till x is found and enters state q_{0}} ( by transition function1 and 2)

b) in this state, on accepting x, it will move left and enters state q_{1}} ( by transition function 3)

c) here, on accepting \Lambda, it will continue to move left and enters q_{2} ( by transition function 6)

d) here, on accepting \Lambda, it will again go to state q_{1} and so on. ( by transition function 7)

Thus the head will move atleast once when input x occurs.

If there were other input x during step b or c, it will go to state q_{0} ( by transition function 4 and 5) and will ensure again atleast one left move.

Add a comment
Know the answer?
Add Answer to:
A step by step example on how to go about this question would be great! Given...
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
  • I'm a bit confused on how to go about this question. Any help would be great,...

    I'm a bit confused on how to go about this question. Any help would be great, thank you! The resistivity of gold is 2.44x10-8 •m at room temperature. A gold wire that is 0.7 mm in diameter and 41 cm long carries a current of 140 mA. What is the electric field in the wire? 2.2x10-2 V/m 1.1x10-2 V/m 7.0x10-3 V/m 2.2x10-3 V/m 8.9x10-3 V/m

  • Answer and explain your answer QUESTION 5 A Turing machine M with start state go and...

    Answer and explain your answer QUESTION 5 A Turing machine M with start state go and accepting state of has the following transition function: 1 8(q,a) 0 B 40 (90,1,R) (91,1,R) (9f,B,R) 91 (42,0,L) (42,1,L) (92,B,L) 42 (90,0,R) 9f Deduce what M does on any input of O's and I's. Hint: consider what happens when M is started in state qo at the left end of a sequence of any number of 0's (including zero of them) and a 1....

  • 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)...

  • How would I go about solving this? Question 1 Question: Given that log 3 p and...

    How would I go about solving this? Question 1 Question: Given that log 3 p and log. 6 Q Express the given logarithmic value in terms of panda = log, 162 2p+39 0 Pa P1 Type here to search

  • How would i go about setting this question up? Please show with steps thank you! Research...

    How would i go about setting this question up? Please show with steps thank you! Research Question: Does using mental imagery impact memory? Groups: Mental Imagery vs. No Imagery Control (DV = # of words recalled) Given Values: • Imagery group: n = 10 M = 26 SS = 200 • Control group: n = 10 M = 18 SS = 160

  • I could use some explaining on how to go about answering this question, thanks! If an...

    I could use some explaining on how to go about answering this question, thanks! If an arrow is shot upward on Mars with a speed of 62 m/s, its height in meters t seconds later is given by y = 62t − 1.86t2. (Round your answers to two decimal places.) (a) Find the average speed over the given time interval [1, 1.001]

  • Question 17 (1 point) With the onset of the 2007-2008 Great Recession, the Fed, led by...

    Question 17 (1 point) With the onset of the 2007-2008 Great Recession, the Fed, led by Fed Chairman Ben Bernanke (2006- 2014), lowered its target interest rate (the federal funds rate) to a range of 0.00-0.25 percent. This was done with 7 rate cuts during 2008, after several in 2007. Consider the market for money illustrated in the figure below. Assume the market initially (just prior to Great Recession) is in equilibrium at point A. Describe the effects the Fed's...

  • Hi! can you please explain step by step how i would go about proposing a structure for this? I know that DEPT-90 shows...

    Hi! can you please explain step by step how i would go about proposing a structure for this? I know that DEPT-90 shows CH groups & DEPT-135 shows CH & CH3 in the positive region and CH2 in the negative region. I also know that the normal graph shows the C's. However, i have answer to this question, but I have no idea how they came up with it. Can you please explain step by step your rationale how to...

  • I'm having some trouble with this question. Not sure how to go about solving it. Any...

    I'm having some trouble with this question. Not sure how to go about solving it. Any help would be appreciated. Thanks. An object is made up of a disk (M=7.0kg, R=2.0m) and two point masses (m1=3.0kg and m2=4.0kg). The arrangement of the disk and the point masses are shown in the figure and the dimensions are d1=1.0m, d2=1.5m, d3=0.5m, d4=1.0m, and t=0.3m. A. What is the x-coordinate of the center of mass of the object? B. What is the z-coordinate...

  • How would I go about fully explaining this essay question, as well as what would be...

    How would I go about fully explaining this essay question, as well as what would be the best way to set up this essay? The small island of Tap, inhabited by the Tapese people, produces a single variety of corn. At the present time, each farmer produces his or her own corn, harvests it and carries it to the market for sale. On any market day in Tap, you will find many different sellers of corn. Competition between the corn...

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
ADVERTISEMENT