888 views
6 votes
6 votes

Let T(n) be defined by T(0) = T(1) = 4 and $T(n) = T(\left \lfloor \frac{n}{2} \right \rfloor) +T(\left \lfloor \frac{n}{4} \right \rfloor) + cn$  for all integers n >=2, where c is a positive constant. What is the asymptotic growth of T(n)?

  1. $\Theta(n)$
  2. $\Theta(n \log n)$
  3. $\Theta (n^2)$
  4. $\Theta \left(n^{\log_{\frac{3}{4}}n}\right)$

2 Answers

Best answer
7 votes
7 votes

The answer is option A.

Using Recursive Tree Method, Time Complexity comes out to be ϴ(n) because the upper bound is O(n) and the lower bound is also Ω(n)

selected by

Related questions

2 votes
2 votes
4 answers
1
Anjana Babu asked Dec 31, 2016
1,192 views
On solving the RecuranceT(n) = 3T(n/4) + cn2I was stuck at summation$\sum_{i=0}^{log_4 n} (\frac{3}{16})^{i} cn^{2}$Can someone could help ?
3 votes
3 votes
2 answers
2
pC asked Jan 15, 2016
529 views
an = an-1 + n , n>=1a0=2Find a100... ?SolutionI actually wanted to know what is wrong with this method .Could you pls help Whats wrong here .T(n) = T(n-1)+nand back su...
3 votes
3 votes
2 answers
3
Diksha Aswal asked Jul 3, 2017
1,926 views
T(n) = T(n/3)+T(2n/3)+n What is the solution of Above Given recurrence relation?Give full method to solve this
0 votes
0 votes
1 answer
4
PEKKA asked Dec 6, 2016
7,156 views
Solve the following Recurrence Equation using back substitution methodT(n)= T(n-1)+log n​