All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2022 Shift 2

Given the FFT, we can have a ______ time procedure for multiplying two polynomials A(x) and B(x) of degree bound n, where input and output representations are in coefficient form, assuming n is a power of 2.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. O(n log2 n)

Explanation

Evaluate both by FFT, multiply pointwise and interpolate by inverse FFT: Θ(n log n).

More Data Structures and Algorithms questions