Is this FFT algorithm known?
Imported on
The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem statement
Recently I've been thinking about alternatives to the usual Cooley-Tukey FFT for multiplying polynomials. I think I've come up with a pretty nifty algorithm for multiplying polynomials. So my question is, does anyone know if this FFT algorithm has name? Or is it new algorithm?
My algorithm calculates the product of two polynomials and in time, assuming is a power of two, and is a non-zero complex number.
Part 1. Main idea:
Suppose you know some polynomial , where is a non-negative integer, and is a complex number. Let and . I think of and as two different "folds" of . Note that this folding operation is invertible. From knowing and you can "unfold" them into by using the sum of the folds, and the difference of the folds.
import cmath
def fold(P, w):
nhalf = len(P)//2
return [P[i] + w * P[i + nhalf] for i in range(nhalf)]
def unfold(P1, P2, w):
return [(p1 + p2)/2 for p1, p2 in zip(P1, P2)] + \
[(p1 - p2)/(2 * w) for p1, p2 in zip(P1, P2)]
# Dummy identity function
def fold_and_unfold(P, w):
sqrtw = cmath.sqrt(w)
P1 = fold(P, sqrtw)
P2 = fold(P, -sqrtw)
return unfold(P1, P2, sqrtw)
print(fold_and_unfold([1,2,3,4], 1j + 100)) # This prints [1,2,3,4]
Part 2. Polynomial multiplication algorithm:
The key insight here is that if you want to efficiently multiply two polynomials and , then you can start by repeatedly folding and , then multiply their folded representations, and then unfold the result.
def multiply(P, Q, w):
"""
O(n log n) polynomial multiplication algorithm
Input:
Polynomial P and Q of length n, n must be a power of 2
w any non-zero complex number
Output:
Polynomial R = P * Q mod x^n - w
R has length n
"""
if len(P) == 1:
return [P[0] * Q[0]]
sqrtw = cmath.sqrt(w)
P1 = fold(P, sqrtw)
P2 = fold(P, -sqrtw)
Q1 = fold(Q, sqrtw)
Q2 = fold(Q, -sqrtw)
R1 = multiply(P1, Q1, sqrtw)
R2 = multiply(P2, Q2, -sqrtw)
return unfold(R1, R2, sqrtw)
# This prints[3, 10, 22, 40, 43, 38, 24]
print(multiply([1,2,3,4,0,0,0,0], [3,4,5,6,0,0,0,0], 1j + 100))
This algorithm is similar to Cooley-Tukey FFT based polynomial multiplication algorithms, and it uses exactly the same number of complex multiplications.
But there are some key difference. My algorithm works for any non-zero complex . Also, during the folding operations stays constant. This is very different to Cooley-Tukey FFT where nothing stays constant.
Statement and context adapted from MathOverflow · Görre Mörre
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
Sources and original status
- MathOverflow Status in source : unanswered at collection
Last activity on the question :
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)