A Non-Oblivious Reduction of Counting Ones to Multiplication

Abstract

An algorithm counting the number of ones in a binary word is presented running in time O( b) where b is the number of ones. The operations available include bit-wise logical operations and multiplication.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…