Deferring dag construction by storing sums of floats speeds-up exact decision computations based on expression dags

  • Authors:
  • Marc Mörig

  • Affiliations:
  • Department of Simulation and Graphics, Faculty of Computer Science, University of Magdeburg, Magdeburg, Germany

  • Venue:
  • ICMS'10 Proceedings of the Third international congress conference on Mathematical software
  • Year:
  • 2010

Quantified Score

Hi-index 0.01

Visualization

Abstract

Expression-dag-based number-types are a very general and user-friendly way to achieve exact geometric computation, a widely accepted approach to the reliable implementation of geometric algorithms. Such number-types record the computation history of a numerical value in an expression dag in order to allow for recomputing the value or an approximation of it at a later stage. We describe how to defer dag construction by using error-free transformations into sums of floating-point numbers. We store a limited number of summands in statically allocated memory in order to postpone or avoid dag creation which involves expensive dynamic memory allocations. Furthermore we report on experiments where we compare different implementation strategies of our new approach. The experiments show that for small polynomial expressions typically arising in geometric applications our approach is superior to existing expression-dag-based number-types in the presence of degenerate and nearly degenerate configurations and competitive otherwise.