The FFT is Fifty
Numeric Insight, Inc

The FFT is Fifty

Their 1965 paper starts with the unassuming words "An efficient method for the calculation of the interactions of a 2^m factorial experiment was introduced by Yates and is widely known by his name." The paper does not use the word "fast" even once. But the algorithm described in that paper written by James Cooley and John Tukey[1] came to be known as the Fast Fourier Transform (FFT), and turned out to be just what the world was waiting for. Overnight, in universities and laboratories around the world, scientists and engineers began writing code and building hardware to implement the FFT. Fifty years later, versions of that algorithm are routinely used, often tacitly assumed to be available to programmers. Any computation that requires (either as an end, or as an intermediate step) the unraveling of the frequency content of information carrying signals benefits from the enormous speedup offered by the FFT. Other than the speedup, the FFT does not offer any computational result that was not available before its discovery. However, were it not for this amazing algorithm, it would be practically impossible to filter cell-phone signals, to compress movie files, do spectroscopy, take magnetic resonance imaging scans, perform quantum computing, and solve differential equations, among other things. The Cooley-Tukey paper created a surge in products that suddenly became possible, and often even became practical to operate in real-time.

Although the idea behind FFT can be explained without using complex math (it involves complex numbers, so I guess that does make the math complex), no attempt to do so will be made here. Suffice it to say that the algorithm belongs to a class of mathematical calculations that can either be performed in a straightforward manner, or can be solved by dividing the calculations into smaller steps. Cooley and Tukey showed how the dividing could be done in a manner such that the total effort needed to compute the simpler steps is much less than the effort that would be needed to tackle the computation without such division. There is a wealth of deep mathematics underlying the FFT algorithm. But let us remember that John Tukey, ever the pragmatic engineer, is said to have declared “I wouldn’t want to fly in a plane whose design depended on whether a function was Riemann or Lebesgue integrable.”

For signals with a million samples, the gain in speed obtained by virtue of the magic of FFT can be upwards of 50,000. To appreciate this speedup ratio, consider some calculation that takes 1 second to complete on your computer. To most of us, this would seem sluggish. In today's world we expect our devices to be instantly responsive, but we might tolerate such slowness once in a while, say when we are applying some fancy effects to produce an irresistible cat video. Now, imagine that same computation being 50,000 times slower i.e. taking almost 14 hours to execute.

For decades, the FFT algorithm and its direct variants have ruled the world of signal processing. It is only recently that researchers[2]  at MIT came up with an algorithm which takes advantage of a special property of real-life signals (sparsity) to achieve significantly faster performance. Although the speedup achieved (relative to the FFT, not relative to the straightforward computation) is not as spectacular, it is still useful in many practical applications. For example, it has the potential to reduce the time patients spend inside a MRI machine from an agonizing one hour to a bearable 20 minutes. There are many other applications where increased efficiency of computing the spectrum leads to other benefits such as longer battery life.

My introduction to the FFT came via a classic textbook, Athanasios Papoulis's Signal Analysis. In graduate school, I remember scribbling pages after pages of formulas as I worked to absorb the concept. When it all fell into place, the feeling was as exhilarating as though I had personally come up with the algorithm myself. Wonderful applications suggested themselves, and it seemed that the world could be saved by my new found understanding of the FFT.

I was to be humbled because I was soon introduced to an application made possible by the FFT. Transmultiplexers are computational devices that allow a single wire (or radio channel) to simultaneously transmit thousands of speech signals in a way that allows them to be separated by individual receivers. Remarkably, FFT figures into the calculations needed to pull off this feat. Unlike common applications I had encountered at that time where the input to the FFT is a sequence of samples of a single signal as it is generated in time, in the transmultiplexer calculations, the input to the FFT at each time step is the sequence formed by gathering samples of several independent speech signals at a given instant of time. It amazed me that you could, in a manner of speaking, meaningfully combine and take apart independent words uttered by a crowd at a given time instant. Now this is one application I could not have come up with.

I know that many engineers and scientists have their own personal story of their first encounter with the FFT. Well, we are nerds are we not? Can we share?

------------

[1] Cooley, James W.; Tukey, John W. (1965). "An algorithm for the machine calculation of complex Fourier series". Mathematics of Computation, 19: 297–301.

[2] Haitham Hassanieh, Piotr Indyk, Dina Katabi, Eric Price. (2012). "Simple and Practical Algorithm for Sparse Fourier Transform". ACM-SIAM Symposium on Discrete Algorithms, Kyoto Japan

------------------

Shashi Sathyanarayana Ph.D, the founder of Numeric Insight, Inc has several decades of expertise in scientific programming, algorithm development and teaching. He is an active developer of products and creates highly efficient and effective algorithms. He enjoys creating technical vision and actively engages in understanding customer needs. Although frequently called upon to work on complex algorithms, he believes in the value of keeping it basic; he recognizes the universal customer need for intuitiveness and simplicity in a product.

 

 

Angelita V. R.

Senior Engineer at PsiQuantum

6 年

Interesting. I have used the Yates algorithm to calculate the coefficients representing the main effects and interactions in a full factorial design of experiments. I'v got to read that 1965 paper!

回复
John Sevic

Associate Professor of Electrical Engineering at Embry-Riddle Aeronautical University

9 年

Reminds me of QA and TK, and rolls of dimes.

回复
Dr Bob Gough

Founder and CEO of Carrick Communications Pty Ltd | All about satellite communications systems since 1990

9 年

Shashi, that's brilliant! I love it. But probably I am he :-) Folks interested in this field should definitely read your blog posts => https://www.numericinsight.blogspot.com.au/ Cheers, Bob The Dinosaur

回复
John Spriggs

Independent Author and Speaker | Editor | Retired Safety Assurance Professional

9 年

I remember reading the original paper in a University library as an undergraduate; of course it was not considered a historical reference then ;o)

回复
Shashi Sathyanarayana, Ph.D

Founder and CEO, Numeric Insight, Inc | Practical and exceptional number crunching, and scientific programming

9 年

Oops! Here is an important clarification! My reply to Jeff Limon contains a reference to Bob the Dinosaur. This has nothing to do whatsoever with another contributor to this thread, Dr Bob Gough. To figure out what the rather nerdy reference to Bob the Dinosaur is all about, please see the Wikipedia page on Trellis Code Modulation. Look at the section titled In Popular Culture.

回复

要查看或添加评论,请登录

Shashi Sathyanarayana, Ph.D的更多文章

  • Am I crazy

    Am I crazy

    to start teaching my class Introduction to Machine Learning, with the above slide? Also, am I crazy to use the above…

    4 条评论
  • The "Hello World" of machine learning, the MNIST database turns 20

    The "Hello World" of machine learning, the MNIST database turns 20

    Let's not quibble about getting the exact date of this anniversary correct. I was compelled to write because the…

    5 条评论
  • LinkedIn dutifully sent out an "Anniversary prompt"

    LinkedIn dutifully sent out an "Anniversary prompt"

    LinkedIn dutifully sent out an “Anniversary prompt” to hundreds of my connections over the last few weeks. It also…

    2 条评论
  • What is different about Big Data?

    What is different about Big Data?

    What is different about Big Data? Other than that it is, er, big? This is a question that I am frequently asked, most…

    1 条评论

社区洞察

其他会员也浏览了