927 views
4 votes
4 votes

If k is a non-negative constant, then the solution to the recurrence
$T(n) = \begin{cases}  1 & \quad n=1 \\ 3T(n/2) + n & \quad n>1 \end{cases} $

for $n$, a power of 2 is 

  1. $T(n) = 3^{\log_2 n} - 2n$
  2. $T(n) = 2 \times 3^{\log_2 n} - 2n$
  3. $T(n) = 3 \times 3^{\log_2 n} - 2n$
  4. $T(n) = 3 \times 3^{\log_2 n} - 3n$

5 Answers

Answer:

Related questions

2 votes
2 votes
2 answers
5
Bikram asked Oct 4, 2016
372 views
$$T(n) = \begin{cases} 4 & \quad if \: \: n =1 \\ T(n-1) + 4 & \quad otherwise \end{cases}$$Value of $T(1000)$ is ___
2 votes
2 votes
2 answers
6
Bikram asked Oct 4, 2016
578 views
Consider the following recurrence relation.$$T(n) = \begin{cases}1 & \quad if \: n = 1 \\ T(n-1) + 2^n \quad & otherwise \end{cases}$$What will be the value of $T(10)$?