Consider procedure solve \((P, I, O)\) given below. This algorithm solves
problem \(P\) by finding the output (solution) \(O\) corresponding to any input
\(l\)
Assume \(g(n)\) basic operations for partitioning and combining and no basic
operations for an instance of size 1
(a) Write a recurrence equation \(T(n)\) for the number of basic operations
needed to solve \(P\) when the input size is \(n\)
(b) What is the solution to this recurrence equation if \(g(n) \in \Theta(n)\)
(proof not required \() ?\)
(c) Assuming that \(g(n)=n^{2},\) solve the recurrence equation exactly for \(n=\)
27
(d) Find the general solution for \(n\) a power of 3