Question: Question 1 : Turing Machines ( a ) Give exactly three differences between how a Turing machine works and how an NFA works. ( b
Question : Turing Machines
a Give exactly three differences between how a Turing machine works
and how an NFA works.
b The following is the state diagram of a Turing machine with input
alphabet and accept state Missing transition arrows are as
sumed to lead to a reject state, not shown.
i Give the sequence of configurations of M on the input string
starting with initial configuration q
ii In general, given any input string w what will the tape contents
of M look like after halting?
c Consider a singletape Turing machine M with input alphabet a b
that has the following behaviour:
Given any input string w in a b M halts in an accepting
state in which the contents of the tape consists of as#bt
where s is the number of as occurring in w and t is the
number of bs occurring in wNote the position of the tape
head in this accepting configuration does not matter.
For example, on input aba, M halts in an accepting state with tape
contents aa#b while on input babab it halts in an accepting state with
tape contents aa#bbb
i Create a state diagram in JFLAP for M using the fewest states
possible. You may assume a twoway infinite tape, and the reject
state may be omitted from your diagram. You must include a
screenshot of your diagram in your submitted pdf
ii Give a highlevel ie plain English description of how M should
work given an input string w in a b Your description should
consist of a first line On input string w: followed by an enumerated description of each stage of the TM in the same style as
iii Discuss the time complexity of the specific implementation of M
that you have described in part cii above. In particular, does it
run in On steps? On steps? Or Onk steps for some k
Justify your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
