retagged by
338 views
1 votes
1 votes
$T(n) = \begin{Bmatrix} T(\frac{n}{k})+T(\frac{3n}{4})+n\ \ \ if\ n\geq2\\ 1 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if\ n=1 \end{Bmatrix}$
retagged by

1 Answer

1 votes
1 votes
yeah it shld be n/4;

then the solution is by tree method

at each level work done is n

and the height of tree is  log n to the base 4/3;

therefore total work done is n*log n to the base 4/3

Related questions

1 votes
1 votes
0 answers
1
pC asked Jan 23, 2017
572 views
$T(n)= \begin{Bmatrix} 2^{n}T(n-1)+c& n>0\\ 1 & n=0 \end{Bmatrix}$
1 votes
1 votes
0 answers
2
srestha asked May 19, 2019
630 views
Let $A(n)$ denotes the number of $n$ bit binary strings which have no pair of consecutive $1’s.$ what will be recurrence relation for it and what will be it’s Time Co...
1 votes
1 votes
2 answers
3
srestha asked May 10, 2019
873 views
What is the solution of recurrence relation$T\left ( n \right )=T\left ( n-1 \right )+n$
1 votes
1 votes
1 answer
4
VikramRB asked Jan 20, 2019
1,040 views
What is the time complexity of the following recurrence relation and step to derive the same$T(n) = T(\sqrt{n}) + log(logn)$