On the Complexity of Approximate Sum of Sorted List

Abstract

We consider the complexity for computing the approximate sum a1+a2+...+an of a sorted list of numbers a1 a2 ... an. We show an algorithm that computes an (1+ε)-approximation for the sum of a sorted list of nonnegative numbers in an O(1 ε( n, (xmax xmin))· ( 1 ε+ n)) time, where xmax and xmin are the largest and the least positive elements of the input list, respectively. We prove a lower bound (( n, (xmax xmin)) 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.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…