Agnishom developed a complicated algorithm for purposes unknown.
He then wanted to analyse it's time complexity. After a lot of complicated math, he came up with the following recurrence relation:
Unfortunately, he doesn't have time to solve this recurrence.
That's where you come in : Solve the above recurrence relation!
To which of the following sets does belong to?
Notations:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We shall use the Akra-Bazzi Theorem as a heuristic tool.
Following the notations of the link, note that p = 2 .
So, T ( x ) ∈ Θ ( x 2 ( 1 + ∫ 1 x t 2 lg ( t ) d t ) ) ⟹ T ( n ) ∈ Θ ( n 2 )
This can now be verified via the substitution method.