In-place fast polynomial modular remainder

02/27/2023
by   Jean-Guillaume Dumas, et al.
0

We consider the fast in-place computation of the Euclidean polynomial modular remainder R(X) ≢ A(X) mod B(X) with A and B of respective degrees n and m ≤ n. If the multiplication of two polynomials of degree k can be performed with M(k) operations and O(k) extra space, then standard algorithms for the remainder require O(n/m M(m)) arithmetic operations and, apart from that of A and B, at least O(n – m) extra memory. This extra space is notably usually used to store the whole quotient Q(X) such that A = BQ + R with deg R < deg B.We avoid the storage of the whole of this quotient, and propose an algorithm still using O(n/m M(m)) arithmetic operations but only O(m) extra space.When the divisor B is sparse with a constant number of non-zero terms, the arithmetic complexity bound reduces to O(n).When it is allowed to use the input space of A or B for intermediate computations, but putting A and B back to their initial states after the completion of the remainder computation, we further propose an in-place algorithm (that is with its extra required space reduced to O(1) only) using at mostO(n/m M(m) log(m) arithmetic operations.To achieve this, we develop techniques for Toeplitz matrix operations which output is also part of the input. In-place accumulated versions are obtained for the latter and for polynomial remaindering via reductions to accumulated polynomial multiplication, for which a recent fast in-place algorithm hasbeen developed.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/24/2020

Fast In-place Algorithms for Polynomial Operations: Division, Evaluation, Interpolation

We consider space-saving versions of several important operations on uni...
research
07/24/2023

Fast in-place accumulated bilinear formulae

Bilinear operations are ubiquitous in computer science and in particular...
research
02/08/2019

Generic reductions for in-place polynomial multiplication

The polynomial multiplication problem has attracted considerable attenti...
research
08/20/2020

A Simple and Fast Algorithm for Computing the N-th Term of a Linearly Recurrent Sequence

We present a simple and fast algorithm for computing the N-th term of a ...
research
11/09/2022

Faster Walsh-Hadamard Transform and Matrix Multiplication over Finite Fields using Lookup Tables

We use lookup tables to design faster algorithms for important algebraic...
research
09/14/2016

A Fast Algorithm for Computing the Truncated Resultant

Let P and Q be two polynomials in K[x, y] with degree at most d, where K...
research
06/25/2021

POLAR: A Polynomial Arithmetic Framework for Verifying Neural-Network Controlled Systems

We propose POLAR, a polynomial arithmetic framework that leverages polyn...

Please sign up or login with your details

Forgot password? Click here to reset