Question

In: Computer Science

Give upper and lower bounds for T(n) in the following recurrence: T(n) = 3T(n/4) + n

Give upper and lower bounds for T(n) in the following recurrence: T(n) = 3T(n/4) + n

Solutions

Expert Solution

Solution:

Given,

=>T(n) = 3T(n/4) + n

Explanation:

=>T(n) = 3T(n/4) + n

=>T(n) = 3T(n/4) + (n)...(1)

Master's theorem,

=>T(n) = aT(n/b) + (n^k*(logn)^p)...(2)

Where a 1, b > 1, k 0 and p is any real number.

Compare (1) and (2)

=>a = 3, b = 4, k = 1 and p = 0

Finding b^k:

=>b^k = 4^1

=>b^k = 4

=>a < b^k hence third case of Master's theorem.

=>T(n) = (n^k*(logn)^p)

=>T(n) = (n^1*(logn)^0)

=>T(n) = (n)

=>Using definition of big-theta, upper bound = O(n) and lower bound = (n)

I have explained each and every part with the help of statemetns attached to the answer above.


Related Solutions

Give asymptotic upper and lower bounds for T(n). Assume that T(n) is constant for n <=...
Give asymptotic upper and lower bounds for T(n). Assume that T(n) is constant for n <= 2. Make your bounds as tight as possible, and justify your answers. T(n) = T(n-2) + n^2
Solve the recurrence equation. T(n) = 3T (n/3) + Cn T(1) = C
Solve the recurrence equation. T(n) = 3T (n/3) + Cn T(1) = C
Give asymptotic tight bounds for T(n) in each of the following recurrences using recursion tree. a....
Give asymptotic tight bounds for T(n) in each of the following recurrences using recursion tree. a. T(n) = 2T(n − 1) + 1 b. T(n) = t(n − 1) + n c. T(n) = 2T (n/4) + √n
- Solve the following recurrence relation : T(n) = T(αn) + T((1 − α)n) + n
- Solve the following recurrence relation : T(n) = T(αn) + T((1 − α)n) + n
Using the backward substitution method, solve the following recurrence relations: a.T(n)= T(n−1)+3forn>1 ,T(1)=0 b.T(n)=3T(n−1) forn>1 ,T(1)=7...
Using the backward substitution method, solve the following recurrence relations: a.T(n)= T(n−1)+3forn>1 ,T(1)=0 b.T(n)=3T(n−1) forn>1 ,T(1)=7 c.T(n)= T(n−1)+n for n>0 ,T(0)=0 d.T(n)= T(n/2)+n for n>1 ,T(1)=1(solve for n=2k) e.T(n)= T(n/3)+1forn>1 ,T(1)=1(solve for n=3k)
Show for the following recurrence that T(n) = T(n/3) + n*log(n) is O(n*log(n)) (not using the...
Show for the following recurrence that T(n) = T(n/3) + n*log(n) is O(n*log(n)) (not using the Master theorem please)
Solve the recurrence equations by Substitution a) T(n) = 4T (n/2) + n, T (1) =...
Solve the recurrence equations by Substitution a) T(n) = 4T (n/2) + n, T (1) = 1 b) T(n) = 4T (n/2) + n2 , T (1) = 1 c) T(n) = 4T (n/2) + n3 , T (1) = 1
I'm needing assistance with calculating the Chi-Squared upper and lower bounds. I'm working on an example...
I'm needing assistance with calculating the Chi-Squared upper and lower bounds. I'm working on an example in which I am trying to find a 95% confidence interval estimate for a population variance and this is what the example states: Find the chi-squared upper and lower bounds, X26, .025 =12.832 (this is the upper bound) and X26, .975 = .0831 (this is the lower bound) with 5 (=6-1) degrees of freedom (because remember, the degrees of freedom is “n-1”). Also, we...
Recall the following theorem, phrased in terms of least upper bounds. Theorem (The Least Upper Bound...
Recall the following theorem, phrased in terms of least upper bounds. Theorem (The Least Upper Bound Property of R). Every nonempty subset of R that has an upper bound has a least upper bound. A consequence of the Least Upper Bound Property of R is the Archimedean Property. Theorem (Archimedean Property of R). For any x; y 2 R, if x > 0, then there exists n 2 N so that nx > y. Prove the following statements by using...
1. Using domain and range transformations, solve the following recurrence relations: a) T(1) = 1, T(n)...
1. Using domain and range transformations, solve the following recurrence relations: a) T(1) = 1, T(n) = 2T(n/2) + 6n - 1 b) T(1) = 1, T(n) = 3T(n/2) + n^2 - n
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT