Abstract
We consider the complexity for computing the approximate sum a 1 + a 2 + ⋯ + a n of a sorted list of numbers a 1 ≤ a 2 ≤ ⋯ ≤ a n . We show an algorithm that computes an (1 + ε)-approximation for the sum of a sorted list of nonnegative numbers in an \(O({1\over \epsilon}\min(\log n, {\log ({x_{max}\over x_{min}})})\cdot (\log{1\over \epsilon}+\log\log n))\) time, where x max and x min are the largest and the least positive elements of the input list, respectively. We prove a lower bound \(\Omega(\min(\log n,\log ({x_{max}\over x_{min}}))\) time for every O(1)-approximation algorithm for the sum of a sorted list of nonnegative elements. We also show that there is no sublinear time approximation algorithm for the sum of a sorted list that contains at least one negative number.
This research is supported in part by NSF HRD-1137764 and NSF Early Career Award 0845376.
Access provided by Autonomous University of Puebla. Download to read the full chapter text
Chapter PDF
Similar content being viewed by others
References
Anderson, I.J.: A distillation algorithm for floating-point summation. SIAM J. Sci. Comput. 20, 1797–1806 (1999)
Bresenham, J.E.: Algorithm for computer control of a digital plotter. IBM Systems Journal 4(1), 25 (1965)
Canetti, R., Even, G., Goldreich, O.: Lower bounds for sampling algorithms for estimating the average. Information Processing Letters 53, 17–25 (1995)
Demmel, J., Hida, Y.: Accurate and efficient floating point summation. SIAM J. Sci. Comput. 25, 1214–1248 (2003)
Espelid, T.O.: On floating-point summation. SIAM Rev. 37, 603–607 (1995)
Gregory, J.: A comparison of floating point summation methods. Commun. ACM 15, 838 (1972)
Har-Peled, S.: Coresets for discrete integration and clustering. In: Arun-Kumar, S., Garg, N. (eds.) FSTTCS 2006. LNCS, vol. 4337, pp. 33–44. Springer, Heidelberg (2006)
Higham, N.J.: The accuracy of floating point summation. SIAM J. Sci. Comput. 14, 783–799 (1993)
Hoefding, W.: Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association 58, 13–30 (1963)
Kahan, W.: Further remarks on reducing truncation errors. Communications of the ACM 8(1), 40 (1965)
Knuth, D.E.: The art of computer programming, 3rd edn. Seminumerical Algorithms, vol. 2. Addison-Wesley, Reading (1998)
Linz, P.: Accurate floating-point summation. Commun. ACM 13, 361–362 (1970)
Malcolm, M.A.: On accurate floating-point summation. Commun. ACM 14, 731–736 (1971)
Motwani, R., Panigrahy, R., Xu, Y.: Estimating sum by weighted sampling. In: Arge, L., Cachin, C., Jurdziński, T., Tarlecki, A. (eds.) ICALP 2007. LNCS, vol. 4596, pp. 53–64. Springer, Heidelberg (2007)
Priest, D.M.: On Properties of Floating Point Arithmetics: Numerical Stability and the Cost of Accurate Computations, Ph.D. thesis. PhD thesis, Mathematics Department, University of California, Berkeley, CA (1992)
Zhu, Y.K., Yong, J.H., Zheng, G.Q.: A new distillation algorithm for floating-point summation. SIAM Journal on Scientific Computing 26, 2066–2078 (2005)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Fu, B. (2013). On the Complexity of Approximate Sum of Sorted List. In: Fellows, M., Tan, X., Zhu, B. (eds) Frontiers in Algorithmics and Algorithmic Aspects in Information and Management. Lecture Notes in Computer Science, vol 7924. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38756-2_29
Download citation
DOI: https://doi.org/10.1007/978-3-642-38756-2_29
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-38755-5
Online ISBN: 978-3-642-38756-2
eBook Packages: Computer ScienceComputer Science (R0)