[Paper Review] Output-sensitive algorithms for sumset and sparse polynomial multiplication
This paper presents randomized, output-sensitive algorithms for computing the sumset of two integer sets and multiplying sparse univariate and multivariate polynomials over integers, finite fields, and rationals. The key contribution is an algorithm with soft-oh complexity Oµ(S log C + T log D), where S is the actual sparsity of the product, T is the structural sparsity (size of the sumset of supports), and C, D are coefficient and degree bounds—achieving near-linear performance in practice-relevant parameters.
We present randomized algorithms to compute the sumset (Minkowski sum) of two integer sets, and to multiply two univariate integer polynomials given by sparse representations. Our algorithm for sumset has cost softly linear in the combined size of the inputs and output. This is used as part of our sparse multiplication algorithm, whose cost is softly linear in the combined size of the inputs, output, and the sumset of the supports of the inputs. As a subroutine, we present a new method for computing the coefficients of a sparse polynomial, given a set containing its support. Our multiplication algorithm extends to multivariate Laurent polynomials over finite fields and rational numbers. Our techniques are based on sparse interpolation algorithms and results from analytic number theory.
Motivation & Objective
- To develop output-sensitive algorithms for sparse polynomial multiplication that scale with the actual and structural sparsity of the product.
- To compute the sumset (Minkowski sum) of two integer sets efficiently, as a key subroutine for sparse multiplication.
- To extend sparse multiplication to multivariate Laurent polynomials and various coefficient rings using Kronecker substitution.
- To achieve complexity close to that of dense arithmetic, while remaining efficient for highly sparse inputs.
- To provide a randomized algorithm with controllably low failure probability and soft-oh complexity that depends on structural and actual sparsity.
Proposed method
- Use a randomized sumset algorithm based on number-theoretic results to compute A ⊕ B = {a + b : a ∈ A, b ∈ B} with soft-oh complexity in the size of the output.
- Apply sparse interpolation techniques to recover coefficients of the product polynomial using a known support set.
- Leverage the Kronecker substitution to reduce multivariate polynomial multiplication to univariate form, preserving sparsity structure.
- Use modular arithmetic and Chinese remaindering to reconstruct full-precision coefficients from reduced-size computations.
- Employ a two-phase approach: first compute the product modulo a prime using the structural support T, then recover the true support S and reconstruct full coefficients.
- Use vanish-primes and rational reconstruction to ensure correctness with failure probability < µ, while maintaining soft-oh complexity.
Experimental results
Research questions
- RQ1Can sparse polynomial multiplication be performed in time proportional to the actual and structural sparsity of the product, rather than the square of the input sparsity?
- RQ2Is it possible to compute the sumset of two integer sets in time softly linear in the output size?
- RQ3Can randomized algorithms achieve near-optimal complexity for sparse multiplication while maintaining correctness with high probability?
- RQ4How does the structural sparsity T = #poss(F, G) compare to the actual sparsity S = #supp(FG), and can algorithms be designed to exploit this difference?
- RQ5Can the approach be extended to multivariate Laurent polynomials and various coefficient rings like Z, Zm, GF(qe), and Q with minimal complexity overhead?
Key findings
- The proposed algorithm for sumset computation achieves Oµ(T log T) bit operations, where T is the size of the output, making it softly linear in the output size.
- The sparse polynomial multiplication algorithm runs in Oµ(S log C + T log D) bit operations, where S is the actual sparsity of the product and T is the structural sparsity of the sumset of supports.
- The algorithm correctly computes the product FG with probability exceeding 1 − µ, using randomized modular reduction and rational reconstruction.
- The method extends naturally to multivariate Laurent polynomials over Z, Zm, GF(qe), and Q via Kronecker substitution, with complexity Oµ(T(n log D + B)) for n variables and coefficient bit-length B.
- The algorithm's complexity is nearly optimal for sparse inputs and approaches that of dense multiplication when structural sparsity T is small.
- The approach separates the cost into T-dependent and S-dependent components, enabling efficient handling of exponent collisions without coefficient cancellations.
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.