Algorithm A divides the problem into 5 sub-problems of half the size. Solving each sub-problem then combining the solutions in linear time.
Algorithm B solves problems of size n by dividing them into 9 sub-problems of size n/3, and recursively solving each sub-problem then combines solutions in 26*n^2 time.
Algorithm C solves problems of size n by recursively solving two sub-problems of size n-1 then combines the solutions in constant time.
Questions:
What method would you use to compare these algorithms? Show how to apply said method.
What are the running times of each? which would you chose? Explain
When implemented, the algorithms may not perform as you ranked them for small input sizes, why can this be the case?
I know the following:
I think for A the recurrence recurrence relation is given by T(n) = 5T(n/2)+O(n) But is this what he means by what method I would use? and what does that make the running time of it?