Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following machines are supposed known and may be used where appropriate: The copy machine C The shift left machine SL The shift right machine

The following machines are supposed known and may be used where appropriate:
The copy machine C
The shift left machine SL
The shift right machine SR
Design Turing Machine for the following similar to this design (Not a state design):
Example 4.1.8: The copying machine C performs the following The copy machine C
The shift left machine SL
The shift right machine SR
Design Turing Machine for the following similar to this design (Not a state design):
Example 4.1.8: The copying machine C performs the following function: If C
starts with input w, that is, if string w, containing only nonblank symbols but
possibly empty, is put on an otherwise blank tape with one blank square to its
190
Chapter 4: TURING MACHINES
left, and the head is put on the blank square to the left of w, then the machine
will eventually stop with ww on an otherwise blank tape. We say that C
transforms wu into ww.
A diagram for C is given in Figure 4-8. diamond
Let M1 be a Turing machine that computes the following function in unary representation:
f(x,y)=(x,y,0) if x=y and (x,y,1) if x>y
That is M1 that transforms:
#x#y# to #x#y#0# if x=y and to #x#y#1# if x>y
where x and y are positive integers in unary representation. Give M1
Hint: Use machines C and Mdiff
Question 3:
Let M2 be a Turing machine that computes in unary representation the function f(x,y,o)=x.
That is M2 transforms:
#x#y#0# into #x#
where x and y are positive integers in unary representation. Give M2
Question 4:
Let M3 be a Turing machine that computes in unary representation the function ,
x-y. That is M3 transforms:
#x#y# into #x#y#x-y#
where x,y and x-y are positive integers in unary representation. Give M3
Hint: Use machine Mdiff
Question 5:
Let M4 be a Turing machine that computes in unary representation the function ,
y,z,1 if zy and (x,y,z,0) if zyx,yzM4M50x,yzM1x,yzf(x,y)=x-yxyMxyxyz
where x,y, and z are positive integers in unary representation. Give M4
Question 6:
Let M5be a Turing machine that computes in unary representation the function f(x,y,z,
0)=(y,z). That is the machine that transforms:
#x#y#z#0# into #y#z#
where x,y and z are positive integers in unary representation. Give M5
Question 7:
Let MMbe a Turing machine that computes in unary representation the function f(x,y,z,
1)=(z,y). That is the machine that transforms:
#x#y#z#1# into #z#y#
where x,y and z are positive integers in unary representation. Give M6
Question 1:
Let Mdiff be a Turing machine that computes the following function in the unary
representation:
f(x,y)=x-y with xy
That isM transforms:
#x#y# into #x-y# with xy
where x and y are positive integers in the unary representation. Give Mdiff (not state design)z. That is the machine that transforms:
#x#y#z# into #x#y#z#1# ifzy and #x#y#z#0# ifz
where x,y, and z are positive integers in unary representation. Give M4
Question 6:
Let M5be a Turing machine that computes in unary representation the function f(x,y,z,
0)=(y,z). That is the machine that transforms:
#x#y#z#0# into #y#z#
where x,y and z are positive integers in unary representation. Give M5
Question 7:
Let MMbe a Turing machine that computes in unary representation the function f(x,y,z,
1)=(z,y). That is the machine that transforms:
#x#y#z#1# into #z#y#
where x,y and z are positive integers in unary representation. Give M6
Question 1:
Let Mdiff be a Turing machine that computes the following function in the unary
representation:
f(x,y)=x-y with xy
That isM transforms:
#x#y# into #x-y# with xy
where x and y are positive integers in the unary representation. Give Mdiff (not state design)
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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions