edited by
608 views
2 votes
2 votes

Consider the description to solve for any problem ‘S’ using recursive tree method S1  below:

S1 : Recursion depth of tree is atmost log$_2$ n.
S2 : Total number of nodes at level i is atmost 5$^i$.
S3 : The maximum number of leaves is atmost 5$^{log_2n}$.
S4 : The recurrence is bounded by summation.
Using all four statement if T(n) represents the time complexity to solve problem ‘S’ and gives T(n) = O(n$^p$).
Then the value of p is __________.

edited by

1 Answer

Related questions

1 votes
1 votes
0 answers
1
syncronizing asked Mar 15, 2019
1,298 views
Is this the correct way to solve ?Q) int algorithm(int n){ int sum =0;k,j; for (k=0;k<n/2;k++) for(j=0;j<10;j++) sum++; return 4*algorithm(n/2)*algorit...
1 votes
1 votes
1 answer
2
VikramRB asked Jan 20, 2019
1,042 views
What is the time complexity of the following recurrence relation and step to derive the same$T(n) = T(\sqrt{n}) + log(logn)$
0 votes
0 votes
2 answers
3