GithubHelp home page GithubHelp logo

shamazmazum / cl-polynomial Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 839 KB

Polynomial factorization over finite fields with prime number of elements or over integers

License: BSD 2-Clause "Simplified" License

Common Lisp 100.00%

cl-polynomial's Introduction

cl-polynomial

CI tests

cl-polynomial performs factorization of polynomials over integers and finite fields with prime number of elements.

For documentation visit https://shamazmazum.github.io/cl-polynomial/.

Additional reading

Here is some books and links which I found useful

cl-polynomial's People

Contributors

shamazmazum avatar

Watchers

 avatar James Cloos avatar  avatar

cl-polynomial's Issues

Quadratic Hensel lifting needs too high precision for polynomials of degree > 123

Mignotte bound $M$ for $x^{123}+1$ is $233944127258145193631070042609340645376$. If we factor in $\mathbb{F} _ 2[x]$ and lift to $\mathbb{Z}_{2^m}[x]$, we need find the smallest $l$ such that $2^{2^l} \ge M$, which is $7$ and $2^{2^7} = 340282366920938463463374607431768211456$. For $x^{124}+1$ the bound is $467888254516290387262140085218681290752$, $l = 8$. $2^{2^8} = 115792089237316195423570985008687907853269984665640564039457584007913129639936$ which seems to be very high and slows down calculations with bignums.

Maybe bring back linear lifting just for this case?

Recombination of factors is too slow

When a polynomial $f$ has only few irreducible factors in $\mathbb{Z}[x]$, but a lot of factors in a finite field $\mathbb{F}_p[x]$ which is used for factorization of $f$, the process of finding the desired factors mod p (which in coded in RECOMBINE in zx.lisp) is too slow.

The worst cases in the form $x^n-1$ are:

  • $x^{91}-1$ for $n \le 100$ has 4 factors in $\mathbb{Z}[x]$ ( $Q_1(x)Q_7(x)Q_{13}(x)Q_{91}(x)$ ) and 18 factors in $\mathbb{F}_3[x]$
  • $x^{121}-1$ for $n \le 200$ has 3 factors in $\mathbb{Z}[x]$ ( $Q_1(x)Q_{11}(x)Q_{121}(x)$ ) and 25 factors in $\mathbb{F}_3[x]$.

So some another recombination method must be implemented to deal with such "bad" polynomials.

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.