Escolar Documentos
Profissional Documentos
Cultura Documentos
Exercise 2
Problem 3.8
Calculate the DFT of the data sequence {0, 1, 1, 0} and check the validity of your answer
by calculating its IDFT.
Solution
N 1
X (0) = 0 + 1 + 1 + 0 = 2.
X (1) = 0 + e j 2 / 4 + e j 4 / 4 + 0 = j 1.
X (2) = 0 + e j 4 / 4 + e j 8 / 4 + 0 = 0.
X (3) = 0 + e j 6 / 4 + e j12 / 4 + 0 = j 1.
IDFT: x(n) =
1 N 1
X (k ) e j 2nk / N , n = 0,1,2,...N 1.
N k =0
x(0) = (2 j 1 + 0 + j 1) / 4 = 0.
x(1) = (2 + ( j 1)e j 2 / 4 + 0 + ( j 1)e j 6 / 4 ) / 4 = 1.
x(2) = (2 + ( j 1)e j 4 / 4 + 0 + ( j 1)e j12 / 4 ) / 4 = 1.
x(3) = (2 + ( j 1)e j 6 / 4 + 0 + ( j 1)e j18 / 4 ) / 4 = 0.
Problem 3.15
Calculate the DFT of the date sequence {0, 1, 1, 0} using the decimation-in-time FFT
algorithm. Check the answer with that of Problem 3.8. Compare the numbers of complex
additions and multiplications in the two methods.
Solution
x0 = 0
X 21 (0)
X 11 (0)
X 21 (1)
X 11 (1)
W20
x2 = 1
W40
x1 = 1
X 22 (0)
W20
x3 = 0
X 11 (2)
W41
X 22 (1)
X 11 (3)
1/3
Stage 1
X 21 (0) = x0 + W20 x 2 = x0 + x2 = 1.
X 21 (1) = x0 W20 x2 = x0 x2 = 1.
X 22 (0) = x1 + W20 x3 = x1 + x3 = 1.
X 22 (1) = x1 W20 x3 = x1 x3 = 1.
Complex additions
Complex multiplications
Problem 3.17
Calculate the FFT of the data sequence {0, 0, 1, 1, 1, 1, 0, 0}.
Solution
x0 = 0
x4 = 1
0
2
0
2
0
2
x3 = 1
x7 = 0
X 1 ( 0)
X 21 (1)
X 11 (1)
X 1 (1)
X 22 (0)
W40
X 11 (2)
X 1 ( 2)
X 22 (1)
W41
X 11 (3)
X 1 (3)
x1 = 0
x5 = 1
X 11 (0)
x2 = 1
x6 = 0
X 21 (0)
0
2
X 23 (0)
X 12 (0)
W80
X 1 ( 4)
X 23 (1)
X 12 (1)
W81
X 1 (5)
X 24 (0)
W40
X 12 (2)
W82
X 1 ( 6)
X 24 (1)
W41
X 12 (3)
W83
X 1 (7 )
2/3
Stage 1
X 21 (0) = x0 + W20 x 4 = x0 + x4 = 1.
X 21 (1) = x0 W20 x 4 = x0 x4 = 1.
X 22 (0) = x 2 + W20 x6 = x 2 + x6 = 1.
X 22 (1) = x2 W20 x6 = x2 x6 = 1.
X 23 (0) = x1 + W20 x5 = x1 + x5 = 1.
X 23 (1) = x1 W20 x5 = x1 x5 = 1.
X 24 (0) = x3 + W20 x7 = x3 + x7 = 1.
X 24 (1) = x3 W20 x7 = x3 x7 = 1.
Stage 2
X 11 (0) = X 21 (0) + W40 X 22 (0) = X 21 (0) + X 22 (0) = 2.
3/3