Chapter 9: Q13P (page 390)
Consider the following function that is defined as follows. Let PAD (s, l) = s#3, where j = max (0,l - m) and mis the length of s. Thus, pad (s, l)simply adds enough copies of the new symbol # to the end of s so that the length of the result is at least l. For any language A and function , define the language pad(A, f) as where and ‘m’ is the length of ‘s’ }. Prove that if , then .
Short Answer
Using Turing machine M, we are going to find the solution for the above problem.