skipyoutube
Library

Search or browse

Veritasium en españolEl Algoritmo Más Importante De Todos Los Tiempos

The Most Important Algorithm of All Time: How the Fast Fourier Transform Shaped History

Beyond its role in modern digital life, the Fast Fourier Transform was a tool born of the Cold War's desperate need to monitor clandestine nuclear tests.

A Missed Opportunity for Peace

It is a common historical assumption that the nuclear arms race was an inevitable consequence of the Second World War. However, in the late 1940s and 50s, there were genuine, high-level attempts to prevent the proliferation of atomic weaponry. The United States proposed the Baruch Plan, which offered to dismantle its nuclear arsenal if an international body controlled all radioactive materials. While the Soviet Union rejected this as a ploy for American dominance, the door to a test ban remained cracked open for years. By 1958, world leaders met in Geneva to negotiate a total cessation of nuclear testing, even halting all detonations for a full year to show good faith.

The negotiations ultimately foundered on a single technical hurdle: verification. While atmospheric and underwater tests were easy to detect via radioactive isotopes and hydrophones, underground tests were nearly impossible to distinguish from natural seismic activity from a distance. The Soviets refused on-site inspections, viewing them as espionage, and the Americans refused to sign a treaty they couldn't enforce. This impasse led to the Partial Test Ban Treaty of 1963, which allowed underground testing to continue. Consequently, the arms race didn't stop; it simply moved beneath the earth, leading to the creation of over 70,000 nuclear warheads by the 1980s.

The Mathematical Key to the Underground

To identify a clandestine nuclear test, scientists needed to look deep within the 'scribbles' of a seismometer. They knew that the signature of a bomb was hidden in the signal's frequency, but reading that information required a Fourier Transform—a mathematical process that decomposes a complex wave into its individual sine and cosine components. By analyzing these frequencies, researchers could theoretically determine the size and depth of an explosion, distinguishing it from the slower, more complex vibrations of an earthquake.

The problem was not the math, but the sheer volume of data. Real-world seismic signals are 'discrete'—they consist of individual data points rather than a continuous curve. To process a signal with a million samples using the standard Discrete Fourier Transform (DFT), a 1960s computer would have required over three years of continuous calculation for a single event. With hundreds of seismic events occurring daily, the math was simply too slow to be useful for national security. The world needed a shortcut.

The Birth of the Fast Fourier Transform

The breakthrough arrived in 1963 during a meeting of the President’s Science Advisory Committee. While the committee discussed the Apollo program, mathematician John Tukey was doodling a way to exploit the symmetries in periodic waves. He realized that because sine and cosine waves repeat in predictable patterns, many of the multiplications in a Fourier Transform are redundant. By breaking a large set of data into smaller and smaller subsets—even and odd indices—one could reuse previous calculations to find the final result.

This insight became the Fast Fourier Transform (FFT). It shifted the computational burden from a scale of n-squared to n-log-n. For a million data points, this wasn't just a minor improvement; it was a 50,000-fold increase in speed. A calculation that would have taken three years could now be completed in 35 minutes. Physicist Richard Garwin, recognizing the implications for nuclear monitoring, tasked IBM researcher James Cooley to program the algorithm under the guise of crystal research. By the time they published their work in 1965, the FFT had changed the world of computing forever.

The Ghost of Gauss

In a tragic twist of mathematical history, the FFT had actually been discovered 160 years earlier. In 1805, Carl Friedrich Gauss developed the exact same algorithm to calculate the orbits of asteroids. However, Gauss never published the method, perhaps viewing it as a mere labor-saving tool rather than a fundamental breakthrough. It remained buried in his notes, written in archaic Latin, only to be discovered long after his death.

Had Gauss’s shortcut been common knowledge in 1960, the technical barrier to a comprehensive nuclear test ban might have vanished. Scientists would have had the tools to prove they could monitor Soviet activity from afar, potentially removing the primary excuse for continuing underground tests. Instead, the world spent trillions of dollars on an arsenal that could end civilization, all for want of an algorithm that was sitting in a dead man's notebook.

The Engine of the Digital Age

Today, the FFT is the most important numerical algorithm in existence. It is the reason we can stream high-definition video and store thousands of photos on a phone. Digital compression works by using the FFT to identify which frequencies in an image or audio file are most important; by discarding the nearly-zero values (the high-frequency noise), we can reduce a file to 1% of its original size without a noticeable loss in quality.

From MRI machines and radar to the 5G and Wi-Fi signals currently transmitting this data, the FFT is everywhere. It is a testament to the power of a single mathematical insight: that by finding a more efficient way to process information, we don't just change how we calculate—we change the limits of what is possible in science, war, and daily life.

Examples from the library

Try one of these

Example queries appear here for new visitors. Returning readers can see recent queries.