Question: b)Develop a divide and conquer algorithm for multiplying two degree-n polynomials A(x)= a n x n + a n-1 x n-1 +........+a 1 x +a

b)Develop a divide and conquer algorithm for multiplying two degree-n polynomials

A(x)= anxn + an-1xn-1+........+a1x +a0 and

B(x)=bnxn+ bn-1xn-1+........+b1x + b0 in O (nlog23) time and prove the running time by writing and analyzing a recurrence relation.You may assume that n is a power of 2.Your algorithm takes as input coefficients an,...............,a0,bn,............,b0 and outputs the coefficient c2n,,c2n-1,......c0 of polynomial

c(x)=A(x)B(x).

HINT: One approach is to divide the coefficients into upper-half and lower half based on their indices and apply the result in the previous subproblem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!