Why it matters
NTT gives exact + fast polynomial multiplication. Standard for competitive programming.
Advertisement
The architecture
Choose modulus p = c * 2^k + 1.
Primitive root g.
NTT: FFT with roots of unity in Z_p.
Advertisement
How it works end to end
Butterfly identical to FFT.
Modular inverse for divide by N.
Multi-modulus + CRT for larger results.