DO q0 Let M be the Turing Machine displayed below: Y;Y, R 0:0,R Y;Y,L 0:0, L...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
DO q0 Let M be the Turing Machine displayed below: Y;Y, R 0:0,R Y;Y,L 0:0, L 0;X, R q1 1:Y,L q3 XX.F q2 Y;Y,R Y;Y,R S q4 0:0,R acc (With the usual conventions of missing transitions go to the reject state.) This machine decides the language {0k1k|k 1}. (The number of "steps" in a computation is the number of transitions that the Turing Machine passes before ending on the accept state or the reject state. In other words, the number of "steps" in a computation is equal to the number of configurations minus 1) (a) (6 points) Consider the statement: For all even positive integers n, the input string of length n for which M takes the most steps before halting is on/21n/2. Give an argument about why the above statement is true. (b) (8 points) Suppose that f(n) is the running time of M, i.e., fm (n) = the maximum number of steps M takes before halting over all inputs of size n. Assuming the statement from part (a), Compute: fM (2) fm (4) fm (6) fm (8) (You may use the jflap file that is attached.) (c) (6 points) What is the tightest Big-O class that f(n) belongs to? Justify your answer by talking about how the machine processes inputs. DO q0 Let M be the Turing Machine displayed below: Y;Y, R 0:0,R Y;Y,L 0:0, L 0;X, R q1 1:Y,L q3 XX.F q2 Y;Y,R Y;Y,R S q4 0:0,R acc (With the usual conventions of missing transitions go to the reject state.) This machine decides the language {0k1k|k 1}. (The number of "steps" in a computation is the number of transitions that the Turing Machine passes before ending on the accept state or the reject state. In other words, the number of "steps" in a computation is equal to the number of configurations minus 1) (a) (6 points) Consider the statement: For all even positive integers n, the input string of length n for which M takes the most steps before halting is on/21n/2. Give an argument about why the above statement is true. (b) (8 points) Suppose that f(n) is the running time of M, i.e., fm (n) = the maximum number of steps M takes before halting over all inputs of size n. Assuming the statement from part (a), Compute: fM (2) fm (4) fm (6) fm (8) (You may use the jflap file that is attached.) (c) (6 points) What is the tightest Big-O class that f(n) belongs to? Justify your answer by talking about how the machine processes inputs.
Expert Answer:
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date:
Students also viewed these computer network questions
-
Define the contextual-equivalence relation ` M =ctx M0 : for pairs of PCF terms M, M0 , PCF types , and PCF type environments . [3 marks] (ii) For PCF terms M and N with respective typings ` M : and...
-
Explain how to determine the maximum or minimum value of a quadratic function.
-
"Let's cut right to the quick on this one. I understand the theory of having benefits rather than features in a statement of requirements that kick off technical development. But, to me it is just...
-
For a rigid slab in centroidal rotation, show that the system of the effective forces consists of vectors ?? (mi) 2r'i and (mi) ( r'i) attached to the various particles Pi of the slab, where and ...
-
Keurig Green Mountain is a specialty coffee company. It sources, makes, and sells coffee, hot cocoa, teas, and other beverages under various brands in portion packs for its Keurig brewing system. The...
-
During 2015, Gorilla Corporation has net short-term capital gains of $15,000, net long-term capital losses of $105,000, and taxable income from other sources of $460,000. Prior years transactions...
-
2. 42. 33 43 A. B. Which of the above atoms belong to inert element R S C. T D. U A. If atom R belong to element R ant atom V belong to element V, what would be the formula of the compound formed...
-
Hi, Please help with the following questions, would reallyappreciate the help! Please do not copy someone else's workand repost it as that is of no help at all. Thank you. Partners in Ivanhoe...
-
The loadability of short transmission lines (less than \(25 \mathrm{~km}\), represented by including only series resistance and reactance) is determined by ________; that of medium lines (less than...
-
For short lines less than \(25 \mathrm{~km}\) long, loadability is limited by the thermal rating of the conductors or by terminal equipment ratings, not by voltage drop or stability considerations....
-
The correction factors \(F_{1}=\sinh (\gamma l) \gamma l\) and \(F_{2}=\tanh (\gamma l / 2) /(\gamma l / 2)\), which are complex numbers, have the units of ________.
-
Has the provision of small business support in Britain since 199 0 provided a coherent and effective package for small firms?
-
The three-phase source line-to-neutral voltages are given by \(E_{a n}=10 \angle 0^{\circ}\), \(E_{b n}=10 \angle+240^{\circ}\), and \(E_{c n}=10 \angle-240^{\circ}\) volts. Is the source balanced?...
-
Use the standard normal distribution or the t-distribution to construct a 90% confidence interval for the population mean. Justify your decision. If neither distribution can be used, explain why....
-
The senior management at Davis Watercraft would like to determine if it is possible to improve firm profitability by changing their existing product mix. Currently, the product mix is determined by...
-
Suppose that A, B, and C are sets such that A B and B C. Show that A C.
-
Determine whether the function f : Z Z Z is onto if a) f (m, n) = m + n. b) f (m, n) = m2 + n2. c) f (m, n) = m. d) f (m, n) = |n|. e) f (m, n) = m n.
-
Prove or disprove these equalities. a) x (y z) = (x y) z b) x + (y z) = (x + y) (x + z) c) x (y + z) = (x y) + (x z)
-
With her right eye, Maria can focus on a vase 0.5 m away, but not on a tree 10 m away. What could be the eyeglass prescription for her right eye? A. +3.0 D B. + 10 D C. - 5.0 D D. -1.5 D
-
The screen in a pinhole camera is moved farther away from the pinho le. The image on the screen will A. Become larger. B. Become smaller. C. Remain the same size.
-
Kara has a near-point distance of 40 cm. So that she can focus on a book 25 cm away, her corrective lenses should create A. A virtual image of the book 40 cm from her eye. B. A real image of the book...
Study smarter with the SolutionInn App