1)Solve the recurrence
T(n) = 2T(pn) + 1. (*pn means the square root of n)
2)Solve by the recursion tree method
T(n) = 3T(n/2 ) + n
1)Solve the recurrence
T(n) = 2T(pn) + 1. (*pn means the square root of n)
2)Solve by the recursion tree method
T(n) = 3T(n/2 ) + n
I'll do that for you if you do my pre cal homework.
#1 has a solution but #2, without a set of base cases, is only solvable (I assume the "solution" that you want is for T to be defined in closed form) for one value of n.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.