Question: Example 2 . 1 1 . Solve the following recurrence relation for n = 2 k for any positive integer k . If n is

Example 2.11. Solve the following recurrence relation for n=2k for any
positive integer k. If n is not a power of 2,T(n) is bounded by the T values
of two consecutive powers of 2 and hence will belong to the same efficiency
class as with the powers of 2.
T(n)=T(n2)+n for n>1 and T(1)=1.
Solution: T(n)=T(2k)=T(2k-1)+2k=[T(2k-2)+2k-1]+2k=cdots=
1+2+22+cdots+2k=2k+1-1=2*2k-1=2n-1. using this example solve T(n)= T(n/3)+1 for n >1 and T(1)=1. Assume n is a power of 3.
 Example 2.11. Solve the following recurrence relation for n=2k for any

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!