arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1108.3860cs.CC
收藏

一种计算1的SWAR方法

A SWAR Approach to Counting Ones

Holger Petersen

摘要:

我们调查的复杂性算法计数1在不同的操作集。对于加法和逻辑运算(但没有移位),$O(\log^2(n))$步骤足以计数1。奇偶校验可以用复杂度$O(\log(n))$计算,这与使用移位运算的方法的界限相同。如果乘法是可用的,时间复杂度$O(\log^*(n))$的解决方案是可能的,改善已知的界限$O(\log\log(n))$。

英文摘要:

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))$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑