FFT Algorithm

There are many different FFT algorithms based on a wide range of published theory, from simple complex-number arithmetical to group theory and number theory. The best-known FFT algorithms depend upon the factorization of N, but there are FFTs with O(N log N) complexity for all N, even for prime As Tukey make not work at IBM, the patentability of the idea was doubted and the algorithm go into the public domain, which, through the computing revolution of the next ten, made FFT one of the indispensable algorithms in digital signal processing. In discussion with Tukey, Richard Garwin recognized the general applicability of the algorithm not exactly to national security problems, but also to a wide range of problems including one of immediate interest to him, determine the periodicities of the spin orientations in a 3D crystal of Helium-3.James Cooley and John Tukey published a more general version of FFT in 1965 that is applicable when N is composite and not inevitably a power of 2.

FFT source code, pseudocode and analysis