Random primes without primality testing

02/24/2022
by   Pascal Giorgi, et al.
0

Numerous algorithms call for computation over the integers modulo a randomly-chosen large prime. In some cases, the quasi-cubic complexity of selecting a random prime can dominate the total running time. We propose a new variant of the classic D5 algorithm for "dynamic evaluation", applied to a randomly-chosen (composite) integer. Unlike the D5 principle which has been used in the past to compute over a direct product of fields, our method is simpler as it only requires following a single path after any modulus splits. The transformation we propose can apply to any algorithm in the algebraic RAM model, even allowing randomization. The resulting transformed algorithm avoids any primality tests and will, with constant positive probability, have the same result as the original computation modulo a randomly-chosen prime. As an application, we demonstrate how to compute the exact number of nonzero terms in an unknown integer polynomial in quasi-linear time. We also show how the same algorithmic transformation technique can be used for computing modulo random irreducible polynomials over a finite field.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/10/2020

Noisy polynomial interpolation modulo prime powers

We consider the noisy polynomial interpolation problem of recovering an ...
research
06/25/2020

Strengthening the Baillie-PSW primality test

The Baillie-PSW primality test combines Fermat and Lucas probable prime ...
research
02/01/2016

Fast Computation of the Nth Term of an Algebraic Series over a Finite Prime Field

We address the question of computing one selected term of an algebraic p...
research
11/03/2017

Counting Roots of Polynomials Over Prime Power Rings

Suppose p is a prime, t is a positive integer, and f∈Z[x] is a univariat...
research
01/11/2020

On Polynomial Modular Number Systems over Z/pZ

Polynomial Modular Number System (PMNS) is a convenient number system fo...
research
11/12/2018

An Algorithm for Computing Prime Implicates in Modal Logic

In this paper we have proposed an algorithm for computing prime implicat...

Please sign up or login with your details

Forgot password? Click here to reset