Question

3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a 7-tuple (Q, T, B, ? ?, q0,B,F) where: . Q is a finite set of states T is the tape alphabet (symbols which can be written on Tape) .B is blank symbol (every cell is filled with B except input alphabet initially .2 is the input alphabet (symbols which are part of input alphabet) is a transition function which maps QxTQxTx (L, R : 90 is the initial state -F is the set of final states. If any state of F is reached, input string is accepted. If the TM M has the transition function ? (Q3,Y,R) qo q1 q2 q3 (q1X.R) (q10R) (a2.YL) (q2,0,L) (q1,YR) (Q3.YR) than: (a) what is Q, T, ? F? (b) what is the language L recognized by the TM M?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)

  • Q = {q0,q1,q2,q3} where q0 is initial state.
  • T = {0,1,X,Y,B} where B represents blank.
  • \Sigma = {0,1}
  • F = {q3}

(b)

  • L = \{0^n1^n\ |\ n\geq1\}

Explaination:

Q is the set of states and table contains only 4 states q0,q1,q2 and q3. So Q consists of these 4 states, where q0 is initial state.

T is tape alphabet which will consist of all possible symbols in transition table. so T = {0,1,X,Y,B}

We can see in the transition table that the symbols X and Y are only generated after reading symbols 0 and 1, so X and Y are not part of input alphabet hence \Sigma = {0,1}

The machine halts only in state q3 so F = {q3}

To see the language for turing machine lets see how the machine works on input 0011.

Initially is at the leftmost 0 which is underlined and machine is in state q0 as:

0 0

Then machine will make move ?(q0, 0) = (q1, X, R). It goes to state q1 writing X at the current head position and then moves right as:

Then move will be ?(q1, 0) = (q1, 0, R) which means it will remain in same state and without changing any symbol, it will move to right as:

Then move will be ?(q1, 1) = (q2, Y, L) which means it will move to q2 state and changing 1 to Y, it will move to left as:

0

Working on it in the same way, the machine will reach state q3 and head will point to B as shown:

Using move ?(q3, B) = halt, it will stop and accepted.

The machine similarlly works for the language 0^n1^n

Add a comment
Know the answer?
Add Answer to:
3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • turing machine transition table Use the input and table to execute. Input: babaaa b a (q2,...

    turing machine transition table Use the input and table to execute. Input: babaaa b a (q2, b, R) (q1, b, R) (q0, a, L) qo (q3, *, L) (q1,* L) (q2, a, L) 97 (q2, b, R) (q1,* R) (q0, a, R) q2 (q3, *, R) (q1, b, R) (q0, a, R) q3 First 6 characters of the tape after step 1: Ex: *abb*b Select the state of the Turing Machine after each step: Step 1 Use the input and...

  • Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows....

    Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows. input alphabet {1} Tape alphabet = { 1,0, x,□} where □ represents a blank Set of states (A, B, C, D Initial state A set of accept states = {D} Transition function: 6(A, z) = (A,z, R) 6(A, □)-(C,D, L) (i) Draw a transition graph for this Turing machine. (ii) Determine the output of the Turing machine for each of the following input i)...

  • Consider the following two TM (a) and (b). Here q0 is the starting state and h is the halting (fi...

    Consider the following two TM (a) and (b). Here q0 is the starting state and h is the halting (final state). A is blank symbol. Other tape symbols are 1, and X. The other q's are intermediate states. X is meant to replace 1 while reading an input string of 1's. Consider a unary representation of number 4 and number 3. That is input as A111A and A111A Trace the result for each of the TM and interpret what these...

  • Consider the TM with Q = q0, q1, q2, f, S = {0,1}, G= (0,1,b} (∆...

    Consider the TM with Q = q0, q1, q2, f, S = {0,1}, G= (0,1,b} (∆ for blank), initial state q0 and final state f, with transition defined below: (q0, 0) → (q1, 1, R); (q1,1) → (q2, 0, L); (q2, 1) →(q0,1,R); (q1, ∆) →(f, ∆, R) (a) Provide the execution trace of this machine on the input 011 (b) Describe the language accepted by the TM (c) Suppose the transition (q0, 0) → (q1, 1, R) is replaced...

  • . Please design a standard TM (i.e., a single semi-infinite tape, deterministic) for the laın gua...

    . Please design a standard TM (i.e., a single semi-infinite tape, deterministic) for the laın guage of all palindromes over alphabet {a, b} . Please give both the high-level description (text description or pseudo-code algorithm) and the low-level state transition diagram. Please analyze how many steps (one transition is considered as a step) it takes to accept an input palindrome with n symbols . Please design a deterministic Turing machine with two semi-infinite tapes for the same language. Please give...

  • Answer and explain your answer QUESTION 5 A Turing machine M with start state go and...

    Answer and explain your answer QUESTION 5 A Turing machine M with start state go and accepting state of has the following transition function: 1 8(q,a) 0 B 40 (90,1,R) (91,1,R) (9f,B,R) 91 (42,0,L) (42,1,L) (92,B,L) 42 (90,0,R) 9f Deduce what M does on any input of O's and I's. Hint: consider what happens when M is started in state qo at the left end of a sequence of any number of 0's (including zero of them) and a 1....

  • 7. (Exercise 8.5.1) Simulating a Turing machine. Here is a description of a Turing machine. The...

    7. (Exercise 8.5.1) Simulating a Turing machine. Here is a description of a Turing machine. The input alphabet is {a, b}. The state set is: {90, 91, 92, 93, 94, qacc, Cre; } The transition function is given in the table below: 90 9 42 93 94 a (qı, a, R) (qı, a, R) (q2, a, R) (qace, a, R) (qej, a, R) b (q2, b, R) (qı, b, R) (qı, b, R) (qrej, b, R) (qace, b, R) **...

  • Rarisition written in the format of the Turing Machine simulator is a special state H which means...

    rarisition written in the format of the Turing Machine simulator is a special state H which means halt. For the given Below is a Turing machine program where each line is a transition writen current state, read symbol, new state, write symbol, drection e-d. wmeans to state 4, write a 1 and move the tape head left. Notc there is a special state a os on the leftmost n nanks , write the resulting bitstring when the TM reaches the...

  • Write a class for DFA type objects. Deterministic Finite Automata are commonly defined as a quintuple...

    Write a class for DFA type objects. Deterministic Finite Automata are commonly defined as a quintuple consisting of a set of states, a set of symbals, a transition function, a start state and a set of accept states For this implementation let the alphabet be given as a string of symbols, the transition function as list of lists which represent an n by m matrix where the n rows represent the states and the m columns represent the alphabet symbols,...

  • roblem 18 [15 points Consider the Turing M (Q,E, T,6,4, F), such that 16 g transition set (d) Write a regular expresion that defitves L. fsuch a regular expression does mot exist, prove it Answer...

    roblem 18 [15 points Consider the Turing M (Q,E, T,6,4, F), such that 16 g transition set (d) Write a regular expresion that defitves L. fsuch a regular expression does mot exist, prove it Answer: E, N,t,1, R (M has an one-way infinite tape (infinite to the right only.) B is the designated blank symbol. M accepts by final state.) Let L be the set of strings which M accepts Let LR be the set of strings which M rejects....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT