Question

Solve the Recurrence Relation T(n) = 2T(n/3) + 2, T(1) = 1

Solve the Recurrence Relation T(n) = 2T(n/3) + 2, T(1) = 1

Homework Answers

Answer #1

Given, T(n) = 2*T(n/3) + 2 and T(1) = 1

Now, T(3) = 2*T(3/3) + 2 = 2*T(1) + 2 = 2*1 + 2 = 22

T(32) = T(9) = 2*T(9/3) + 2 = 2*T(3) + 2 = 2*[2*2] + 2 = 23 + 2

T(33) = T(27) = 2*T(27/3) + 2 = 2*(23 + 2) + 2 = 24 + 22 + 2

T(34) = T(81) = 2*T(81/3) + 2 = 2*(24 + 22 + 2) + 2 = 25 + 23 + 22 + 2

T(35) = T(243) = 2*T(243/3) + 2 = 2*(25 + 23 + 22 + 2) + 2 = 26 + 24 + 23 + 22 + 2

Proceeding in this way we get, T(3n) = 2n+1 + 2n-1 + 2n-2 + 2n-3 + ......... + 23 + 22 + 2.

Therefore, the required solution is, T(3n) = 2n+1 + 2n-1 + 2n-2 + 2n-3 + ......... + 23 + 22 + 2.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Solve the recurrence relation using the substitution method: 1. T(n) = T(n/2) + 2n, T(1) =...
Solve the recurrence relation using the substitution method: 1. T(n) = T(n/2) + 2n, T(1) = 1, n is a 2’s power 2. T(n) = 2T(n/2) + n^2, T(1) = 1, n is a 2’s power
Solve the following recurrence relation T(1) = c1 T(n) = 2*T(n/2) + c2
Solve the following recurrence relation T(1) = c1 T(n) = 2*T(n/2) + c2
Solve the following recurrence relation using the technique of unrolling T(n) <= 2*T(n/2) + n*log(n), given...
Solve the following recurrence relation using the technique of unrolling T(n) <= 2*T(n/2) + n*log(n), given T(n <= 2) = 1
Problem #1. Solve the following recurrence exactly.                         9n^2 - 15n + 106        &nbs
Problem #1. Solve the following recurrence exactly.                         9n^2 - 15n + 106                    if n = 0, 1 or 2             t(n)=                         t(n-1) + 2t(n-2) - 2t(n-3)         otherwise Problem #2. Solve the following recurrence exactly.                         n                                              if n = 0, 1 2, or 3             t(n)=                         t(n-1) + t(n-3) - t(n-4)             otherwise Problem #3. Solve the following recurrence exactly.                         n + 1                                       if n = 0, or 1             t(n)=                         3t(n-1) - 2t(n-2) +...
Solve the recurrence T(n) = 9T(n/3) +n^(3/2)
Solve the recurrence T(n) = 9T(n/3) +n^(3/2)
Given the following recurrence relation, convert to T(n) and solve using the telescoping method. T(2n) =...
Given the following recurrence relation, convert to T(n) and solve using the telescoping method. T(2n) = T(n) + c1 for n > 1, c2 for n = 1
Solve the following recurrence relations: 1. T(n) = T(n/3) + n for n > 1 T(1)...
Solve the following recurrence relations: 1. T(n) = T(n/3) + n for n > 1 T(1) = 1 2. T(n) = 4T(n/2) + n^2 for n > 1 T(1) = 1
Solve the recurrence relation an = 8an−1 − 16an−2 (n ≥ 2) with the initial conditions...
Solve the recurrence relation an = 8an−1 − 16an−2 (n ≥ 2) with the initial conditions a0 = 3 and a1 = 14. Show all your work.
Solve the following recurrence relation, subject to the basis. S(1) = 2 S(n) =2S(n/2) + 2n
Solve the following recurrence relation, subject to the basis. S(1) = 2 S(n) =2S(n/2) + 2n
Solve the following recurrence relation, subject to the basis. S(1) = 2 S(n) =2S(n/2) + 2n
Solve the following recurrence relation, subject to the basis. S(1) = 2 S(n) =2S(n/2) + 2n