java: sparse bit vector

后端 未结 7 2174
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 07:24

Are there any well-known libraries in Java for sparse bit vectors?

(And are there guidelines for how sparse is useful to use them vs. java.util.BitSet?)

相关标签:
7条回答
  • 2021-02-08 08:03

    A hash table where the mere presence or absence of the key tells you something? That would be a hash set then! I'm skeptical of the performance of a set (even a hashed one) over the BitSet. It really depends on whether speed or memory is the primary driver.

    0 讨论(0)
提交回复
热议问题