Fast Fourier Transform
- 46Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
A polynomial is written with n coefficients, from the constant term through the coefficient of xn−1. What is its maximum degree?
46 questions
- 1
A polynomial is written with n coefficients, from the constant term through the coefficient of xn−1. What is its maximum degree?
Model answer
Its maximum degree is n−1.
Explanation
The polynomial has n terms, and its final possible term is the coefficient of xn−1.
- 2
How can a coefficient vector be interpreted as a one-dimensional data set?
Model answer
It can represent a sequence of measured real values, such as audio samples recorded over time; the polynomial coefficients are the data values.
Explanation
The variable x need not have a meaningful role when the polynomial is used to encode a sequence.
- 3
How can a polynomial be evaluated at a given value in linear time?
Model answer
Use Horner’s rule, or compute successive powers by multiplying each power by x and then form the required sum.
Explanation
Both methods use O(n) arithmetic operations for a polynomial with n coefficients.
- 4
What computational model is used to measure running time in this discussion?
Model answer
Running time is measured by the number of arithmetic operations, with addition and multiplication of two real numbers treated as constant-time operations.
Explanation
This model lets the analysis count arithmetic steps rather than the bit lengths of numbers.
- 5
How are two polynomials added when they are represented by coefficient vectors?
Model answer
Add corresponding coefficients: the coefficient of xk in the sum is the sum of the two coefficients of xk.
Explanation
Each output coefficient is computed independently, so addition takes O(n) time.
- 6
What formula gives the coefficient of xk in the product of two polynomials?
Model answer
It is ck=∑j=0kajbk−j.
Explanation
Each pair of terms with exponents summing to k contributes to the coefficient of xk.
- 7
Why does the straightforward coefficient-by-coefficient method for polynomial multiplication take quadratic time?
Model answer
Computing coefficient ck requires up to O(k) products and additions, and doing this for all coefficients takes O(n2) time.
Explanation
The number of contributions grows across the output coefficients, producing a quadratic total.
- 8
How is polynomial multiplication related to convolution of vectors?
Model answer
The product coefficients are the convolution of the coefficient vectors, up to reversing one vector’s order to match the usual shift-based definition.
Explanation
Convolution computes dot products between one vector and shifted versions of another; reversing a vector accounts for the index difference in the polynomial product.
- 9
What is a coefficient-vector representation of a polynomial?
Model answer
It represents a polynomial by listing its coefficients in order, such as (a0,a1,…,an−1) for ∑k=0n−1akxk.
Explanation
This representation is especially direct for addition, while straightforward multiplication takes quadratic time.
- 10
How can a polynomial be represented by samples, and what condition makes those samples uniquely determine it?
Model answer
Store n pairs (xk,yk) where a(xk)=yk; if the xk values are distinct, these samples uniquely determine a polynomial of degree at most n−1.
Explanation
A degree-at-most-n−1 polynomial is determined by its values at n distinct points.
- 11
How can a polynomial be represented by its roots?
Model answer
A degree-n polynomial can be written as a constant multiplier times a product of n factors of the form (x−ri), counting roots with multiplicity.
Explanation
Counting multiplicity, a degree-n polynomial has n roots over the complex numbers.
- 12
Why is the roots representation unsuitable for converting arbitrary coefficient vectors into roots using basic arithmetic operations?
Model answer
There is no general formula using arithmetic operations and radicals to find the roots of every polynomial of degree five or greater.
Explanation
Quadratic, cubic, and quartic formulas exist, but a general quintic formula of this kind does not.
- 13
Which polynomial operations are especially easy in the roots representation, and which are difficult?
Model answer
Multiplication is easy because the root lists can be concatenated; addition is difficult because the roots of a sum do not follow simply from the original root lists.
Explanation
The roots representation directly reflects multiplication of polynomial factors, but not addition.
- 14
How can two polynomials represented by samples at the same points be added or multiplied?
Model answer
Add or multiply their values pointwise at each sample location.
Explanation
At each fixed xk, the value of the sum or product is determined directly by the values of the original polynomials there.
- 15
Why is evaluating a polynomial from its sample representation at an arbitrary new point inconvenient?
Model answer
The samples give values only at specified points, so evaluation at a new point requires interpolation.
Explanation
General polynomial interpolation takes quadratic time using the best algorithms described in the content.
- 16
What matrix maps a polynomial’s coefficient vector to its values at specified sample points?
Model answer
The Vandermonde matrix, whose entry in row j and column k is xjk.
Explanation
Multiplying this matrix by the coefficient vector produces the polynomial’s value at each xj.
- 17
What is the straightforward running time for converting coefficients to samples using the Vandermonde matrix?
Model answer
It takes O(n2) time.
Explanation
The matrix has quadratically many entries, and its matrix-vector product requires quadratic work in the general case.
- 18
How can samples be converted back to coefficients using linear algebra, and what is a limitation of the straightforward approach?
Model answer
Solve the Vandermonde linear system for the coefficient vector; Gaussian elimination takes cubic time, while a precomputed inverse can be reused for repeated conversions.
Explanation
With the inverse already available, each matrix-vector product takes quadratic time, though explicitly using the inverse is numerically undesirable.
- 19
In the divide-and-conquer approach, how are a polynomial’s coefficients divided into two smaller polynomials?
Model answer
Separate the even-indexed coefficients into aeven and the odd-indexed coefficients into aodd.
Explanation
Each resulting polynomial has about half as many coefficients as the original.
- 20
How can the original polynomial be reconstructed from its even- and odd-coefficient polynomials?
Model answer
Use a(x)=aeven(x2)+xaodd(x2).
Explanation
Substituting x2 restores the even exponents, and multiplying the odd part by x restores the odd exponents.
- 21
If an algorithm needs to evaluate a(x) for every x in a set X, at what points must its even- and odd-coefficient polynomials be evaluated?
Model answer
They must be evaluated at the points in X2={x2:x∈X}.
Explanation
The reconstruction formula uses aeven(x2) and aodd(x2) for each requested x.
- 22
What work is required outside the recursive calls when dividing and recombining the polynomials for a set of evaluation points X?
Model answer
The coefficient split takes O(n) time, and recombining the results at all points in X takes O(∣X∣) time.
Explanation
Splitting scans the coefficients, while each requested point needs only a constant number of arithmetic operations to combine its two recursive results.
- 23
Why does this divide-and-conquer method fail to achieve O(nlogn) time for an arbitrary fixed-size set of n evaluation points?
Model answer
Squaring the evaluation points may not reduce the set’s size, so the recursion keeps doing work for n points at every level.
Explanation
With O(logn) levels and O(n) work per level, the total can remain O(nlogn) in some measures, but without shrinking the point sets the recurrence has a quadratic number of combined recursive tasks and yields O(n2) overall.
- 24
What does it mean for a set of evaluation points to be collapsing?
Model answer
A set is collapsing if squaring its elements reduces the set’s size by half at each recursive step, until a one-element base case is reached.
Explanation
This shrinking lets the point-set size decrease in step with the number of polynomial coefficients.
- 25
What recurrence results when the coefficient count and the evaluation-set size both halve at each level?
Model answer
The running time satisfies T(n)=2T(n/2)+O(n), which is O(nlogn).
Explanation
There are two subproblems of half the size and linear nonrecursive work, as in merge sort.
- 26
Why are complex numbers needed to create the evaluation points for the collapsing sets?
Model answer
Repeatedly taking square roots of points such as 1 eventually produces non-real values, including i and −i.
Explanation
The required roots of unity lie around the complex unit circle, so real numbers alone are insufficient.
- 27
What are the nth roots of unity, and how are they positioned?
Model answer
They are the complex numbers whose nth power is 1; they are uniformly spaced around the unit circle.
Explanation
For example, the roots can be expressed as eikτ/n for k=0,1,…,n−1, where τ=2π.
- 28
How does Euler’s formula connect complex exponentials to points on the unit circle?
Model answer
Euler’s formula is eiθ=cosθ+isinθ, so the complex exponential represents the point at angle θ on the unit circle.
Explanation
The real and imaginary parts give the point’s horizontal and vertical coordinates.
- 29
What geometric effect does squaring a point on the unit circle have?
Model answer
It doubles the point’s angle around the circle.
Explanation
Algebraically, (eiθ)2=ei2θ, with angles understood modulo a full turn τ.
- 30
Why do the nth roots of unity form a collapsing set when n is a power of two?
Model answer
Squaring the nth roots maps them onto the n/2th roots; repeated squaring continues to halve the set until only one point remains.
Explanation
The roots are evenly spaced around the circle, and squaring doubles their angles, identifying pairs of points.
- 31
What can be done when the number of coefficients is not a power of two?
Model answer
Pad the coefficient list to the next power of two, which increases its size by at most a factor of two.
Explanation
The divide-and-conquer algorithm can then use the collapsing roots-of-unity sets.
- 32
What evaluation points are chosen for the discrete Fourier transform in this algorithm?
Model answer
Choose xk=eikτ/n for k=0,1,…,n−1.
Explanation
These are the n uniformly spaced nth roots of unity.
- 33
What is the relationship between the discrete Fourier transform and the fast Fourier transform?
Model answer
The discrete Fourier transform is the mathematical transformation from coefficients to samples at the chosen roots of unity; the fast Fourier transform is the divide-and-conquer algorithm that computes it in O(nlogn) time.
Explanation
The transformation describes what is computed, while the algorithm describes how to compute it efficiently.
- 34
How does fast polynomial multiplication use Fourier transforms?
Model answer
Transform both coefficient vectors into sample vectors, multiply corresponding samples, and apply the inverse transform to recover the product’s coefficients.
Explanation
Pointwise multiplication is easy in the sample representation, and the transforms make it possible to return to coefficient form efficiently.
- 35
Why is pointwise multiplication of the transformed vectors valid for polynomial multiplication?
Model answer
At every sample point, the product polynomial’s value equals the product of the two original polynomials’ values.
Explanation
The sample representation records polynomial values at shared points, where multiplication is performed independently at each point.
- 36
What is the matrix form of the discrete Fourier transform?
Model answer
It is a Vandermonde matrix-vector product whose entries are Vjk=eijkτ/n.
Explanation
Substituting the roots-of-unity sample points into the Vandermonde entries xjk gives this expression.
- 37
How is the inverse Fourier transform computed using the same fast algorithm?
Model answer
Use the roots with negative exponents, e−ikτ/n, run the same transform procedure, and divide each result by n.
Explanation
The inverse matrix is the entrywise complex conjugate of the transform matrix divided by n.
- 38
What role does complex conjugation play in the inverse transform?
Model answer
It changes each root-of-unity factor to its counterpart with the opposite angle, changing eikθ to e−ikθ.
Explanation
Geometrically, complex conjugation reflects a point across the real axis.
- 39
Why does multiplying the Fourier matrix by its complex conjugate produce n times the identity matrix?
Model answer
A diagonal entry sums n copies of 1, while an off-diagonal entry is a geometric series whose terms sum to 0.
Explanation
For distinct row and column indices, the ratio of the geometric series is a nontrivial nth root of unity, so its nth power is 1 and the series’ numerator vanishes.
- 40
How does the matrix identity establish the inverse-transform formula?
Model answer
Since the transform matrix times its complex conjugate is nI, the inverse matrix is the complex-conjugate matrix divided by n.
Explanation
Applying that inverse recovers the coefficient vector from its transformed samples.
- 41
How does a Fourier transform change the interpretation of an audio signal?
Model answer
It changes a time-domain sequence of samples into a frequency-domain sequence describing the signal’s frequency components.
Explanation
The original values record the waveform over time; the transformed values describe its content by frequency.
- 42
What do the magnitude and angle of a complex Fourier coefficient represent?
Model answer
The magnitude indicates how much of that frequency is present, and the angle indicates the phase shift of its corresponding trigonometric component.
Explanation
A complex coefficient can be viewed as a two-dimensional vector whose length and direction encode these properties.
- 43
What frequency-domain pattern results from an ideal pure note?
Model answer
It has a nonzero component at the note’s frequency and zero components at the other frequencies.
Explanation
A pure sinusoidal signal consists of a single frequency, though its coefficient may have a phase-dependent rotation.
- 44
How can high-pass and low-pass filters be implemented using Fourier transforms?
Model answer
Transform the signal, zero out the frequency components to remove, and apply the inverse transform.
Explanation
A high-pass filter removes low frequencies, while a low-pass filter removes high frequencies.
- 45
How does convolution appear in image processing and audio processing?
Model answer
Convolution combines a signal or image with a shifted pattern, such as a Gaussian, and can be used for smoothing or blurring.
Explanation
For example, Gaussian blur applies a two-dimensional Gaussian convolution to an image; convolution is also used in audio processing.
- 46
Why is the fast Fourier transform useful in practical signal-processing applications?
Model answer
It enables frequency-domain operations and computes the transformation in O(nlogn) time, making it practical for audio, image, and other signal-processing tasks.
Explanation
The transform can be used in applications such as audio editing, noise cancellation, MP3 processing, and image filtering.

Ask anything
We've read this whole study set, so questions about it get the best answers.