Home > OS >  Divide-and-conquer: Polynomial multiplication time complexity
Divide-and-conquer: Polynomial multiplication time complexity

Time:10-12

When I was learning the divide and conquer approach, I came to this example (enter image description here

CodePudding user response:

You're right. But here "to add all results" means the sum of multiplies of each power of x together to find the final result which is a polynomial, i.e., the sum of multiplies of x, x^2, ..., x^n. In this sense, the sum of the four polynomials with power of O(n), takes O(n).

  • Related