a) We cannot apply Master Theorem in this. as it is not of the form
T(n) = aT(n/b) + f(n)
a is √n here , Hence it is not of the form, So we cannot apply
Masters theorem on this
b) T(n) = √nT(√n) + n
Divide by n we get
T(n)/ n = T(√n)/ √n) + 1
Let n = 2m
T(2m )/ 2m =
T(2m/2)/ 2m/2 + 1
S(m) = T(2m) / 2m
S(m) = S(m/2) + 1
Solving the above we get S(m) = O(logm)
Substituting we get T(n)/n = log logn
=> T(n) = O(n log(logn))
Thanks, PLEASE COMMENT if there is any concern. PLEASE
UPVOTE
r the recurrence relation o. Consider T(n) = Vn T(Vn) + n a. Why can't you solve this with the master theorem? b. S t involves a constant C, tell me what it is in terms of T(O), T(1), or what...
1. Solve the recurrence relation T(n) = 2T(n/2) + n, T(1) = 1 and prove your result is correct by induction. What is the order of growth? 2. I will give you a shortcut for solving recurrence relations like the previous problem called the Master Theorem. Suppose T(n) = aT(n/b) + f(n) where f(n) = Θ(n d ) with d≥0. Then T(n) is: • Θ(n d ) if a < bd • Θ(n d lg n) if a = b...
Solve the following recurrence relation without using the master method! report the big O 1. T(n) = 2T(n/2) =n^2 2. T(n) = 5T(n/4) + sqrt(n)