[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 you can find the product of these K polynomials in O(K SlogS)time.
Hint: How many points do you need to uniquely determine an S-degree polynomial?
(ii)[12 marks]Show that you can find the product of these K polynomials in O(S logS logK)time.
Hint: consider using divide-and-conquer; a tree which you used in the previous assignment might be helpful here as well. Also, remember that if x, y, z are all positive, then log(x+y)
FFT(a){
n = length(a) // a is the input coefficient vector
if n = 1
then return a
// wn is principle complex nth root of unity.
wn = e^(2*pi*i/n)
w = 1
// even indexed coefficients
A0 = (a0, a2, ..., an-2 )
// odd indexed coefficients
A1 = (a1, a3, ..., an-1 )
y0 = Recursive_FFT(A0) // local array
y1 = Recursive-FFT(A1) // local array
for k = 0 to n/2 - 1
// y array stores values of the DFT
// of given polynomial.
do y[k] = y0[k] + w*y1[k]
y[k+(n/2)] = y0[k] - w*y1[k]
w = w*wn
return y
}
[2 marks]Describe how to multiply two n-degree polynomials together in O(n logn) time, using the Fast...
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.
I will upvote if u will solve
What u need?
DFT can also be obtained using matrix multiplication. Let X[r] show the transformed values and x[n] show the original signal. Using the analysis equation: Using matrix multiplication, this operation can be written as x[O X[1 1 e(2m/N) e-K4n/N) x12] [N-1]] e-j(2(N-1)T/N)e-j(4(N-1)m/N) Instead of huilt-in EFT function use matrix multinlication to solve 3th auestion [ 1 e-/(2(N-1)(N-1)T/N)]Le[N-1] DFT is an extension of DTFT in which frequency is discretized to a finite...