edited by
268 views
0 votes
0 votes

 

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

  1. $O\left(\mathrm{n}^{2}\right)$
  2. $O\left(n \cdot \log _{2} n\right)$
  3. $\mathrm{O}\left(2^{\mathrm{n}}\right)$
  4. $\mathrm{O}\left(\log _{2} \mathrm{n}\right)$

(Option $1[39405]) 1$
(Option $2 [39406]) 2$
(Option $3 [39407]) 3$
(Option $4 [39408]) 4$

Answer Given by Candidate : $3$

edited by

1 Answer

0 votes
0 votes

The correct answer is $O(n * log₂ n)$.

The FFT is an algorithm that computes the Discrete Fourier Transform (DFT) of a sequence, or its inverse, in a much more efficient way than directly computing it by definition. When used for polynomial multiplication, the FFT can compute the product of two polynomials of degree-bound n in $O(n * log₂ n)$ time. This is significantly faster than the naive approach, which takes $O(n²)$ time.

The FFT-based method works by representing the polynomials in the point-value form, performing point-wise multiplication of the values, and then converting back to the coefficient form. This process is much faster than directly multiplying the coefficients of the polynomials.

Related questions

1.5k
views
2 answers
1 votes
admin asked May 20, 2023
1,462 views
The negation of "Some students like hockey" is:Some students dislike hockeyEvery student dislike hockeyEvery student like hockeyAll students like hockey(Option $1[39301]) 1$(Option ... $4[39304]) 4$Answer Given by Candidate : $2$
612
views
1 answers
0 votes
admin asked May 20, 2023
612 views
A relation '$R$ ' is defined on ordered pairs of integers as: $(x, y) R(u, v)$ if $x<u$ and $y>v$. Then $R$ isNeither a partial order nor an equivalence ... $3 [39307]) 3$(Option $4 [39308]) 4$Answer Given by Candidate : $4$
1.0k
views
1 answers
1 votes
admin asked May 20, 2023
1,019 views
Suppose you are married and you and your partner attend a party with three other married couples. Several handshakes took place. No one shook hands with himself (or herself) or ... $4 [39312]) 4$Answer Given by Candidate : $4$
569
views
1 answers
0 votes
admin asked May 20, 2023
569 views
Consider the following conditional code, which returns a Boolean valuesif $((x>25) \& \&(y>100))$return 'false';else iff $(x \leq 25) \& \& \&(y \leq 100))$ ... $3 [39315]) 3$(Option $4 [39316]) 4$Answer Given by Candidate : $4$