Question

Show how to apply the fast Fourier Transform to multiply three polynomials A(x) = a0 +a1x+a2x...

Show how to apply the fast Fourier Transform to multiply three polynomials A(x) = a0 +a1x+a2x 2 +· · ·+an−1x n−1 of degree n−1, B(x) = b0 +b1x+b2x 2 +· · ·+bn−1x n−1 of degree n − 1, and C(x) = c0 + c1x + c2x 2 + · · · + cn−1x n−1 of degree n − 1 when n is a power of 2. Analyze its time complexity.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

First multiply two polynomials using FFT, then multiply the result by the third polynomial.

The Time complexity will be nlog(n).

Use the following algorithm:

Algorithm
1. Add n higher-order zero coefficients to A(x) and B(x)
2. Evaluate A(x) and B(x) using FFT for 2n points
3. Pointwise multiplication of point-value forms
4. Interpolate C(x) using FFT to compute inverse DFT
Add a comment
Know the answer?
Add Answer to:
Show how to apply the fast Fourier Transform to multiply three polynomials A(x) = a0 +a1x+a2x...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • [2 marks]Describe how to multiply two n-degree polynomials together in O(n logn) time, using the Fast...

    [2 marks]Describe how to multiply two n-degree polynomials together in O(n logn) time, using the Fast Fourier Transform (FFT). You do not need to explain how FFT works – you may treat it as a black box. In this part we will use the Fast Fourier Transform (FFT) algorithm described in class to multiply multiple polynomials together (not just two). Suppose you have K polynomials P1, . . . , Pk so that degree(P1) +···+ degree(PK) =S (i)[6 marks]Show that...

  • assume f(x)=a0+a1x+a2x^2+a3x^3+a4x^4... dont used this solution method pls because this not what the teacher want 4...

    assume f(x)=a0+a1x+a2x^2+a3x^3+a4x^4... dont used this solution method pls because this not what the teacher want 4 Power Series Solutions to two important ODES 1. Find a power series (with two arbitrary constants) satisfying the following ODE S"(x) + f(2)=0 Write your answer in a closed form. 10 points Let f(2)= { an en f(x) non-don 22 on Žnin-Danza 3 anz":o. = { [ conta) (nt. Dants & an] 2n=o. (nta) (n+ Dant, tano. - (+) (0+2) (I+D (172) f(2)= {...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT