Solve the following recurrence relations using the initial c

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

a.) an = an/2 + d

b.) an = 2an/2 + d

c.) an = 2an/2 + dn

Solution

sub an in eq 1

we get

1=a<n/2>+d

in eq 2

we get

1=2a<n/2>+d

solve this equation to get values

and then sub in eq 3 to get n

Solve the following recurrence relations using the initial condition an = 1. a.) an = an/2 + d b.) an = 2an/2 + d c.) an = 2an/2 + dnSolutionsub an in eq 1 we g

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site