Question: (i) Build a TM that takes an input of three numbers in unary encoding separated by b's and leaves their sum on the T APE

(i) Build a TM that takes an input of three numbers in unary encoding separated by b's and leaves their sum on the TAPE.
(ii) Build a TM that takes in any number of numbers in unary encoding separated by b's and leaves their sum on the TAPE.

Step by Step Solution

3.51 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i The TM will take in three numbers in unary encoding separated by a b For example an input of 111b111b111 would correspond to the number 7 1111111 Th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related SQL Database Programming Questions!