Question: Consider the function pad : * N * # * that is defined as follows. Let pad(s, l) = s #j
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.32 Rating (167 Votes )
There are 3 Steps involved in it
To prove that padA n2 TIMEn3 we need to show that the function pad can be computed in time ... View full answer
Get step-by-step solutions from verified subject matter experts
