pith. sign in

arxiv: 1108.3860 · v3 · pith:BUH44TQYnew · submitted 2011-08-18 · 💻 cs.CC

A SWAR Approach to Counting Ones

classification 💻 cs.CC
keywords complexityonesboundcountingoperationsadditionalgorithmsapproach
0
0 comments X
read the original abstract

We investigate the complexity of algorithms counting ones in different sets of operations. With addition and logical operations (but no shift) $O(\log^2(n))$ steps suffice to count ones. Parity can be computed with complexity $O(\log(n))$, which is the same bound as for methods using shift-operations. If multiplication is available, a solution of time complexity $O(\log^*(n))$ is possible improving the known bound $O(\log\log(n))$.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.