A SWAR Approach to Counting Ones

Abstract

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

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…