Question

Find an asymptotic upper bound on T(N) using the iterative method: T(n)=4T(n/2)+n2

Find an asymptotic upper bound on T(N) using the iterative method: T(n)=4T(n/2)+n2

Homework Answers

Answer #1

Answer:

Given , T(n) = 4T(n/2 ) + n^2 -----> (A)

T(n/2) = 4T(n/4) + n^2/4

Substitute the value of T(n/2) in (A), we get

T(n) = n^2 + 4 [ 4T(n/4) + n^2/4]

= 2n^2 + 16 T(n/4)

=> T(n) = 2n^2 + 4^2 T(n/4) ----(B)

Now, T(n/4) = 2n^2 + 4 [ 16 T(n/16 + n/16]

= 3n^2 + 64 T(n/16) + n/16

=> T(n) = 3n^2 + 64T(n/16) + n/14)

.

.

.

k * n^2 + 4 ^k T(n/2^k)

This whole process will stop when 2^k reaches n

n = 2^k

=> log n = k

=> T(n) = logn * n^2 + 4^logn T(n/2^logn)

= n^2 * logn + n * T(1)

= n^2 * logn + n

Thus T(n) = n^2*logn + n

=> T(n) = O(n^2 * logn)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use a recursive tree method to compute a tight asymptotic upper bound for recurrence function T(n)=...
Use a recursive tree method to compute a tight asymptotic upper bound for recurrence function T(n)= 3T(n/4)+n . then use substitution method to verify your answer.
Give asymptotic upper and lower bounds for T .n/ in each of the following recurrences. Assume...
Give asymptotic upper and lower bounds for T .n/ in each of the following recurrences. Assume that T .n/ is constant for sufficiently small n. Make your bounds as tight as possible, and justify your answers. a) T(n) = T(n/2) +T(n/4)+T(n/8)+n b) T(n) = T(n-1) +1/n c) T(n)= T(n-1) +lg n d) T(n) = T(n-2) +1/lgn
1. y=∫upper bound is sqrt(x) lower bound is 1, cos(2t)/t^9 dt using the appropriate form of...
1. y=∫upper bound is sqrt(x) lower bound is 1, cos(2t)/t^9 dt using the appropriate form of the Fundamental Theorem of Calculus. y′ = 2. Use part I of the Fundamental Theorem of Calculus to find the derivative of F(x)=∫upper bound is 5 lower bound is x, tan(t^4)dt F′(x) = 3. If h(x)=∫upper bound is 3/x and lower bound is 2, 9arctan t dt , then h′(x)= 4. Consider the function f(x) = {x if x<1, 1/x if x is >_...
find the upper bound of the LTE (euler) 2x'+2/3 x = 4x^2 and the interval for...
find the upper bound of the LTE (euler) 2x'+2/3 x = 4x^2 and the interval for t is [0,1].
***Only Complete the Bolded Part of the Question*** Complete the asymptotic time complexity using Master theorem,...
***Only Complete the Bolded Part of the Question*** Complete the asymptotic time complexity using Master theorem, then use the "Elimination Method" to validate your solution. 1. T(n)= T(n-1) + n is O(n^2)
Solve the recurrence relation using the substitution method: 1. T(n) = T(n/2) + 2n, T(1) =...
Solve the recurrence relation using the substitution method: 1. T(n) = T(n/2) + 2n, T(1) = 1, n is a 2’s power 2. T(n) = 2T(n/2) + n^2, T(1) = 1, n is a 2’s power
Given T(n)= T(n-1) + 2*n, using the substitution method prove that its big O for T(n)...
Given T(n)= T(n-1) + 2*n, using the substitution method prove that its big O for T(n) is O(n^2). 1. You must provide full proof. 2. Determine the value or the range of C.
(1 point) Find the minimum speed of a particle with trajectory c(t)=(t^3−4t,t^2+1)
(1 point) Find the minimum speed of a particle with trajectory c(t)=(t^3−4t,t^2+1)
***Only Complete the Bolded Part of the Question*** Complete the asymptotic time complexity using Master theorem,...
***Only Complete the Bolded Part of the Question*** Complete the asymptotic time complexity using Master theorem, then use the "Elimination Method" to validate your solution. 1. T(n)= 2T(n/4) + √n
Given the data listed in the table below, calculate the lower and upper bound of the...
Given the data listed in the table below, calculate the lower and upper bound of the 90% prediction interval for the response variable at X = 5. The regression equation is given by y^ = b0 + b1x. Regression Statistics Statistic Value b0 9.6 b1 0.29 x 7.77 se 2.209 SSX 58.71 SST 34.98 n 40 Give your answer to 2 decimal places. You may find this Student's t distribution table useful. a) Lower bound = b)Upper bound =