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? Almost equal to O(n2) Almost equal to O(n3) O(2n) None of these Algorithms algorithms time-complexity + – Akriti sood 6.7k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Kapil commented Dec 28, 2016 reply Follow flag A little bit modified version of Strassen's Algorithm. 0 0 replyShare air1 commented Dec 28, 2016 reply Follow flag @Kapil Complexity of $T(n) = 7T(n/2) + O(n)$ will be same as that of Strassen's multiplication algo, right? 1 1 replyShare Pavan Kumar Munnam commented Dec 28, 2016 reply Follow flag it will be$O(n^{\log_2 7})$ 0 0 replyShare Habibkhan commented Dec 28, 2016 reply Follow flag Yes it will be same but recurrence relation will be : T(n) = 7 T(n/2) + O(n2) in case of Strassens Multiplication.. 1 1 replyShare Kapil commented Dec 28, 2016 reply Follow flag @air1, yes, Option B suffices here. 1 1 replyShare Akriti sood commented Dec 28, 2016 reply Follow flag is the answer O(n3)..?? can i form this equation..T(n) =7 T(n/2) + n..?? but i am not sure whther 'n' will be there or not 0 0 replyShare Please log in or register to add a comment.
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) vipsharmavip answered Dec 28, 2016 • selected Dec 29, 2016 by vijaycs vipsharmavip comment Share Follow 0 reply Please log in or register to add a comment.