The Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever?
In this video, we take a look at one of the most beautiful algorithms ever created: the Fast Fourier Transform (FFT). This is a tricky algorithm to understand so we take a look at it in a context that we are all familiar with: polynomial multiplication. You will see how the core ideas of the FFT can be “discovered“ through asking the right questions. The key insights that are presented in this video is that polynomial multiplication can be improved significantly by multiplying polynomials in a special value representation. The challenge that presents itself is the problem of converting a polynomial from a standard coefficient representation to value representation.
We see that the FFT is an incredibly efficient recursive algorithm that performs this task, and we also discover that a slightly tweaked FFT (Inverse FFT) can also solve the reverse problem of interpolation. If this video doesn’t blow your mind, I don’t know what will.
0:00 Introduction
2:19 Polynomial Multiplication
3:36 Polynomial Representation
6:06 Value Representation Advantages
7:07 Polynomial Multiplication Flowchart
8:04 Polynomial Evaluation
13:49 Which Evaluation Points?
16:30 Why Nth Roots of Unity?
18:28 FFT Implementation
22:47 Interpolation and Inverse FFT
26:49 Recap
Also a subtle mistake that a commenter made me aware of -- at 26:40 instead of replacing w with (1/n * e^{-2 * pi i/ n}), the actual right way to do this is by taking the final output of the IFFT at the end of the recursion and dividing by n.
So the full change is w = e^{-2 pi i / n}
And then somewhere outside the scope of the IFFT function ifft_result = 1/n * IFFT(values)
The treatment of the FFT in this video is inspired by several well known references, mainly Introduction to Algorithms (Cormen et al.) and Algorithms (Papadimitriou et al.).
Support:
This video wouldn’t be possible without the open source manim library created by 3blue1brown:
Here is link to the repository that contains the code used to generate the animations in this video:
Elegant proof that the matrix used in the proof that (d 1) points uniquely define a degree d polynomial is invertible:
Music:
Lift Motif by Kevin MacLeod is licensed under a Creative Commons Attribution license ()
Source:
Artist:
All other music by Aakash Gandhi
SVG Attributions:
Earth: Designed by Flat Icons from , CC BY 4.0 , via Wikimedia Commons
GPS: Icons made by from
Wireless Comms: Design inspired by
1 view
123
34
4 months ago 00:00:47 1
String Quarcat no.4 (Cotton)
4 months ago 00:05:34 1
Auto volt convert #220v ac to 3v,6v,12v,24v,36v,48v,68v,98v,110v,120v. DC Led driver
4 months ago 01:11:11 1
Archangel Metatron Maximum Manifestation Frequency | 963 Hz | Activate Blessings
4 months ago 00:12:35 1
DIY Bag Making from Cloth at Home JEANS REUSE IDEA EASY
4 months ago 00:02:38 1
Outdoor Running vs Treadmill: The Benefits You’re Missing Out On
4 months ago 00:01:43 1
Naruto Live Action (2024) New Trailer - Shueisha “Concept“
4 months ago 00:14:23 1
Snoop Dogg, Eminem, Dr. Dre - Fly High ft. DMX, Ice Cube, WC, Xzibit, B-Real, Method Man | 2023
4 months ago 00:03:27 1
The Kiffness x Spaul x Oh Long Johnson 2.0 - Hold Onto My Fur (Talking Cat Song)
4 months ago 00:00:00 1
Первая лига AFL на призы ПМФК “Сибиряк“, Форсаж - Марсель
4 months ago 00:00:24 1
[edit] Uh Oh 💛 ScaraLumi | Wanderer & Lumine
4 months ago 00:03:51 1
Joy - Touch By Touch 💥💃🎆 shuffle dance mix
4 months ago 00:07:08 1
THIS Dropshipping Supplier is BETTER than Ali Express
4 months ago 00:00:40 1
Oh Shit - The Fast and The Furious: Tokyo Drift Edit | af1 (slowed and reverbed)#shorts
4 months ago 00:03:57 1
Have You Ever Seen The Rain - Music Travel Love (CCR Cover)
4 months ago 00:08:46 1
All Chinese Pinyin Finals | Chinese Pronunciation Tutorial
4 months ago 00:00:51 1
In this video, I unveil the BEST anti-inflammatory food that’ll have you feeling unstoppable
4 months ago 00:43:57 1
Karate workout: kicking drills
4 months ago 00:00:56 1
Ghostrunner - Official Cinematic Trailer
4 months ago 00:52:18 1
Послушайте эту музыку и вам станет легче🌿Нежная музыка,успокаивает нервную систему и радует душу
4 months ago 00:05:42 1
Gratitude (Chosen Performance) - Brandon Lake
4 months ago 00:14:41 1
My FAVORITE Acrylic Pouring Techniques Using Just Paint and Water!