Given a Turing Machine M = ({q0, q1, q2, q3}, {a, b}, {a, b, B}, δ, B, {q3}) Where δ is a transition function defined as δ(q0, a) = (q1, a, R) δ(q1, b) = (q2, b, R) δ(q2, a) = (q2, a, R) δ(q2, b) = (q3, b, R) The language L(M) accepted by the Turing Machine is given as :
aba*b
A Turing machine accepts its input when it enters a final state; here the only final state is \(q_3\). Every move writes back the same symbol and moves right, so the machine simply scans the input left to right like a finite automaton.
Step 1 — From \(q_0\) the only move is on a, to \(q_1\): the input must start with a.
Step 2 — From \(q_1\) the only move is on b, to \(q_2\): the second symbol must be b.
Step 3 — In \(q_2\) every a keeps the machine in \(q_2\) (any number of a's, including none), and a b moves it to \(q_3\), where it halts and accepts.
Step 4 — The accepted strings are therefore a, then b, then \(a^*\), then b: \(L(M) = aba^*b\) (abb, abab, abaab, …).
The other expressions fail: aa*b would need a move on a from \(q_1\), which does not exist; abab is only one string of the language, not all of it; aba* never supplies the final b needed to reach \(q_3\).
aba*b option is correct.
Which of the following represents the output of the transition function(δ)
δ (q0 , a) = (q1 , x, R)
δ (q1 , a) = (q1 , a, R)
δ (q1 , y) = (q1 , y, R)
δ (q1 , b) = (q2 , y, L)
δ (q2 , y) = (q2 , y, L)
δ (q2 , a) = (q2 , a, L)
δ (q2 , x) = (q0 , x, R)
δ (q0 , y) = (q3 , y, R)
δ (q3 , y) = (q3 , y, R)
δ (q3 , □) = (qf , □, R)
Consider the following statements:
(A) For every regular language, we can design Turing Machine
(B) For every context free language, we can design Turing Machine
Which of the following is correct?
Arrange the following stages of a Turing Machine (TM) operation in the correct order as they occur during computation.
(A) Writing a symbol on the tape
(B) Moving the tape head left to right
(C) Reading a symbol from the tape
(D) Transitioning to a new state based on the current state and symbol read
(E) Halting and accepting or rejecting the input
Choose the correct answer from the options given below :
Which of the following represents the output of the transition function(δ)
δ (q0 , a) = (q1 , x, R)
δ (q1 , a) = (q1 , a, R)
δ (q1 , y) = (q1 , y, R)
δ (q1 , b) = (q2 , y, L)
δ (q2 , y) = (q2 , y, L)
δ (q2 , a) = (q2 , a, L)
δ (q2 , x) = (q0 , x, R)
δ (q0 , y) = (q3 , y, R)
δ (q3 , y) = (q3 , y, R)
δ (q3 , □) = (qf , □, R)
Consider the following statements:
(A) For every regular language, we can design Turing Machine
(B) For every context free language, we can design Turing Machine
Which of the following is correct?
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R
Assertion A: $L = \{a^n b^n c^n : n \ge 0\}$ is accepted by a linear bounded automata.
Reason R: Linear bounded automata's recognize exactly the class of context sensitive languages.
In the light of the above statements, choose the most appropriate answer from the options given below