全部搜尋項
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: golang-github-willf-bloom  ]

套件:golang-github-willf-bloom-dev(2.0.3+git20190228.25ba46e-2)

golang-github-willf-bloom-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 golang-github-willf-bloom

維護小組:

外部的資源:

相似套件:

Go package implementing Bloom filters

A Bloom filter is a representation of a set of n items, where the main requirement is to make membership queries; i.e., whether an item is a member of a set.

A Bloom filter has two parameters: m, a maximum size (typically a reasonably large multiple of the cardinality of the set to represent) and k, the number of hashing functions on elements of the set. (The actual hashing functions are important, too, but this is not a parameter for this implementation). A Bloom filter is backed by a BitSet (https://github.com/willf/bitset); a key is represented in the filter by setting the bits at each value of the hashing functions (modulo m). Set membership is done by testing whether the bits at each value of the hashing functions (again, modulo m) are set. If so, the item is in the set. If the item is actually in the set, a Bloom filter will never fail (the true positive rate is 1.0); but it is susceptible to false positives. The art is to choose k and m correctly.

In this implementation, the hashing functions used is murmurhash (github.com/spaolacci/murmur3), a non-cryptographic hashing function.

其他與 golang-github-willf-bloom-dev 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-willf-bloom-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 8。6 kB37。0 kB [檔案列表]