7 releases (breaking)

0.7.0 Jun 13, 2022
0.6.0 Apr 27, 2019
0.5.0 Dec 22, 2018
0.4.0 Aug 23, 2018
0.1.0 Oct 7, 2017

#467 in Data structures

Download history 1435/week @ 2023-12-16 906/week @ 2023-12-23 4473/week @ 2023-12-30 3632/week @ 2024-01-06 3247/week @ 2024-01-13 2811/week @ 2024-01-20 2724/week @ 2024-01-27 1645/week @ 2024-02-03 2922/week @ 2024-02-10 2564/week @ 2024-02-17 3035/week @ 2024-02-24 2543/week @ 2024-03-02 1810/week @ 2024-03-09 2427/week @ 2024-03-16 2110/week @ 2024-03-23 1247/week @ 2024-03-30

7,856 downloads per month
Used in 5 crates (2 directly)

MIT/Apache

340KB
9K SLoC

pdatastructs

A collection of data structures that are based probability theory and therefore only provide the correct answer if a certain probability. In exchange they have a better runtime and memory complexity compared to traditional data structures.

Build Status Crates.io Documentation License

The following data structures are implemented:

  • CountMinSketch
  • Filters:
    • BloomFilter
    • CuckooFilter
    • QuotientFilter
  • HyperLogLog
  • ReservoirSampling
  • T-Digest
  • Top-K:
    • CMSHeap
    • LossyCounter

License

Licensed under either of these:

Contributing

Unless you explicitly state otherwise, any contribution you intentionally submit for inclusion in the work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~16K SLoC