Question: EXAMPLE 9 . 1 4 Design a Turing machine that multiplies two positive integers in unary notation. A multiplication machine can be constructed by combining
EXAMPLE
Design a Turing machine that multiplies two positive integers in
unary notation.
A multiplication machine can be constructed by combining the
ideas we encountered in adding and copying. Let us assume that the
initial and final tape contents are to be as indicated in Figure
The process of multiplication can then be visualized as a repeated
copying of the multiplicand for each in the multiplier whereby
the string is added the appropriate number of times to the partially
computed product. The following pseudocode shows the main steps of
the process.
Repeat the following steps until contains no more s
Find a in and replace it with another symbol
Replace the leftmost by
Replace all s with s
Although this pseudpcade is sketchy, the idea is simple enough that
there should be no doubt that it can be done.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
