Академический Документы
Профессиональный Документы
Культура Документы
Department of Mathematics,
Princeton University,
weinan@princeton.edu
Examples
Outline
Examples
Applications
Applications
Examples
Applications
Signal processing
0.5
0.5
1.5
200
400
600
800
1000
1200
0.5
0.5
1.5
200
400
600
800
1000
1200
Examples
The FFT would give a fast algorithm to solve the system above with
computational efforts O(N 2 log2 N ).
Applications
Examples
Applications
Computing convolution (
)
Suppose
Z
f (x y)g(y)dy
h(x) =
0
Take xj = j, j = 0, 1, . . . , N 1, =
2
N
discretization
h(xi )
N
1
X
f (xi xj )g(xj )
i = 0, 1, . . . , N 1
j=0
I
N
1
X
fij gj
j=0
I
i = 0, 1, . . . , N 1
Examples
But its idea is quite simple, even for a high school student!
Applications
Examples
Outline
Examples
Applications
Applications
Examples
Applications
Fourier Transform
f (x)eikx dx.
Examples
Applications
R +
f (x y)g(y)dy.
|f (x)|2 dx =
1
2
|f(k)|2 dk.
Examples
Applications
, where
c = (c0 , c1 , , cN 1 )T = a
ck =
N
1
X
aj ejk
2i
N
k = 0, 1, . . . , N 1.
j=0
2i
N
N 1
2i
1 X
ck ejk N ,
N
j = 0, 1, . . . , N 1.
k=0
T (x) =
2
X
k= N
2
such that at xj =
2j
,
N
T (xj ) = aj ,
bk eikx .
+1
j = 0, 1, . . . , N 1. The readers
Examples
Applications
Remark on DFT
1
F =
N 1
N 1
(N 1)
N 1
= ( jk )j,k=0
Examples
Applications
Remark on DFT
1
1
F 1 = G =
N
(N 1)
(N 1)
1
= ( jk )N
j,k=0
2
(N 1)
Examples
Applications
Properties of DFT
Convolution to multiplication:
\
(f
g)k = fk gk
where
(f g)l =
N
1
X
k = 0, 1, . . . , N 1
flj gj
l = 0, 1, . . . , N 1,
j=0
Parsevals identity:
N
N
1
X
j=0
|aj |2 =
N
1
X
k=0
|ck |2
Examples
Applications
FFT idea
FFT is proposed by J.W. Cooley and J.W. Tukey in 1960s, but the idea
may be traced back to Gauss.
First consider
1
F =
1
1
the case N = 4
1
i
1
1
i
,
1
i
(a0 + a2 ) + (a1 + a3 )
(a0 a2 ) i(a1 a3 )
Fa =
(a0 + a2 ) (a1 + a3 )
(a0 a2 ) + i(a1 a3 )
Examples
FFT idea
This observation may reduce the computational effort from O(N 2 ) into
O(N log2 N )
Because
lim
log2 N
=0
N
Applications
Examples
Applications
Construction of FFT
(a0 + a2 x2 + ) + x(a1 + a3 x2 + )
where
N
pe (t) = a0 + a2 t + . . . + aN 2 t 2 1 , po (t) = a1 + a3 t + . . . + aN 1 t 2 1
I
2i
2j
j
2j
cj
= pe (N
) + N
po (N
)
cN
+j
2
2( N
+j)
2
= pe (N
) + N2
+j
2( N
+j)
2
po (N
N
2
Examples
Applications
Construction of FFT
2j
N
= jN , N2
+j
j
N +2j
= N
, N
= jN
2
then
j
j
cj = vj + N
uj , cj+ N = vj N
uj
j = 0, 1, ...,
N
1
2
where
vj = pe ( jN ), uj = po ( jN )
2
The formula above show that the DFT of N components vector a could
be converted to compute the DFT of two
N
2
components vectors ae , ao
Examples
Applications
A simple example: N = 8
Step 1
ae = (a0 , a2 , a4 , a6 )T ,
Step 2
aee = (a0 , a4 )T ,
T
aoe = (a1 , a5 ) ,
I
ao = (a1 , a3 , a5 , a7 )T ;
aeo = (a2 , a6 )T ,
aoo = (a3 , a7 )T ;
Step 3
aeee
a0
aeeo
a4
aeoe
a2
aeoo
a6
aoee
a1
aoeo
a5
aooe
a3
aooo
a7
Examples
Applications
A simple example: N = 8
Step B: Combination:
I
Step 1
T
cee = (a0 + 20 a4 , a0 20 a4 ) ,
T
ceo = (a2 + 20 a6 , a2 20 a6 ) ,
T
coe = (a1 + 20 a5 , a1 20 a5 ) ,
T
coo = (a3 + 20 a7 , a3 20 a7 ) ,
I
Examples
Applications
A simple example: N = 8
Step B: Combination:
I
Step 2
ce =
"
#
cee + w4 ceo
cee w4 ceo
co =
"
#
coe + w4 coo
coe w4 coo
Step 3
c=
"
#
ce + w8 c0
ce w8 c0
Examples
Applications
a0
a4
a2
cee
" #
c
a
a1
co
ceo
coo
a5
a3
a7
Examples
Applications
0002 = 0
1= 0012
1002 = 4
2= 0102
0102 = 2
3 = 0112
Bit
reversal
1102 = 6
4 = 1002
0012 = 1
5 = 1012
1012 = 5
6 = 1102
0112 = 3
7 = 1112
1112 = 7
Examples
Outline
Examples
Applications
Applications
Examples
N
1
X
fij gj
i = 0, 1, . . . , N 1
j=0
thus
= ( f g
)
h = (h)
3
N
2
Applications
Examples
Applications
Let
c0
cN 1
c1
L=
c1
c0
cN 1
cN 2
c2
c0
We have
(Lx)i =
N
1
X
cij xj
j=0
Examples
Applications
The eigenvectors
j(k) = kj , (j, k = 0, 1, . . . , N 1)
x
where kj is Kroneckers .
(N 1)
= (1,
(N 1)
, . . . , (N 1) )T
Examples
Applications
Spectral decomposition of L
= (x
(0)
(1)
(N 1)
(0) (1)
(x x x(N 1) )1
1
..
.
N 1
= (N F
I
) (N F
1 1
=F
Examples
Homework assignment
sin(x y)ecos y dy
h(x) =
0
Applications