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 ______ time procedure for multiplying two polynomials A(x) Q 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 log₂ n)

Explanation

Evaluate both polynomials at 2n points with FFT, multiply pointwise, and interpolate with the inverse FFT: O(n log n) in total.

More Data Structures and Algorithms questions