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 条
[11]   ON THE DISTRIBUTION OF RUNNING TIMES OF CERTAIN INTEGER FACTORING ALGORITHMS [J].
HAFNER, JL ;
MCCURLEY, KS .
JOURNAL OF ALGORITHMS, 1989, 10 (04) :531-556
[12]  
Ireland K., 1982, CLASSICAL INTRO MODE
[13]  
Jurkat W. B., 1965, ACTA ARITH, V11, P217, DOI DOI 10.4064/AA-11-2-217-240
[14]  
KARP RM, 1990, HDB THEORETICAL COMP, VA, P871
[15]  
Knuth D. E., 1976, Theoretical Computer Science, V3, P321, DOI 10.1016/0304-3975(76)90050-5
[16]  
Knuth D.E., 1981, ART COMPUTER PROGRAM, V2
[17]  
LENSTRA AK, 1990, 22ND P ANN ACM S THE, P564
[18]   FACTORING INTEGERS WITH ELLIPTIC-CURVES [J].
LENSTRA, HW .
ANNALS OF MATHEMATICS, 1987, 126 (03) :649-673
[19]  
MILLER V, 1989, COMMUNICATION
[20]  
NEFF CA, 1990, 31ST P ANN S F COMP, P152