SIEVE ALGORITHMS FOR PERFECT POWER TESTING

被引:20
作者
BACH, E [1 ]
SORENSON, J [1 ]
机构
[1] BUTLER UNIV,DEPT MATH & COMP SCI,INDIANAPOLIS,IN 46208
关键词
PERFECT POWERS; NUMBER THEORETIC ALGORITHMS; RIEMANN HYPOTHESIS; NEWTON METHOD; SIEVE ALGORITHMS; PARALLEL ALGORITHMS; AVERAGE-CASE ANALYSIS;
D O I
10.1007/BF01228507
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A positive integer n is a perfect power if there exist integers x and k, both at least 2, such that n = x(k). The usual algorithm to recognize perfect powers computes approximate kth roots for k less-than-or-equal-to log2 n, and runs in time O(log3 n log log log n). First we improve this worst-case running time to O(log3 n) by using a modified Newton's method to compute approximate kth roots. Parallelizing this gives an NC2 algorithm. Second, we present a sieve algorithm that avoids kth-root computations by seeing if the input n is a perfect kth power modulo small primes. If n is chosen uniformly from a large enough interval, the average running time is O(log2 n). Third, we incorporate trial division to give a sieve algorithm with an average running time of O(log2 n/log2 log n) and a median running time of O(log n). The two sieve algorithms use a precomputed table of small primes. We give a heuristic argument and computational evidence that the largest prime needed in this table is (logn)1+o(1); assuming the Extended Riemann Hypothesis, primes up to (log n)2+o(1) suffice. The table can be computed in time roughly proportional to the largest prime it contains. We also present computational results indicating that our sieve algorithms perform extremely well in practice.
引用
收藏
页码:313 / 328
页数:16
相关论文
共 32 条
[21]  
Pan V., 1985, 26th Annual Symposium on Foundations of Computer Science (Cat. No.85CH2224-4), P522, DOI 10.1109/SFCS.1985.25
[22]   THEOREMS ON FACTORIZATION AND PRIMALITY TESTING [J].
POLLARD, JM .
PROCEEDINGS OF THE CAMBRIDGE PHILOSOPHICAL SOCIETY, 1974, 76 (NOV) :521-528
[23]   FAST COMPACT PRIME NUMBER SIEVES (AMONG OTHERS) [J].
PRITCHARD, P .
JOURNAL OF ALGORITHMS, 1983, 4 (04) :332-344
[24]  
Rosser J. B., 1962, ILLINOIS J MATH, V6, P64
[25]  
Schinzel A., 1970, ACTA ARITH, V17, P161
[26]  
SHALIT J, 1989, COURSE NOTES NUMBER
[27]   ON THE DETERMINISTIC COMPLEXITY OF FACTORING POLYNOMIALS OVER FINITE-FIELDS [J].
SHOUP, V .
INFORMATION PROCESSING LETTERS, 1990, 33 (05) :261-267
[28]  
Titchmarsh E. C., 1930, REND CIRC MAT PALERM, V54, P414, DOI DOI 10.1007/BF03021203
[29]  
WAGSTAFF SS, 1979, MATH COMPUT, V33, P1073, DOI 10.1090/S0025-5718-1979-0528061-7
[30]  
Wright E., 1979, INTRO THEORY NUMBERS