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
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.
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.
. 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 ....
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....
1 Draw a stack diagram to show how the following code is executed and write the...
1 Draw a stack diagram to show how the following code is executed and write the generated output. def sequence(a, b, c): if a < b < c: return a + b + c if a >= b: return sequence(a - 1, b, c) if a >= c: return sequence(c, b, a) if b >= c: return sequence(c, b, a + 2) return 0 print(sequence(10, 10, 10)) 2 Draw a stack diagram to show how the following code is executed...
Can you draw this network diagram out? There are two available rooms, named RH401 and RH402,...
Can you draw this network diagram out? There are two available rooms, named RH401 and RH402, in the RH building. You are asked to set up RH401 as a new server room and RH402 as a new computer lab. Design a Local area network which satisfies the following conditions. 1) Three server machines and a client PC in RH401 Computer Names: DNS-DHCPsrv (Server with DNS/DHCP services), WEBsrv (Web server), GWsrv (Gateway server), WIN10-1 (Client machine) 2) Five client PCs in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT