Question: Define pad as in Problem 9.13. a. Prove that for every A and natural number k, A P iff pad(A, n k )
Define pad as in Problem 9.13.
a. Prove that for every A and natural number k, A ∈ P iff pad(A, nk) ∈ P.
b. Prove that P ≠ SPACE(n).
Problem 9.13
Consider the function pad : Σ* × N → Σ*#* that is defined as follows. Let pad(s, l) = s#j , where j = max(0, l−m) andm is 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 f : N → N, define the language pad(A, f) as
pad(A, f) = {pad(s, f(m))| where s ∈ A and m is the length of s}.
Prove that if A ∈ TIME(n6), then pad(A, n2) ∈ TIME(n3).
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
To prove the first part Prove that for every A and natural number k A P iff padA nk P you can proceed by showing that if A is in P then padA nk is als... View full answer
Get step-by-step solutions from verified subject matter experts
