亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lzz_pxfactoring.txt

?? 一個比較通用的大數(shù)運(yùn)算庫
?? TXT
字號:

/**************************************************************************\

MODULE: zz_pXFactoring

SUMMARY:

Routines are provided for factorization of polynomials over zz_p, as
well as routines for related problems such as testing irreducibility
and constructing irreducible polynomials of given degree.

\**************************************************************************/

#include "zz_pX.h"
#include "pair_zz_pX_long.h"


void SquareFreeDecomp(vec_pair_zz_pX_long& u, const zz_pX& f);
vec_pair_zz_pX_long SquareFreeDecomp(const zz_pX& f);

// Performs square-free decomposition.  f must be monic.  If f =
// prod_i g_i^i, then u is set to a lest of pairs (g_i, i).  The list
// is is increasing order of i, with trivial terms (i.e., g_i = 1)
// deleted.


void FindRoots(vec_zz_p& x, const zz_pX& f);
vec_zz_p FindRoots(const zz_pX& f);

// f is monic, and has deg(f) distinct roots.  returns the list of
// roots

void FindRoot(zz_p& root, const zz_pX& f);
zz_p FindRoot(const zz_pX& f);

// finds a single root of f.  assumes that f is monic and splits into
// distinct linear factors


void SFBerlekamp(vec_zz_pX& factors, const zz_pX& f, long verbose=0);
vec_zz_pX  SFBerlekamp(const zz_pX& f, long verbose=0);

// Assumes f is square-free and monic.  returns list of factors of f.
// Uses "Berlekamp" approach, as described in detail in [Shoup,
// J. Symbolic Comp. 20:363-397, 1995].

void berlekamp(vec_pair_zz_pX_long& factors, const zz_pX& f, 
               long verbose=0);
vec_pair_zz_pX_long berlekamp(const zz_pX& f, long verbose=0);

// returns a list of factors, with multiplicities.  f must be monic.
// Calls SFBerlekamp.



void NewDDF(vec_pair_zz_pX_long& factors, const zz_pX& f, const zz_pX& h,
         long verbose=0);

vec_pair_zz_pX_long NewDDF(const zz_pX& f, const zz_pX& h,
         long verbose=0);

// This computes a distinct-degree factorization.  The input must be
// monic and square-free.  factors is set to a list of pairs (g, d),
// where g is the product of all irreducible factors of f of degree d.
// Only nontrivial pairs (i.e., g != 1) are included.  The polynomial
// h is assumed to be equal to X^p mod f.  This routine implements the
// baby step/giant step algorithm of [Kaltofen and Shoup, STOC 1995],
// further described in [Shoup, J. Symbolic Comp. 20:363-397, 1995].

void EDF(vec_zz_pX& factors, const zz_pX& f, const zz_pX& h,
         long d, long verbose=0);

vec_zz_pX EDF(const zz_pX& f, const zz_pX& h,
         long d, long verbose=0);

// Performs equal-degree factorization.  f is monic, square-free, and
// all irreducible factors have same degree.  h = X^p mod f.  d =
// degree of irreducible factors of f.  This routine implements the
// algorithm of [von zur Gathen and Shoup, Computational Complexity
// 2:187-224, 1992]


void RootEDF(vec_zz_pX& factors, const zz_pX& f, long verbose=0);
vec_zz_pX RootEDF(const zz_pX& f, long verbose=0);

// EDF for d==1

void SFCanZass(vec_zz_pX& factors, const zz_pX& f, long verbose=0);
vec_zz_pX SFCanZass(const zz_pX& f, long verbose=0);

// Assumes f is monic and square-free.  returns list of factors of f.
// Uses "Cantor/Zassenhaus" approach, using the routines NewDDF and
// EDF above.


void CanZass(vec_pair_zz_pX_long& factors, const zz_pX& f, 
             long verbose=0);
vec_pair_zz_pX_long CanZass(const zz_pX& f, long verbose=0);


// returns a list of factors, with multiplicities.  f must be monic.
// Calls SquareFreeDecomp and SFCanZass.


void mul(zz_pX& f, const vec_pair_zz_pX_long& v);
zz_pX mul(const vec_pair_zz_pX_long& v);


// multiplies polynomials, with multiplicities

/**************************************************************************\

                            Irreducible Polynomials

\**************************************************************************/

long ProbIrredTest(const zz_pX& f, long iter=1);

// performs a fast, probabilistic irreduciblity test.  The test can
// err only if f is reducible, and the error probability is bounded by
// p^{-iter}.  This implements an algorithm from [Shoup, J. Symbolic
// Comp. 17:371-391, 1994].


long DetIrredTest(const zz_pX& f);

// performs a recursive deterministic irreducibility test.  Fast in
// the worst-case (when input is irreducible).  This implements an
// algorithm from [Shoup, J. Symbolic Comp. 17:371-391, 1994].

long IterIrredTest(const zz_pX& f);

// performs an iterative deterministic irreducibility test, based on
// DDF.  Fast on average (when f has a small factor).

void BuildIrred(zz_pX& f, long n);
zz_pX BuildIrred_zz_pX(long n);

// Build a monic irreducible poly of degree n.

void BuildRandomIrred(zz_pX& f, const zz_pX& g);
zz_pX BuildRandomIrred(const zz_pX& g);

// g is a monic irreducible polynomial.  Constructs a random monic
// irreducible polynomial f of the same degree.

long ComputeDegree(const zz_pX& h, const zz_pXModulus& F);

// f is assumed to be an "equal degree" polynomial.  h = X^p mod f.
// The common degree of the irreducible factors of f is computed This
// routine is useful in counting points on elliptic curves

long ProbComputeDegree(const zz_pX& h, const zz_pXModulus& F);

// same as above, but uses a slightly faster probabilistic algorithm.
// The return value may be 0 or may be too big, but for large p
// (relative to n), this happens with very low probability.

void TraceMap(zz_pX& w, const zz_pX& a, long d, const zz_pXModulus& F,
              const zz_pX& h);

zz_pX TraceMap(const zz_pX& a, long d, const zz_pXModulus& F,
              const zz_pX& h);

// w = a+a^q+...+^{q^{d-1}} mod f; it is assumed that d >= 0, and h =
// X^q mod f, q a power of p.  This routine implements an algorithm
// from [von zur Gathen and Shoup, Computational Complexity 2:187-224,
// 1992]

void PowerCompose(zz_pX& w, const zz_pX& h, long d, const zz_pXModulus& F);
zz_pX PowerCompose(const zz_pX& h, long d, const zz_pXModulus& F);


// w = X^{q^d} mod f; it is assumed that d >= 0, and h = X^q mod f, q
// a power of p.  This routine implements an algorithm from [von zur
// Gathen and Shoup, Computational Complexity 2:187-224, 1992]

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美一区二区在线观看| 成人av在线网| 91美女精品福利| 日韩精品一区国产麻豆| 亚洲综合色丁香婷婷六月图片| 久久av资源网| 4438成人网| 亚洲午夜免费电影| www.日本不卡| 国产亚洲欧美激情| 麻豆中文一区二区| 欧美猛男男办公室激情| 亚洲色图欧美在线| 国产iv一区二区三区| 欧美va日韩va| 久久se精品一区二区| 在线成人午夜影院| 亚洲国产综合视频在线观看| 99热这里都是精品| 中文字幕不卡的av| 国产精品456| 国产偷国产偷精品高清尤物| 狠狠狠色丁香婷婷综合激情| 日韩精品一区在线观看| 日韩va亚洲va欧美va久久| 欧美日韩黄色一区二区| 悠悠色在线精品| 色综合久久久久久久| 日韩毛片高清在线播放| 91在线精品秘密一区二区| 中文字幕一区二区三区不卡| 成人激情免费视频| 亚洲女同一区二区| 色综合中文字幕国产 | 久久综合狠狠综合久久综合88| 亚洲午夜一区二区| 欧美丰满一区二区免费视频| 亚洲成人免费视频| 日韩欧美一区二区久久婷婷| 青青草成人在线观看| 精品少妇一区二区| 国产一区二区免费看| 国产欧美精品一区二区色综合朱莉| 国产在线精品不卡| 欧美国产丝袜视频| 91在线精品一区二区三区| 亚洲一区二区在线播放相泽| 欧美日韩综合不卡| 麻豆视频一区二区| 日本一区二区三级电影在线观看 | 国产日产亚洲精品系列| 国产jizzjizz一区二区| 一区二区三区在线观看国产| 欧美在线观看你懂的| 奇米一区二区三区av| 久久久久久免费毛片精品| 成人免费视频视频在线观看免费| 综合久久久久综合| 91精品国产综合久久香蕉的特点| 狠狠色狠狠色合久久伊人| 一区免费观看视频| 制服.丝袜.亚洲.另类.中文| 国产麻豆精品theporn| 亚洲精品中文在线影院| 欧美成人a视频| 99久久免费视频.com| 视频一区欧美精品| 国产精品乱人伦中文| 欧美一区日本一区韩国一区| 国产成人精品亚洲午夜麻豆| 亚洲在线观看免费| 26uuu亚洲综合色| 色成年激情久久综合| 久久精品理论片| 亚洲在线中文字幕| 国产精品色哟哟网站| 欧美一区二区三区人| 91丨porny丨最新| 精品一区二区三区免费播放| 一区二区视频在线看| 国产亚洲精品aa| 在线观看日韩精品| 大胆欧美人体老妇| 久久国产综合精品| 亚洲国产日日夜夜| 亚洲视频在线观看三级| 久久亚洲精精品中文字幕早川悠里| 色成人在线视频| 99精品久久只有精品| 国产一区二区精品在线观看| 亚洲va韩国va欧美va精品| ●精品国产综合乱码久久久久| 日韩三级视频在线看| 欧美在线视频你懂得| 99久久综合精品| 国产91高潮流白浆在线麻豆| 久久国产人妖系列| 日本va欧美va精品| 天涯成人国产亚洲精品一区av| 亚洲欧美电影一区二区| 中文字幕一区二区三中文字幕| 亚洲精品一区二区精华| 日韩午夜小视频| 在线电影院国产精品| 欧美色电影在线| 欧美美女直播网站| 欧美日韩大陆一区二区| 欧美视频一区二区三区四区| 色综合天天综合网天天看片| 91视频国产观看| 99久久免费视频.com| 91丨九色丨国产丨porny| 色综合网色综合| 91黄色免费网站| 欧美三级电影精品| 欧美日韩高清一区二区| 在线观看91av| 精品久久国产97色综合| 精品国产免费视频| 国产亚洲精品中文字幕| 国产精品久久久久久久蜜臀| 亚洲视频在线一区观看| 亚洲一二三四在线观看| 日韩精品一卡二卡三卡四卡无卡| 午夜亚洲福利老司机| 另类的小说在线视频另类成人小视频在线 | 91精品欧美综合在线观看最新| 制服丝袜日韩国产| 久久影院视频免费| 国产精品理论在线观看| 一区二区三区成人在线视频 | 中文字幕一区二区三区av| 日韩毛片在线免费观看| 亚洲18色成人| 捆绑变态av一区二区三区| 粉嫩av一区二区三区在线播放| 99久久精品情趣| 777亚洲妇女| wwwwww.欧美系列| 亚洲婷婷综合久久一本伊一区| 亚洲一区二区黄色| 精品一区二区免费在线观看| 成人激情综合网站| 欧美日本在线播放| 国产欧美日本一区二区三区| 亚洲午夜一区二区三区| 久色婷婷小香蕉久久| 91网页版在线| 欧美一区二区三区视频| 1024国产精品| 免费在线观看成人| 色综合久久综合网| 欧美成人精品二区三区99精品| 最新热久久免费视频| 麻豆精品在线视频| 色悠久久久久综合欧美99| 欧美大胆人体bbbb| 一区二区在线看| 国产精品一区二区x88av| 欧美日韩国产三级| 国产午夜久久久久| 视频一区中文字幕| 91啪在线观看| 国产日韩欧美在线一区| 秋霞国产午夜精品免费视频| 91蜜桃婷婷狠狠久久综合9色| 精品日韩一区二区| 午夜久久久影院| 99re6这里只有精品视频在线观看| 日韩午夜在线影院| 亚洲成a人v欧美综合天堂| av不卡一区二区三区| 精品播放一区二区| 五月开心婷婷久久| 91久久一区二区| 国产精品家庭影院| 国产99久久久精品| 精品国产区一区| 日韩高清欧美激情| 欧美日韩中文字幕一区二区| 国产精品国产三级国产普通话三级| 精油按摩中文字幕久久| 91精品国产综合久久精品麻豆 | 亚洲mv大片欧洲mv大片精品| 成人精品国产福利| 久久久精品免费网站| 麻豆精品一区二区综合av| 337p亚洲精品色噜噜狠狠| 亚洲一区二区三区四区五区黄 | 日韩欧美亚洲国产精品字幕久久久| 亚洲一区二区免费视频| 91黄色免费版| 亚洲欧美日韩久久精品| av资源网一区| 18欧美亚洲精品| 91美女在线看| 亚洲一级二级在线| 3d动漫精品啪啪一区二区竹菊| 麻豆精品国产传媒mv男同| 91精品国产综合久久精品app |