with Substitution induction hypothesis Let Qn 4Qn2 Thetan

with Substitution / induction hypothesis.

Let Q(n) = 4Q(n/2) + Theta(n). Prove that Q(n) = O(n^2).

Solution

Answer:

Proof : -

q(n)=O(n^2)

therefore , 4q(n/2)=4*O(n^2/4)

O(4*n^2/4)=O(n^2)

and O(n^2)+theta(n)= O(n^2)

with Substitution / induction hypothesis. Let Q(n) = 4Q(n/2) + Theta(n). Prove that Q(n) = O(n^2).SolutionAnswer: Proof : - q(n)=O(n^2) therefore , 4q(n/2)=4*O(

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site