Counting Ones Without Broadword Operations
Holger Petersen

TL;DR
This paper establishes tight bounds on counting the number of ones in a binary word using basic operations, providing both lower and nearly matching upper bounds.
Contribution
It introduces a new lower bound for counting ones with minimal operations and presents an almost matching upper bound, advancing understanding of computational complexity for this problem.
Findings
Lower bound of Ω(min(ν(x), n-ν(x))) for counting ones.
Almost matching upper bound achieved.
Operates with increment, decrement, logical, and assignment operations.
Abstract
A lower time bound for counting the number of ones in a binary input word of length is presented, where 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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Algorithms and Data Compression · DNA and Biological Computing
