Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7924))

  • 934 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Anderson, I.J.: A distillation algorithm for floating-point summation. SIAM J. Sci. Comput. 20, 1797–1806 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  2. Bresenham, J.E.: Algorithm for computer control of a digital plotter. IBM Systems Journal 4(1), 25 (1965)

    Google Scholar 

  3. Canetti, R., Even, G., Goldreich, O.: Lower bounds for sampling algorithms for estimating the average. Information Processing Letters 53, 17–25 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  4. Demmel, J., Hida, Y.: Accurate and efficient floating point summation. SIAM J. Sci. Comput. 25, 1214–1248 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  5. Espelid, T.O.: On floating-point summation. SIAM Rev. 37, 603–607 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  6. Gregory, J.: A comparison of floating point summation methods. Commun. ACM 15, 838 (1972)

    Article  MATH  Google Scholar 

  7. 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)

    Chapter  Google Scholar 

  8. Higham, N.J.: The accuracy of floating point summation. SIAM J. Sci. Comput. 14, 783–799 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  9. Hoefding, W.: Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association 58, 13–30 (1963)

    Article  MathSciNet  Google Scholar 

  10. Kahan, W.: Further remarks on reducing truncation errors. Communications of the ACM 8(1), 40 (1965)

    Article  Google Scholar 

  11. Knuth, D.E.: The art of computer programming, 3rd edn. Seminumerical Algorithms, vol. 2. Addison-Wesley, Reading (1998)

    Google Scholar 

  12. Linz, P.: Accurate floating-point summation. Commun. ACM 13, 361–362 (1970)

    Article  MathSciNet  MATH  Google Scholar 

  13. Malcolm, M.A.: On accurate floating-point summation. Commun. ACM 14, 731–736 (1971)

    Article  MathSciNet  MATH  Google Scholar 

  14. 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)

    Chapter  Google Scholar 

  15. 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)

    Google Scholar 

  16. 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)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics