Square Dance FFT · ALG 17.1–17.3

FFT evaluates a polynomial P of size n at the n points ω0, …, ωn−1, where ω is a primitive n-th root of unity. It splits P(x) = Ps(x2) + x·Pℓ(x2) and recurses. Explore why this works below, then test yourself in the game.

1. Why roots of unity? Square the points.

2. The graph of a polynomial (ALG 17.1)

Drag the orange points up and down.

3. The game

time –
score 0
streak 0
best sprint 0

Questions mix all three ideas: where points go when squared, the split into Ps and Pℓ, and the FFT "butterfly" yj = sj ± ωj·ℓj. A butterfly is worth 2 points. Keys: 1–4 pick an answer, Enter = next.

Fun fact: Gauss used this divide-and-conquer trick around 1805 to interpolate asteroid orbits. It was published only after his death, and the method became famous when Cooley and Tukey rediscovered it in 1965.

← ADS2 Arcade