Hi, this is an automata question, please both Write and Draw a graph for this turing machine, with detailed explanation. Thank you in advance!
The turing machine will do the following. It will check that the input starts with "<" or not. Otherwise, simply reject. Then, it will check whether there is a "{" or not. Otherwise, simply reject. Then either "}" follows or must follow numbers, separated by comma, before encountering an "}". If it encounters anything else, simply reject. If just before "}" there is a comma, again reject. Then, there must be a comma after "}". Then immediately a "{" must follow. Then either a "}" or a "<" must follow. If "<" is seen, then numbers should come in pair, and finish with ">". At the end there must be a "}" and ">". The input must finish here. Any other case, and the machine will reject. Note that you don't need to remember which nodes occured, as you don't need to match edges with vertices.
The machine is as follows. States , initial state , alphabet and tape alphabet both . For simplicity, denote all digits with in the transition table. is the blank alphabet. The final state is only . Following is the table for the transition function. The machine only scans the input, never changes it, thus no need to specify what the machine writes when the head moves. Also, the head always moves right, so no need to specify that either. There are no transitions out of the final state.
{ | } | , | d | # | |||
---|---|---|---|---|---|---|---|
The diagram looks like this,
Hi, this is an automata question, please both Write and Draw a graph for this turing...
Question 8, please. 2. Prove: (a) the set of even numbers is countable. (b i=1 3. The binary relation on pair integers - given by (a,b) - (c,d) iff a.d=cbis an equivalence relation. 4. Given a graph G = (V, E) and two vertices s,t EV, give the algorithm from class to determine a path from s to t in G if it exists. 5. (a) Draw a DFA for the language: ( w w has 010 as a substring)....