We need to multiply these polynomials using the FFT. First, we determine the degree of the resulting polynomial, which is \( \deg(p) + \deg(q) = 1 + 2 = 3 \). To use FFT, we need to pad the sequences to the next power of two, which is \( 4 \).
Show more…