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

