Number of complex calculations in FFT and inverse FFT

Click For Summary
SUMMARY

The discussion centers on calculating the total number of complex multiplications required for performing Fast Fourier Transforms (FFT) and Inverse Fast Fourier Transforms (IFFT) on two vectors, x1(n) and x2(n). The calculations utilize the formula N log2(N), where x1(n) results in 8 multiplications and x2(n) yields approximately 11.61. The conversation highlights the importance of zero-padding for vector length compatibility in MATLAB, as well as the implications of using FFT on non-power-of-two lengths, which complicates the calculations. The Big O notation is also discussed, emphasizing the scaling behavior of the FFT algorithm.

PREREQUISITES
  • Understanding of Fast Fourier Transform (FFT) algorithms
  • Familiarity with Inverse Fast Fourier Transform (IFFT) operations
  • Knowledge of zero-padding techniques in signal processing
  • Basic comprehension of Big O notation and algorithm complexity
NEXT STEPS
  • Study the implications of zero-padding in FFT and IFFT calculations
  • Learn about MATLAB's implementation of FFT and IFFT functions
  • Explore the concept of circular convolution in signal processing
  • Investigate the performance differences between FFT algorithms for power-of-two versus non-power-of-two data lengths
USEFUL FOR

Students and professionals in signal processing, particularly those working with FFT and IFFT algorithms, as well as MATLAB users seeking to optimize their calculations involving complex multiplications.

Jimmy Johnson
Messages
27
Reaction score
0

Homework Statement



Calculate the total number of compex multiplications required for the calculation in (b) when FFTs are used to perform the Discrete Fourier Transforms and Inverse Discrete Fourier Transforms.[/B]
There were two FFT multiplied together and one inverse FFT of that product to solve B.

x1(n) = [1, 0, −1, 1]

x2(n) = [2, 3, 2, 0, 1

Homework Equations


[/B]
Nlog2N

The Attempt at a Solution


[/B]
The vectors were padded with zeros but I'm working under the assumption that can be negated.

x1(n) = 4log24 = 8
x2(n) = 5log25 = 11.61

product of both created an 8 length vector

8log28 = 24Do I add these? The 5 one doesn't seem correct, something about it being a prime factor that doesn't hold for the equation?
 
Physics news on Phys.org
Jimmy Johnson said:

Homework Equations


[/B]
Nlog2N
Note that the FFT algorithm scales as ##O(N \log_2 N)##, not that the number of operations is exactly ##N \log_2 N## (I don't know if this is relevant to your problem, because I don't know how your teacher presented the material).

Jimmy Johnson said:
The vectors were padded with zeros but I'm working under the assumption that can be negated.
Why? What is the computer actually calculating?
Jimmy Johnson said:
The 5 one doesn't seem correct, something about it being a prime factor that doesn't hold for the equation?
You probably only learned about an algorithm that works for ##2^N## data points. Therefore an FFT on length 5 doesn't make any sense.
 
What is the O on that scale equation?

The calculation is the circular convolution of the x1(t) and x2(t) through ifft(fftx1padded)*(fftx2padded), so the padding was adding zeroes to the vector so that it was the same length and therefore achievable in matlab? after convolution a length 8 was determined and x1&2(t) are 4&5 length vectors respectively?

So would my data points actually be 2^4 and 2^5?
 
Jimmy Johnson said:
What is the O on that scale equation?
It's big O notation. It tells you how an algorithm scales when you change the size of the data. If an algorithm is of order ##O(n^2)##, then doubling the number of data points will result in about 4 times the number of operations. But it doesn't mean that it will perform exactly ##n^2## operations. The actual number of operations could be ##4 n^2 + 2 n##.

Jimmy Johnson said:
The calculation is the circular convolution of the x1(t) and x2(t) through ifft(fftx1padded)*(fftx2padded), so the padding was adding zeroes to the vector so that it was the same length and therefore achievable in matlab? after convolution a length 8 was determined and x1&2(t) are 4&5 length vectors respectively?
Why is padding necessary? What do you think MATLAB is doing with these zeros?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
8
Views
2K
Replies
26
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K