Question & Answer: Solve the recurrence relation : T(n) = T(n/2) + n 3 . T(1)=1……

Solve the recurrence relation : T(n) = T(n/2) + n 3 . T(1)=1.

Expert Answer

 

This reccurance relation can be solved using master’s theorem

here in this equation T(n)=T(n/2)+ n3

here a=1 b=2 f(n)= n3

according to master’s theorem if f(n)=Θ(nc) where c>Logba then T(n)=Θ(f(n))

here c=3 and logba=log21 = 0 so c>0 sot T(n)= Θ(n3).

Still stressed from student homework?
Get quality assistance from academic writers!