6,667 views
1 1 vote

Consider an algorithm A which solves problems by dividing them into seven sub-problems each with half the size of the original problem, recursively solving each subproblem, and then combining the solutions in linear time. What is the time complexity of this algorithm?

  1.   Almost equal to O(n2)
  2.   Almost equal to O(n3)
  3.   O(2n)
  4.   None of these

1 Answer

Best answer
3 3 votes
I think , Recurrence relation for the above will be :

T(n) =  7 * T(n/2) +  n

After solving :  

Complexity : (n^log2(7) )     base = 2

almost : O( N^2.8)  something   we can say O(N^3)
• selected by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.1k
1.1k views
0 0 votes
2 2 answers
1.2k
1.2k views
radha gogia asked Jul 17, 2015
1,239 views
If I have a problem A for which no polynomial time algo exists then what do we achieve by reducing it to another problemB and then proving by contradiction that if we cou...
9 9 votes
2 answers 2 answers
23.5k
23.5k views