TY - JOUR
T1 - Linear-time approximation algorithms for computing numerical summation with provably small errors
AU - Kao, Ming Yang
AU - Wang, Jie
N1 - Copyright:
Copyright 2017 Elsevier B.V., All rights reserved.
PY - 2000
Y1 - 2000
N2 - This author was supported in part by NSF grant CCR-94241G4. Abstract. Given a multiset X = {x1,... ,xn} of real numbers, the floating-point set summation problem asks for Sn = 11 + ⋯ + Xn- Let En2 denote the minimum worst-case error over all possible orderings of evaluating Sn. We prove that if AT 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 that has a provably small error for arbitrary X. Our algorithm incurs a worst-case error at most 2([log(n -1)] + 1)En*. (All logarithms log in this paper are base 2.) After X is sorted, it runs in O(π) time. For the case where X is either all positive or all negative, we give another approximation algorithm with a worst-case error at most [loglogn]En*. Even for unsorted X, this algorithm runs in O(n) time. Previously, the best linear-time approximation algorithm had a worst-case error at most [log n]En*, while En* was known to be attainable in O(nlogn) time using Huffman coding.
AB - This author was supported in part by NSF grant CCR-94241G4. Abstract. Given a multiset X = {x1,... ,xn} of real numbers, the floating-point set summation problem asks for Sn = 11 + ⋯ + Xn- Let En2 denote the minimum worst-case error over all possible orderings of evaluating Sn. We prove that if AT 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 that has a provably small error for arbitrary X. Our algorithm incurs a worst-case error at most 2([log(n -1)] + 1)En*. (All logarithms log in this paper are base 2.) After X is sorted, it runs in O(π) time. For the case where X is either all positive or all negative, we give another approximation algorithm with a worst-case error at most [loglogn]En*. Even for unsorted X, this algorithm runs in O(n) time. Previously, the best linear-time approximation algorithm had a worst-case error at most [log n]En*, while En* was known to be attainable in O(nlogn) time using Huffman coding.
KW - Addition trees
KW - Approximation algorithms
KW - Combinatorial optimization
KW - Error analysis
KW - Floating-point summation
KW - Np-hardness
UR - http://www.scopus.com/inward/record.url?scp=0000827214&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=0000827214&partnerID=8YFLogxK
U2 - 10.1137/S0097539798341594
DO - 10.1137/S0097539798341594
M3 - Article
AN - SCOPUS:0000827214
SN - 0097-5397
VL - 29
SP - 1568
EP - 1576
JO - SIAM Journal on Computing
JF - SIAM Journal on Computing
IS - 5
ER -