Question

In: Computer Science

a. Write out – draw the diagram with states and arrows – for a one-tape deterministic...

a. Write out – draw the diagram with states and arrows – for a one-tape deterministic Turing machine that accepts the language over {a,b, !}   L = {w!x!w: x,w in (a|b)*} = {!!, a!!a, …, aba!a!aba, … bbba!aa!bbba, ….

(strings in L have three parts divided by !.   First and third parts must be equal.)

b. Write out the sequence of configurations for some string of length at least 5 (can be in L or not in L)

c. What is the big-oh O of your TM?   explain

Solutions

Expert Solution

In first part ,we have to construct deterministic TM for L={w!x!w , w,x belongs to (0,1)*}.TM is given above.

In second part,we simulate for w=ab!a!ab,and configration of TM are given above.

In third part,we need to find time complexity i.e.O(n)^2.


Related Solutions

Describe a non-deterministic two-tape TM for testing whetehr the string on the first tape is a...
Describe a non-deterministic two-tape TM for testing whetehr the string on the first tape is a substring of the string in the second a tape. choose your own test cases
Draw two arrows. One to represent healthy posture of the spine and one arrow that represents...
Draw two arrows. One to represent healthy posture of the spine and one arrow that represents abnormal posture of the spine. Draw an outline of a person if this helps to support your response.
Trace (either draw a picture or write words and arrows) the path of sound from the...
Trace (either draw a picture or write words and arrows) the path of sound from the outer ear to interpretation by the brain, detailing what each step in the pathway is generally responsible for. This does not have to be extremely detailed (e.g. cell types), but should show pathways and the function of specific nuclei & brain areas.
Write the equations for carry-out bits for a 4-bit carry lookahead adder. Draw its diagram and...
Write the equations for carry-out bits for a 4-bit carry lookahead adder. Draw its diagram and label all the inputs and the outputs. Compare the delays of the 4-bit ripple-carry and 4-bit carry lookahead adders.
. Draw a diagram showing the demand and supply for aluminum in the United States. Assume...
. Draw a diagram showing the demand and supply for aluminum in the United States. Assume the United States can import as much as it wants at the world price of aluminum without causing the price to increase; and assume that the world price is lower than the U.S. equilibrium price. Be sure to indicate on your graph the quantity of aluminum imported. (Feel free to use hypothetical numbers.) Be sure to briefly describe your diagram in words. 2. Now...
(a) Find R+S+T. Draw the arrows to show the answer.
(a) Find R+S+T. Draw the arrows to show the answer.(b) Find R+S+T, where R= (2, 4), S= (6,5), T= (8,-3)(d) Discuss three (3) examples or scalar and vector. (6 marks)
"Make a tree diagram to determine the theoretical probability for this experiment: Spin the arrows (not...
"Make a tree diagram to determine the theoretical probability for this experiment: Spin the arrows (not shown) on each of the following three spinners, and note the color where the arrow lands on each spinner. Spinner 1 is divided into two equal sectors, labeled “Red” and “Blue.” Spinner 2 is first divided into two equal sectors. The left is labeled “Green.” The right is then divided into two equal sectors, labeled “Red” and “Blue.” Spinner 3 is divided into three...
Figure for Ca2+ dynamics. Draw a model with arrows and #’s in the order “The scheme...
Figure for Ca2+ dynamics. Draw a model with arrows and #’s in the order “The scheme of ionic currents within a cardiac cycle for a mammalian pacemaker cell” The scheme of ionic currents within a cardiac cycle for a mammalian pacemaker cell (i.e., SA node) is generally described with the background [Ca2+]i continually increasing and decreasing. Starting in diastolic depolarization with a slow release of Ca2+ by ryanodine receptors (RyR), from the SR, leads to a rise in [Ca2+]i ....
Problem 8 ( please write neatly and in full ) a) Draw the block diagram with...
Problem 8 ( please write neatly and in full ) a) Draw the block diagram with feed-forward. What are its advantages? b) Why are limiters used and what are their effects? c) What is the integrator windup and how can it be avoided?
Write out the overall cell reaction occurring in the following voltaic cells. Draw a diagram (with two beakers) showing appropriate metals and solution contents.
a) Write out the overall cell reaction occurring in the following voltaic cells. Draw a diagram (with two beakers) showing appropriate metals and solution contents. Write the appropriate half reactions. Label the anode and the cathode and show the direction of electron flow. Cd(s) | Cd2+(aq) || Ag+(aq) | Ag(s)           An electrochemical cell is composed of a silver electrode in a 0.025 M Ag+ solution and a cadmium electrode into a 0.15 M Cd2+ solution....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT