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
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
Get step-by-step solutions from verified subject matter experts
