实现对所有位的加法和访问的位集
这个问题与这个相关,因为我正在寻找一种添加位集的方法(-像)结构。 我需要像位集这样的东西,它可以存储至少 2400 位,并且可以(随机)访问所有这些。该类必须具备的第二个重要能力是加法,我需要能够添加至少 1。由于可能的大小(大约 2,96 x10),数字表示不起作用(我猜) ^722 和不舒服的位访问。 是否有任何已知的有效实施?
This question is related to this one, as I am looking for a way for adding bitset(-like) structures.
I need something like a bitset which can store at least 2400bits, and can (random) access all of them. The second important ability the class has to have is addition, I need to be able to add at least 1. The representation as a number wouldn't work (I guess) due to the possible size, which would be around 2,96 x10^722 and the uncomfortable bit access.
Is there any known efficient implementation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 XInt。它被开发为 boost 的候选者。
Take a look at XInt. It is developed as a candidate for boost.