Question: Obtain an explicit closed-form equation for processing an array of size n if T(n) relates to the average of T(n1),,T(0) as follows: T(n)=n2(T(0)++T(n1))+c where T(0)=0.

Obtain an explicit closed-form equation for processing an array of size n if T(n) relates to the average of T(n1),,T(0) as follows: T(n)=n2(T(0)++T(n1))+c where T(0)=0. (Hint: Use the equation 121+231++n(n+1)1=n+1n for deriving the formula for T(n) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
