Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 9.14
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 9.10.
The process of multiplication can then be visualized as a repeated
copying of the multiplicand y for each 1 in the multiplier x, whereby
the string y 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 x contains no more 1's.
Find a 1 in x and replace it with another symbol a.
Replace the leftmost 0 by 0y.
Replace all a's with 1's.
Although this pseudpcade is sketchy, the idea is simple enough that
there should be no doubt that it can be done.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

Students also viewed these Databases questions