Abstract: We consider the problem of approximating all real roots of a square-free polynomial $f$. Given isolating intervals, our algorithm refines each of them to a width of $2^{-L}$ or less, that is, each of the roots is approximated to $L$ bits after the binary point. Our method provides a certified answer for arbitrary real polynomials, only considering finite approximations of the polynomial coefficients and choosing a suitable working precision adaptively. In this way, we get a correct algorithm that is simple to implement and practically efficient. Our algorithm uses the quadratic interval refinement method; we adapt that method to be able to cope with inaccuracies when evaluating $f$, without sacrificing its quadratic convergence behavior. We prove a bound on the bit complexity of our algorithm in terms of the degree of the polynomial, the size and the separation of the roots, that is, parameters exclusively related to the geometric location of the roots. Our bound is near optimal and significantly improves previous work on integer polynomials. Furthermore, it essentially matches the best known theoretical bounds on root approximation which are obtained by very sophisticated algorithms. We also investigate the practical behavior of the algorithm and demonstrate how closely the practical performance matches our asymptotic bounds.
Introduction
Finding the exact roots of a polynomial is a classic mathematical problem, but doing it efficiently with certified accuracy is notoriously difficult. This research addresses the real root refinement problem: given "isolating intervals" (ranges on the x-axis guaranteed to contain exactly one real root), the goal is to shrink these intervals until their width is less than $2^{-L}$, effectively calculating the root to $L$ bits of precision.
Traditionally, algorithms like the Quadratic Interval Refinement (QIR) method solve this using exact rational arithmetic. However, as the interval shrinks, the fractions representing the endpoints become massive, making polynomial evaluation computationally crippling. This paper introduces AQIR (Approximate Quadratic Interval Refinement), which replaces exact arithmetic with certified approximate arithmetic to achieve massive speedups without sacrificing mathematical guarantees.
Methodology
AQIR builds upon the classical QIR method—a quadratically converging hybrid of bisection and the secant method—by incorporating interval arithmetic with dynamically adjusting working precision.
Adaptive Precision and Approximate Bisection
The algorithm starts with low precision. If an approximate evaluation overlaps with zero, the algorithm cannot confidently determine the sign of the polynomial. In such cases, it doubles the working precision and retries. To avoid the "nightmare scenario" where a test point lands exactly on a root (requiring infinite precision), AQIR evaluates multiple subdivision points simultaneously. This ensures that at least some points are far enough from the root to be evaluated safely.
Fast Multipoint Evaluation
For a theoretical boost, the authors adapt fast multipoint evaluation techniques to work with approximate numbers. This allows the algorithm to evaluate the polynomial for all isolating intervals simultaneously, drastically reducing the overall complexity.
Key Insights
- Certified Approximation: Exact arithmetic is not required for mathematically certified roots. By managing interval arithmetic and scaling precision only when necessary, correctness is guaranteed while avoiding the overhead of exact rational math.
- Geometry over Complexity: The computational hardness of approximating roots depends primarily on the geometric location of the roots (proximity to each other and the origin) rather than the bitsize of the polynomial's coefficients.
- Efficiency Gains: Switching to approximate arithmetic avoids intermediate numbers that grow with the polynomial degree ($d$), effectively removing a factor of $d$ from the algorithm's time complexity.
Experimental Results
The algorithm was evaluated using synthetic benchmarks, including random integer polynomials (degree 50 to 1600) and resultants of bivariate dense polynomials.
- Theoretical Complexity: The authors proved a near-optimal bit complexity bound of $\tilde{O}(d(d\Gamma_f + \Sigma_f)^2 + dL)$. For integer polynomials, this drops to $\tilde{O}(d^3\tau + dL)$.
- Empirical Speedup: AQIR vastly outperforms Exact QIR (EQIR) as the degree increases. For a degree 1600 polynomial, AQIR refined roots in a fraction of the time required by EQIR.
- Scaling: Experiments confirmed that the time to refine a single root scales linearly with degree $d$ for AQIR, compared to quadratic scaling for EQIR.
Limitations and Future Work
While highly efficient, the current C++ implementation of AQIR uses absolute precision arithmetic. Because it does not round coefficients during computation, it can perform worse than exact methods when dealing with extremely large coefficients (e.g., 128,000 bits).
Future work includes upgrading the implementation to use relative precision arithmetic to eliminate this bottleneck. Additionally, the authors suggest optimizing the algorithm for practical use by dropping certain subdivision points required only for worst-case theoretical proofs, facilitating integration into standard libraries like CGAL.
Summary updated