Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
Distribution of random Fourier coefficients
Each Fourier coefficient on its own is the average of $2^n$ independent uniformly random $\pm1$ variables. Its distribution is roughly normal with mean $0$ and variance $2^{-n}$.
1
vote
How does each element in the output array of a DFT correspond to a specific frequency?
Let us denote the input signal by $x(0),\ldots,x(n-1)$ and the output signal by $y(0),\ldots,y(n-1)$. Your program is using the following formula:
$$
y(k) = \sum_{t=0}^{n-1} e^{-2\pi i tk/n} x(t).
$$
…
1
vote
Explaining why FFT is faster than DFT for the general public?
Here is an attempt.
The Fourier transform decomposes a signal into superimposed sine waves of various frequencies (this can be demonstrated visually).
It turns out that we can find out the strength of …
30
votes
Accepted
Show how to do FFT by hand
Suppose we use fourth roots of unity, which corresponds to substituting $1,i,-1,-i$ for $x$. We also use decimation-in-time rather than decimation-in-frequency in the FFT algorithm. (We also apply a b …
2
votes
Accepted
What's the connection between the two "Fast Walsh Transform"?
Suppose that $A$ and $B$ are vectors of length $n$, where $n$ is a power of 2. We index $A$ and $B$ using binary vectors of length $\log_2 n$, and define their convolution $C$ as
$$
C_i = \sum_{j \opl …
1
vote
How is this definition of the quantum Fourier transform to be understood?
The index $\mathbf{k}$ goes over all vectors in $\{0,1\}^n$ (which can be identified with $\mathbb{Z}_2^n$). The index $\mathbf{x}$ also has the same range, and $\mathbf{k} \cdot \mathbf{x} = \sum_{i= …
3
votes
Accepted
Calculating force between n points placed on the x-axis
Suppose that the charges are $q_1,\ldots,q_n$. You need to calculate, for all $i$,
$$
F_i = q_i \sum_{j>i} \frac{q_j}{(i-j)^2} - q_i \sum_{j<i} \frac{q_j}{(i-j)^2}.
$$
In matrix form, we get
$$
\begin …
0
votes
How does the Stockham FFT work?
There are two variants of FFT: Decimation in Time (DIT) and Decimation in Frequency (DIF). What you describe is DIT, whereas the diagram shows DIF. The only difference is the order in which the bits a …
0
votes
Accepted
Calculating DFT of a specific polynomial
You haven't explained what you mean by the DFT of a polynomial, so I'm assuming you mean the polynomial evaluated at all $n$th roots of unity, that is,
$$ v_i = P(\omega^i), $$
where $\omega = e^{2\pi …
2
votes
Could an NP-Hard problem be in P in after a basis transform?
An efficient change of basis doesn't change the hardness of a problem. Consider some decision problem $Q_1$, which consists of all objects $x$ of some type that satisfy some property. Now let $f$ be a …
5
votes
Accepted
Morgenstern proof for FFT lower bound
Morgenstern first defines the notion of a linear algorithm. A linear algorithm gets as input $x_1,\ldots,x_n$ and its goal is to compute some $y_1,\ldots,y_m$, each of which is a (specific) linear com …
1
vote
Accepted
How to evaluate all derivatives of a polynomial at a point with FFT?
Hint: Taking the derivative has a certain, simple diagonal effect on the Fourier transform, that hopefully was covered in class. Hence if you compute the Fourier transform of the original function, yo …
4
votes
Accepted
An $O(n)$ algorithm to FFT-evaluate an FFT evaluation
Let's answer your questions one by one.
You don't compute $W^2$ by squaring $W$ algorithmically. Rather, you compute $W^2$ "on paper", and you find out a formula for $W^2$. Given this formula, you c …
1
vote
Accepted
Snowball Question FFT
Here is the idea of the proof. Let $a_i,b_i$ be the distance thrown by the $i$th male/female. Using FFT, we calculate
$$ \left(\sum_i x^{a_i}\right) \left(\sum_j x^{b_j}\right) = \sum_{i,j} x^{a_i+b_j …
3
votes
Accepted
FFT for expanded form of equation multiplication
The trivial algorithm that multiplies every monomial in $A$ by every monomial in $B$ takes time $O(|A| \cdot |B|)$ (where $|A|$ is the number of monomials in $A$ or $\deg A + 1$, depending on the repr …