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

#452 in Data structures

Download history 3103/week @ 2024-01-11 3192/week @ 2024-01-18 2724/week @ 2024-01-25 1829/week @ 2024-02-01 2788/week @ 2024-02-08 2373/week @ 2024-02-15 3296/week @ 2024-02-22 2498/week @ 2024-02-29 2309/week @ 2024-03-07 1969/week @ 2024-03-14 2446/week @ 2024-03-21 1336/week @ 2024-03-28 1915/week @ 2024-04-04 2833/week @ 2024-04-11 3711/week @ 2024-04-18 3473/week @ 2024-04-25

12,199 downloads per month
Used in 8 crates (4 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