Americas
Europe
Q22E
Expert-verifiedSuppose that the function satisfies the recurrence relation whenever is a perfect square greater than and .
a) Find .
b) Give a big -estimate for. [Hint: Make the substitution ].
(a) The required function .
(b) The required function .
The functionsatisfies the recurrence relation , Where is a perfect square greater thanand.
The master theorem is a formula for solving recurrence relations of the form: , where the size of the input number of sub-problems is in the recursion size of each subproblem. All subproblems are assumed to have the same size.
(a)
To find :
(b)
Use the suggested substitution and let .
So,
Now, it will may be .
Rewrite the function, for clarity, as .
And so, .
Next, apply the Master theorem with :
Hence,
94% of StudySmarter users get better grades.
Sign up for free