[Paper Review] Fast (Multi-)Evaluation of Linearly Recurrent Sequences: Improvements and Applications
This paper presents optimized algorithms for fast evaluation of linearly recurrent sequences, both individually and in bulk, leveraging polynomial multipoint evaluation and fast matrix arithmetic. It achieves uniform $Ó(\sqrt{n} \cdot \log n)$ complexity for orthogonal polynomial evaluation and $Ó(\sqrt{n} \cdot \log n + \ell \cdot \log(n/\ell))$ for multi-evaluation, with applications to hypergeometric functions and high-degree polynomial coefficient computation.
For a linearly recurrent vector sequence P[n+1] = A(n) * P[n], consider the problem of calculating either the n-th term P[n] or L<=n arbitrary terms P[n_1],...,P[n_L], both for the case of constant coefficients A(n)=A and for a matrix A(n) with entries polynomial in n. We improve and extend known algorithms for this problem and present new applications for it. Specifically it turns out that for instance * any family (p_n) of classical orthogonal polynomials admits evaluation at given x within O(n^{1/2} log n) operations INDEPENDENT of the family (p_n) under consideration. * For any L indices n_1,...,n_L <= n, the values p_{n_i}(x) can be calculated simultaneously using O(n^{1/2} log n + L log(n/L)) arithmetic operations; again this running time bound holds uniformly. * Every hypergeometric (or, more generally, holonomic) function admits approximate evaluation up to absolute error e>0 within O((log(1/e)^{1/2} loglog(1/e)) -- as opposed to O(log(1/e)) -- arithmetic steps. * Given m and a polynomial p of degree d over a field of characteristic zero, the coefficient of p^m to term X^n can be computed within O(d^2 M(n^{1/2})) steps where M(n) denotes the cost of multiplying two degree-n polynomials. * The same time bound holds for the joint calculation of any L<=n^{1/2} desired coefficients of p^m to terms X^{n_i}, n_1,...,n_L <= n.
Motivation & Objective
- To improve and generalize existing algorithms for evaluating linearly recurrent sequences with constant or polynomial coefficients.
- To enable efficient multi-evaluation of sequence terms at arbitrary indices with near-optimal time complexity.
- To apply the improved algorithms to fundamental problems in symbolic computation, including orthogonal polynomial evaluation and coefficient extraction from high-degree polynomials.
- To establish uniform complexity bounds across different classes of sequences, including holonomic and hypergeometric functions.
- To demonstrate that the new algorithms generalize classical methods with only constant-factor overhead, preserving asymptotic optimality.
Proposed method
- Utilizes fast polynomial multipoint evaluation and fast Fourier transforms to reduce the cost of evaluating linearly recurrent sequences.
- Applies matrix exponentiation and repeated squaring techniques to compute high-index terms of constant-coefficient recurrences in $Ó(k^3 \cdot \log n)$ operations.
- Employs a divide-and-conquer strategy based on the structure of companion matrices to compute multiple non-consecutive terms simultaneously.
- Leverages rational function arithmetic and Cramer’s Rule to analyze the degree bounds of recurrence coefficients in the sum and product of holonomic sequences.
- Reduces the problem of evaluating orthogonal polynomials to a linear recurrence with polynomial coefficients, enabling uniform complexity bounds.
- Uses the fact that inverse matrices of polynomial matrices have entries with bounded rational function degrees, enabling efficient computation of recurrence relations for sums and products of sequences.
Experimental results
Research questions
- RQ1Can the evaluation of the $n$-th term of a linearly recurrent sequence be performed faster than $\mathcal{O}(n)$ operations using advanced algebraic techniques?
- RQ2What is the optimal complexity for computing $\ell$ non-consecutive terms of a linearly recurrent sequence, and can it be achieved uniformly across different sequence types?
- RQ3How can the evaluation of classical orthogonal polynomials be accelerated using recurrence-based methods with uniform complexity bounds?
- RQ4Can the computation of specific coefficients in high-degree polynomials, such as those in $p^m$, be performed with output-sensitive complexity?
- RQ5What are the degree and complexity bounds for recurrence relations governing sums and products of holonomic sequences with polynomial coefficients?
Key findings
- The $n$-th term of any classical orthogonal polynomial family can be evaluated at a given $x$ in $\mathcal{O}(\sqrt{n} \cdot \log n)$ arithmetic operations, independent of the specific polynomial family.
- The evaluation of $\ell$ arbitrary terms $p_{n_i}(x)$ for $n_i \leq n$ can be performed simultaneously in $\mathcal{O}(\sqrt{n} \cdot \log n + \ell \cdot \log(n/\ell))$ arithmetic operations, uniformly across all orthogonal polynomial families.
- Approximate evaluation of any hypergeometric (or holonomic) function up to absolute error $\epsilon > 0$ requires $\mathcal{O}(\sqrt{\log(1/\epsilon)} \cdot \log\log(1/\epsilon))$ arithmetic steps, improving upon the classical $\mathcal{O}(\log(1/\epsilon))$ bound.
- The coefficient of $X^n$ in $p^m$, where $p$ is a degree-$d$ polynomial, can be computed in $\mathcal{O}(d^2 \cdot M(\sqrt{n}))$ steps, with $M(n)$ denoting polynomial multiplication cost.
- The joint computation of $\ell \leq \sqrt{n}$ coefficients of $p^m$ at specified degrees $n_i \leq n$ also runs in $\mathcal{O}(d^2 \cdot M(\sqrt{n}))$ steps, matching the single-coefficient bound.
- The sum and product of two holonomic sequences with polynomial coefficients of degree $d$ admit recurrence relations of depth at most $k + \ell$ and $k \cdot \ell$, respectively, with rational coefficients of degree $\mathcal{O}(d(k + \ell)^2)$ and $\mathcal{O}(d k^2 \ell^2)$, respectively.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.