Efficient minimization of numerical summation errors

1Citations
Citations of this article
13Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Given a multiset X = {x1,⋯, xn} of real numbers, the floating-point set summation (FPS) problem asks for Sn = x1 + ··· + xn, and the floating point prefix set summation problem (FPPS) asks for Sk = x1 + ··· + Xk for all k = 1,⋯, n. Let E*k denote the minimum worst-case error over all possible orderings of evaluating Sk-We prove that if X has both positive and negative numbers, it is NP-hard to compute Sn with the worst-case error equal to En. We then give the first known polynomial-time approximation algorithm for computing Sn that has a provably small error for arbitrary X. Our algorithm incurs a worstcase error at most 2([log(n - 1)] + 1)E*n.1 After X is sorted, it runs in O(n) time, yielding an O(n2)-time approximation algorithm for computing Sk for all k = 1,⋯, n such that the worst-case error for each Sk is less than 2[log(k - 1)1 + 1)E*k. For the case where X is either all positive or all negative, we give another approximation algorithm for computing Sn with a worst-case error at most [log log n]E*n. Even for unsorted X, this algorithm runs in 0(n) time. Previously, the best linear-time approximation algorithm had a worst-case error at most flog n] En, while E n was known to be attainable in O(n log n) time using Huffman coding. Consequently, FPPS is solvable in O(n2) time such that the worst-case error for each Sk is the minimum. To improve this quadratic time bound in practice, we design two on-line algorithms that calculate the next Sk by taking advantage of the current S k and thus reduce redundant computation.

Cite

CITATION STYLE

APA

Kao, M. Y., & Wang, J. (1998). Efficient minimization of numerical summation errors. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 1443 LNCS, pp. 375–386). Springer Verlag. https://doi.org/10.1007/bfb0055068

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free