English

Sublinear Time Approximate Sum via Uniform Random Sampling

Data Structures and Algorithms 2012-03-01 v1

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+\epsilon)-approximation for the sum problem in time O(n(loglogn)i=1nai){O({n(\log\log n)\over\sum_{i=1}^n a_i})}, where ϵ\epsilon 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 Ω(ni=1nai)\Omega({n\over \sum_{i=1}^n a_i}), which almost matches the upper bound, for this problem.

Keywords

Cite

@article{arxiv.1202.6598,
  title  = {Sublinear Time Approximate Sum via Uniform Random Sampling},
  author = {Bin Fu and Wenfeng Li and Zhiyong Peng},
  journal= {arXiv preprint arXiv:1202.6598},
  year   = {2012}
}
R2 v1 2026-06-21T20:27:01.963Z