Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.39 KB

File metadata and controls

23 lines (17 loc) · 1.39 KB

Random Urns

A Rust implementation of Urns (Lampropulos et al. 2017), a data structure which allows for random sampling and updating discrete distributions in logarithmic time.

For details about the design behind urns, see the original paper or the Haskell Symposium '17 talk.

This implementation has been adapted from:

Code overview

To compile, run cargo build.
To run unit tests + QuickCheck tests, run cargo test.

Dependencies:

  • rand (for random number generation)
  • quickcheck (only used for testing internal functions)