arXiv · 1511.05210
Counting Ones Without Broadword Operations
Abstract
A lower time bound $Ω(\min(ν(x), n-ν(x))$ for counting the number of ones in a binary input word $x$ of length $n$ is presented, where $ν(x)$ is the number of ones. The operations available are increment, decrement, bit-wise logical operations, and assignment. The only constant available is zero. An almost matching upper bound is also obtained.
Explore related subjects
Keep this discovery
Holger Petersen. 2016-01-17. Counting Ones Without Broadword Operations. https://arxiv.org/abs/1511.05210
Cite the original work for its findings. Save a collection to share your selection of sources.