Fast number theory Transformation (NTT)--study notes

Source: Internet
Author: User
NTT

Aw, it's simple.

The FFT F-F-T FFT can be accelerated due to the good nature of having the primary n units root wn=e2πin w n = e 2πi n w_n=e^{\frac{2\pi i}{n}}. In the natural number field, modulo p p p, the WN w n w_n can be replaced with gp−1n g p−1 n G^{\frac{p-1}{n}}, G G g is the root of P p p, it can be found that those properties are similar. The inverse transformation also converts gp−1n g p−1 n G^{\frac{p-1}{n}} to g−p−1n g−p−1 n g^{-\frac{p-1}{n}, and then divides the last by N n N.

To be able to NTT, it is necessary to satisfy the modulus P p p is prime and p−1 p−1 P-1 is a multiple of n n N (2 recurses). So p p p should generally be

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.