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

#355 in Data structures

Download history 1416/week @ 2024-08-03 1401/week @ 2024-08-10 1301/week @ 2024-08-17 1320/week @ 2024-08-24 1398/week @ 2024-08-31 1025/week @ 2024-09-07 846/week @ 2024-09-14 982/week @ 2024-09-21 1047/week @ 2024-09-28 1987/week @ 2024-10-05 1726/week @ 2024-10-12 2138/week @ 2024-10-19 1630/week @ 2024-10-26 1555/week @ 2024-11-02 1206/week @ 2024-11-09 1351/week @ 2024-11-16

6,072 downloads per month
Used in 9 crates (5 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