On the Complexity of Approximate Sum of Sorted List

preprint2012arXivOpen access

Abstract

We consider the complexity for computing the approximate sum a1+a2+...+ana_1+a_2+...+a_n of a sorted list of numbers a1≤a2≤...≤ana_1\le a_2\le ...\le a_n. We show an algorithm that computes an (1+ε)(1+ε)-approximation for the sum of a sorted list of nonnegative numbers in an O(1εmin⁡(log⁡n,log⁡(xmaxxmin))⋅(log⁡1ε+log⁡log⁡n))O({1\over ε}\min(\log n, {\log ({x_{max}\over x_{min}})})\cdot (\log {1\over ε}+\log\log n)) time, where xmaxx_{max} and xminx_{min} are the largest and the least positive elements of the input list, respectively. We prove a lower bound Ω(min⁡(log⁡n,log⁡(xmaxxmin))Ω(\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.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.