Sublinear Time Approximate Sum via Uniform Random Sampling
arXiv:1202.6598
Abstract
We investigate the approximation for computing the sum with an input of a list of nonnegative elements . If all elements are in the range , there is a randomized algorithm that can compute an -approximation for the sum problem in time , where is a constant in . 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 , which almost matches the upper bound, for this problem.