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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gf2exfactoring.txt

?? 密碼大家Shoup寫的數論算法c語言實現
?? TXT
字號:
/**************************************************************************\MODULE: GF2EXFactoringSUMMARY:Routines are provided for factorization of polynomials over GF2E, aswell as routines for related problems such as testing irreducibilityand constructing irreducible polynomials of given degree.\**************************************************************************/#include <NTL/GF2EX.h>#include <NTL/pair_GF2EX_long.h>void SquareFreeDecomp(vec_pair_GF2EX_long& u, const GF2EX& f);vec_pair_GF2EX_long SquareFreeDecomp(const GF2EX& f);// Performs square-free decomposition.  f must be monic.  If f =// prod_i g_i^i, then u is set to a list 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_GF2E& x, const GF2EX& f);vec_GF2E FindRoots(const GF2EX& f);// f is monic, and has deg(f) distinct roots.  returns the list of// rootsvoid FindRoot(GF2E& root, const GF2EX& f);GF2E FindRoot(const GF2EX& f);// finds a single root of f.  assumes that f is monic and splits into// distinct linear factorsvoid SFBerlekamp(vec_GF2EX& factors, const GF2EX& f, long verbose=0);vec_GF2EX  SFBerlekamp(const GF2EX& 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_GF2EX_long& factors, const GF2EX& f,                long verbose=0);vec_pair_GF2EX_long berlekamp(const GF2EX& f, long verbose=0);// returns a list of factors, with multiplicities.  f must be monic.// Calls SFBerlekamp.void NewDDF(vec_pair_GF2EX_long& factors, const GF2EX& f, const GF2EX& h,         long verbose=0);vec_pair_GF2EX_long NewDDF(const GF2EX& f, const GF2EX& 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^{2^{GF2E::degree()}} mod f,// which can be computed efficiently using the function FrobeniusMap // (see below).// 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].// NOTE: When factoring "large" polynomials,// this routine uses external files to store some intermediate// results, which are removed if the routine terminates normally.// These files are stored in the current directory under names of the// form ddf-*-baby-* and ddf-*-giant-*.// The definition of "large" is controlled by the variable      extern double GF2EXFileThresh// which can be set by the user.  If the sizes of the tables// exceeds GF2EXFileThresh KB, external files are used.// Initial value is 256.void EDF(vec_GF2EX& factors, const GF2EX& f, const GF2EX& h,         long d, long verbose=0);vec_GF2EX EDF(const GF2EX& f, const GF2EX& h,         long d, long verbose=0);// Performs equal-degree factorization.  f is monic, square-free, and// all irreducible factors have same degree.  // h = X^{2^{GF2E::degree()}} mod f,// which can be computed efficiently using the function FrobeniusMap // (see below).// 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_GF2EX& factors, const GF2EX& f, long verbose=0);vec_GF2EX RootEDF(const GF2EX& f, long verbose=0);// EDF for d==1void SFCanZass(vec_GF2EX& factors, const GF2EX& f, long verbose=0);vec_GF2EX SFCanZass(const GF2EX& 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_GF2EX_long& factors, const GF2EX& f,              long verbose=0);vec_pair_GF2EX_long CanZass(const GF2EX& f, long verbose=0);// returns a list of factors, with multiplicities.  f must be monic.// Calls SquareFreeDecomp and SFCanZass.// NOTE: these routines use modular composition.  The space// used for the required tables can be controlled by the variable// GF2EXArgBound (see GF2EX.txt).void mul(GF2EX& f, const vec_pair_GF2EX_long& v);GF2EX mul(const vec_pair_GF2EX_long& v);// multiplies polynomials, with multiplicities/**************************************************************************\                            Irreducible Polynomials\**************************************************************************/long ProbIrredTest(const GF2EX& 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// 2^{-iter*GF2E::degree()}.  This implements an algorithm from [Shoup,// J. Symbolic Comp. 17:371-391, 1994].long DetIrredTest(const GF2EX& 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 GF2EX& f);// performs an iterative deterministic irreducibility test, based on// DDF.  Fast on average (when f has a small factor).void BuildIrred(GF2EX& f, long n);GF2EX BuildIrred_GF2EX(long n);// Build a monic irreducible poly of degree n. void BuildRandomIrred(GF2EX& f, const GF2EX& g);GF2EX BuildRandomIrred(const GF2EX& g);// g is a monic irreducible polynomial.  Constructs a random monic// irreducible polynomial f of the same degree.void FrobeniusMap(GF2EX& h, const GF2EXModulus& F);GF2EX FrobeniusMap(const GF2EXModulus& F);// Computes h = X^{2^{GF2E::degree()}} mod F, // by either iterated squaring or modular// composition.  The latter method is based on a technique developed// in Kaltofen & Shoup (Faster polynomial factorization over high// algebraic extensions of finite fields, ISSAC 1997).  This method is// faster than iterated squaring when deg(F) is large relative to// GF2E::degree().long IterComputeDegree(const GF2EX& h, const GF2EXModulus& F);// f is assumed to be an "equal degree" polynomial, and h =// X^{2^{GF2E::degree()}} mod f (see function FrobeniusMap above) // The common degree of the irreducible factors// of f is computed.  Uses a "baby step/giant step" algorithm, similar// to NewDDF.  Although asymptotocally slower than RecComputeDegree// (below), it is faster for reasonably sized inputs.long RecComputeDegree(const GF2EX& h, const GF2EXModulus& F);// f is assumed to be an "equal degree" polynomial, h = X^{2^{GF2E::degree()}}// mod f (see function FrobeniusMap above).  // The common degree of the irreducible factors of f is// computed. Uses a recursive algorithm similar to DetIrredTest.void TraceMap(GF2EX& w, const GF2EX& a, long d, const GF2EXModulus& F,              const GF2EX& h);GF2EX TraceMap(const GF2EX& a, long d, const GF2EXModulus& F,              const GF2EX& h);// Computes 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 2^{GF2E::degree()}.  This routine// implements an algorithm from [von zur Gathen and Shoup,// Computational Complexity 2:187-224, 1992].// If q = 2^{GF2E::degree()}, then h can be computed most efficiently// by using the function FrobeniusMap above.void PowerCompose(GF2EX& w, const GF2EX& h, long d, const GF2EXModulus& F);GF2EX PowerCompose(const GF2EX& h, long d, const GF2EXModulus& F);// Computes w = X^{q^d} mod f; it is assumed that d >= 0, and h = X^q// mod f, q a power of 2^{GF2E::degree()}.  This routine implements an// algorithm from [von zur Gathen and Shoup, Computational Complexity// 2:187-224, 1992].// If q = 2^{GF2E::degree()}, then h can be computed most efficiently// by using the function FrobeniusMap above.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日一区二区三区| 国产成人精品亚洲午夜麻豆| 婷婷综合久久一区二区三区| 狠狠色丁香婷婷综合| 成人免费高清视频| 日韩一本二本av| 亚洲日本一区二区三区| 久久9热精品视频| 欧美日韩精品系列| 亚洲色图制服丝袜| 国产大陆亚洲精品国产| 91精品久久久久久蜜臀| 亚洲国产精品久久人人爱蜜臀| 国产一区在线观看视频| 日韩欧美一卡二卡| 天堂成人国产精品一区| 欧美在线观看视频一区二区三区| 国产欧美综合色| 国产一区二区影院| 久久综合国产精品| 狠狠网亚洲精品| 精品盗摄一区二区三区| 美女一区二区视频| 欧美一级高清片| 丝袜美腿成人在线| 91精品婷婷国产综合久久竹菊| 国产精品综合网| 欧美大片在线观看一区二区| 日韩专区在线视频| 欧美高清激情brazzers| 婷婷开心激情综合| 91麻豆精品国产91久久久久| 午夜精品久久久久久久久| 欧美网站大全在线观看| 亚洲福利视频一区二区| 欧美精品视频www在线观看| 日韩在线卡一卡二| 在线播放91灌醉迷j高跟美女| 亚洲成av人在线观看| 欧美亚洲国产bt| 日本中文在线一区| www激情久久| av一区二区三区四区| 亚洲已满18点击进入久久| 欧美色综合网站| 久久精品国产亚洲一区二区三区| 精品国产一区二区亚洲人成毛片| 国产一本一道久久香蕉| 中文字幕不卡三区| 色94色欧美sute亚洲线路一久| 亚洲综合男人的天堂| 制服丝袜激情欧洲亚洲| 国产在线精品视频| 日韩理论在线观看| 欧美猛男男办公室激情| 激情深爱一区二区| 中文字幕视频一区| 欧美日韩大陆一区二区| 国产盗摄女厕一区二区三区| 亚洲精品视频观看| 精品乱码亚洲一区二区不卡| 成人在线视频首页| 亚洲成人黄色小说| 久久精品水蜜桃av综合天堂| 91国偷自产一区二区开放时间 | 97精品国产露脸对白| 一卡二卡三卡日韩欧美| 精品欧美一区二区在线观看| 成人免费视频国产在线观看| 亚洲国产一二三| 欧美激情一区二区| 51午夜精品国产| 不卡一二三区首页| 日本vs亚洲vs韩国一区三区 | 国产调教视频一区| 欧美日韩国产首页| 国产成人亚洲精品青草天美 | 欧美性猛交xxxx黑人交| 精品一区二区三区在线播放视频| 中文字幕在线一区二区三区| 一区二区三区国产精品| 久久久国产精华| 欧美图片一区二区三区| 99在线精品视频| 国产伦精品一区二区三区视频青涩| 一区二区三区在线播| 久久久久99精品国产片| 91麻豆精品91久久久久同性| 色综合久久天天| 国产成人激情av| 精品无码三级在线观看视频| 亚洲成a天堂v人片| 亚洲美女精品一区| 国产精品情趣视频| 久久网站最新地址| 日韩午夜三级在线| 欧美一区二区免费| 欧美日韩国产bt| 欧美三级资源在线| 一本久久a久久精品亚洲| 成人美女视频在线观看18| 国产呦萝稀缺另类资源| 国产一区二区影院| 韩国三级中文字幕hd久久精品| 日本不卡一二三区黄网| 日本强好片久久久久久aaa| 亚洲一区二区三区小说| 最新欧美精品一区二区三区| 国产精品污污网站在线观看| 精品国产一区二区三区av性色| 7777精品伊人久久久大香线蕉的| 欧美日韩精品一区二区三区蜜桃| 色八戒一区二区三区| 色婷婷精品久久二区二区蜜臂av| 色综合久久久久久久久| 色一情一乱一乱一91av| 色综合久久天天| 欧美色综合久久| 91精品国产91热久久久做人人| 3d动漫精品啪啪1区2区免费| 日韩一级片网址| 久久精品一区八戒影视| 国产精品色哟哟| 一区二区三区四区视频精品免费 | 国产在线精品一区二区不卡了| 极品少妇一区二区| 国产精品一区三区| 99视频热这里只有精品免费| 91在线视频播放| 欧美日韩亚洲国产综合| 日韩一区二区三区在线| 久久综合中文字幕| 亚洲天堂a在线| 偷窥国产亚洲免费视频| 国产一区久久久| 色综合av在线| 欧美一区二区高清| 中文字幕免费观看一区| 亚洲制服丝袜在线| 久久精品999| av一区二区三区四区| 欧美日韩成人一区| 亚洲国产视频一区二区| 麻豆精品在线播放| 99久久99久久精品免费观看| 欧美日韩一区三区| 久久嫩草精品久久久精品一| 亚洲色图欧洲色图婷婷| 日韩av一区二| 99在线精品视频| 精品久久一二三区| 夜夜嗨av一区二区三区中文字幕| 麻豆久久久久久| 色综合av在线| 久久免费视频一区| 亚洲.国产.中文慕字在线| 丁香天五香天堂综合| 欧美欧美欧美欧美首页| 国产三级精品三级在线专区| 亚洲成人综合在线| 成人美女在线观看| 久久综合五月天婷婷伊人| 一区二区三区免费| 成人美女视频在线观看| 91精品国产综合久久久久久漫画| 国产精品日产欧美久久久久| 久久99日本精品| 欧美丝袜第三区| 亚洲视频在线观看三级| 国产一区久久久| 日韩欧美国产一区二区三区 | 国产精品欧美一区喷水| 日本不卡的三区四区五区| 色欧美片视频在线观看| 久久精品视频一区二区三区| 日韩国产欧美在线视频| 91丨九色丨国产丨porny| 久久久亚洲精华液精华液精华液 | 亚洲一区日韩精品中文字幕| 国产毛片精品一区| 欧美成人伊人久久综合网| 亚洲亚洲精品在线观看| av一区二区三区在线| 国产精品污污网站在线观看 | 久久精品国产亚洲一区二区三区| 一本一本大道香蕉久在线精品 | 日韩视频永久免费| 亚洲高清视频的网址| 一本色道久久加勒比精品| 中文字幕亚洲综合久久菠萝蜜| 国产99久久久国产精品潘金| 久久久影视传媒| 国产成人免费在线视频| 国产日韩欧美一区二区三区乱码 | 青椒成人免费视频| 91精品欧美一区二区三区综合在| 亚洲国产婷婷综合在线精品| 欧美综合色免费| 五月婷婷综合激情| 欧美日本视频在线|