sybila / biodivine-lib-bdd

A small library for BDD manipulation in Rust. Part of the BioDivine toolset.
MIT License
20 stars 4 forks source link

Random picking of clauses/valuations. #27

Closed daemontus closed 3 years ago

daemontus commented 3 years ago

This PR resolves issue #23. It adds new methods that allow to pick valuations and clauses based on values provided by a random number generator. Sadly, the distribution used by these methods is not uniform, but it should be sufficient for now (A uniform approach is possible, but requires pre-computation of cardinality for each node).

Additionally, path was renamed to clause to better mimic logical terminology.