Giter VIP home page Giter VIP logo

aks_berrizbeitia_flint_cxx's Introduction

AKS_Berrizbeitia_FLINT_CXX

#Update 1 2014 July 29th Some serious BUGs are fixed. STL set is no longer necessary

Well...This is the first version of my implementation of the Berrizbeitia improved version of AKS Algorithm.

I finished the part of n=4k+1, and the another part is under coding.

This program is completely based on Bill Hart's FLINT, which can be found at http://www.flintlib.org

I used to write it in pure C, but I finally find it hard to generate a Set in C. So I turn to C++. The set in STL is used.

#Some details are here:

##1.I modified some polynomials in the algorithm to make the program faster. In my code, it is called poly2. It's not difficult to see that (1 + m*x)^n=1 + m*(a^[n / 2^s] mod n)*x^[n % 2^s]  (mod x^2^s-a, n) . This arrangement transfers the calculation of the mod of polys to the powermods of some "small" number. And it extends the max virtual value (MVV) of this implementation, for fmpz_mod_poly_set_coeff_fmpz only receive a ulong type for its second parameter.

##2.The exact MVV is hard to evaluate, but if is believed that the MVV is bigger than 2^31 bit. It's enough for using.

##3.Test is needed. I think there may be some BUGs are in this code. If someone find some thing wrong here, I'm glad to hear from you.

Yijun Yuan 2014 July 21th

aks_berrizbeitia_flint_cxx's People

Contributors

yijunyuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.