Sublinear Time Approximate Sum via Uniform Random Sampling

preprint2012arXivOpen access

Abstract

We investigate the approximation for computing the sum a1+...+ana_1+...+a_n with an input of a list of nonnegative elements a1,...,ana_1,..., a_n. If all elements are in the range [0,1][0,1], there is a randomized algorithm that can compute an (1+ε)(1+ε)-approximation for the sum problem in time O(n(log⁡log⁡n)∑i=1nai){O({n(\log\log n)\over\sum_{i=1}^n a_i})}, where εε is a constant in (0,1)(0,1). Our randomized algorithm is based on the uniform random sampling, which selects one element with equal probability from the input list each time. We also prove a lower bound Ω(n∑i=1nai)Ω({n\over \sum_{i=1}^n a_i}), which almost matches the upper bound, for this problem.

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.