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
- Circuit satisfiability problem: given a Boolean combinational circuit of AND, OR and NOT gates, is it satisfiable (is there an input for wh…
- Given the expression (A + B * D)/(E − F) + G: 1. The prefix notation is + / + A * D B − E F G. 2. The prefix expression is the reverse of t…
- Match List I with List II
- Given the graph below one of the following edges cannot be added in that order to find a minimum spanning tree algorithm. Q I. a-b II. d-f…
- Statement 1: su Given a graph G=(V, E) in which each vertex v € V has an associated positive weight w(v), we can Q use linear programming t…
- The solution of the recurrence T(n) = 3T(n/4) + n log n is