Question
f(x,y)=ceiling((x+y)/2) and x1, y1 is given. Note: The ceiling function of a real number is the least integer number greater than or equal to the
f(x,y)=ceiling((x+y)/2) and x1, y1 is given.
Note: The ceiling function of a real number is the least integer number greater than or equal to the given number. In the case of 4.5, the integers greater than 4.5 are 5, 6, 7, 8, .. The smallest of all is 5, and hence ceiling(4.5)=5.
Build a Turing Machine that calculates the function given above.
The initial configuration of the tape is given below:
000....00111.....1....
x zero's y one's
The final configuration of the tape is given below:
AAA....AAAAA.....Aaaaaa....aa....
x A's y A's
ceiling(f(x,y)) NOTES: The position of the read/write head is not important when the machine halts.
Do not assume that there is a blank at the begining of the input.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started