Solve the following recurrence relations using the initial c

Solve the following recurrence relations using the initial condition an = 1.

an = an/2 + d and an = 2an/2 + d

Solution

we have the recurrence relation an=an/2+d with an=1

an=an/2+d

=12a(n/4)=........=1ka(1)=logn=nlog1=1

another recurrence relation an=2an/2+d with an=1

an=22a(n/22)=............=2ka(1)=2logn=nlog2

Solve the following recurrence relations using the initial condition an = 1. an = an/2 + d and an = 2an/2 + dSolutionwe have the recurrence relation an=an/2+d w

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site