retagged by
1,298 views
1 votes
1 votes

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)*algorithm(n/2)+algorithm(n/2)*algorithm(n/2)
}

retagged by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
VikramRB asked Jan 20, 2019
1,041 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
0 answers
3
garvit_vijai asked Nov 17, 2018
467 views
How to solve the following recurrence relation?T(n) = T(n-6) + n2 , n>7T(n) = 1 , n<= 7
1 votes
1 votes
1 answer
4
aditi19 asked Oct 27, 2018
874 views
how to compute time complexity of this kind of recurrence relation-T(n)=T(n/2)+T(n/4)+T(n/8)+n