Question: On a 2TM track 1 contains a string of the form (a + b) + which is to be interpreted as a unary representation of
On a 2TM track 1 contains a string of the form (a + b)+ which is to be interpreted as a unary representation of numbers as strings of a's, separated by single b's.
(i) Using a 2TM, find the largest of the numbers on track 1 and copy it to track 2.
(ii) Using a 3TM, sort the list in descending order.
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
i Using a 2TM We take the position of a and b to be the number of iterations ... View full answer
Get step-by-step solutions from verified subject matter experts
