• closed by
774 views
1 1 vote
closed with the note: Already answered....Reference:https://gateoverflow.in/113193/ace-test-series

1 Answer

2 2 votes
option a should be answer

example if we  use multi tape turing machine taken example of a^nb^n then time complexity is O(n) as we can maintain two tape and contain of one tape copy to another tape and matching a's of one tape with b's of another tape in linear time.

but if we use single tape turing machine of above language eg: aaaabbbb if we have to match a's with b's  then 4 times we have to move forward and backwards and comparison {n+n-1+n-2.....1} which is O(n^2) therefore time complexity increases by double.
Position:
Show:

Related questions

1 1 vote
1 1 answer
65
65 views
GO Classes asked Sep 26
65 views
Let $L$ be any Turing-recognizable language.Which of the following is always possible?Construct a TM that accepts every $w\in L$ and loops forever on every $w\notin L$, n...
0 0 votes
1 1 answer
69
69 views
GO Classes asked Sep 25
69 views
Consider $L=\{0^n1^n2^n\mid n\ge0\}.$Which of the following gives a correct high-level strategy for a single-tape Turing machine recognizing $L$?Repeatedly mark the leftm...
3 3 votes
1 1 answer
306
306 views
Rakesh_Srikanth asked Dec 2, 2025
306 views
ANSWER IS 5. Option D.But Don't Know How To Solve It.
0 0 votes
0 0 answers
355
355 views
Aditya_Singh 1 asked Dec 4, 2024
355 views
how to make turing machine for 1^n0^n1^n