Comments (5)
My understanding is that Cudd_bddAndAbstract
should be equivalent to bdd_a.and(&bdd_b).project(&[v1, v2, ... vk])
. Is this correct?
(I haven't used bddAndAbstract
before and CUDD documentation is a bit sparse, so please let me know if I understand the function correctly)
Anyway, I don't believe we have a more direct method right now to compute this, and this is definitely not optimal in terms of performance (the project
method needs more optimisation, it is rather naive at this point).
But it would certainly be nice to have a native implementation for this. I'll see what we can do...
from biodivine-lib-bdd.
My understanding is that
Cudd_bddAndAbstract
should be equivalent tobdd_a.and(&bdd_b).project(&[v1, v2, ... vk])
. Is this correct?
Logic is equivalent, but the efficiency is different. In some areas, (for example, model checking), a & b is very huge, but the finally result is not to much. AndAbstract allows for projecting certain variables while performing logical AND operation.
Anyway, I don't believe we have a more direct method right now to compute this, and this is definitely not optimal in terms of performance (the
project
method needs more optimisation, it is rather naive at this point).But it would certainly be nice to have a native implementation for this. I'll see what we can do...
Ok, thanks!
from biodivine-lib-bdd.
I see, the efficiency is a good point... I looked at the algorithm for bddAndAbstract
. It seems that we indeed don't have it in the library yet, but it should (hopefully) be reasonably easy to implement :)
I'll try to have a look at it later this week.
from biodivine-lib-bdd.
Thanks!
from biodivine-lib-bdd.
With version 0.5.0
it is now possible to implement AndAbstract
as follows:
Bdd::binary_op_with_exists(arg_1, arg_2, &[v1, v2, ...], biodivine_lib_bdd::op_function::and)
- The new algorithm indeed performs a single "BDD operation" in this case.
- You can substitute
op_function::and
for any other valid function to implement other logical operators. - There is a variant with
for_all
instead ofexists
for the second type of abstraction.
For now, I haven't added an equivalent method to AndAbstract
explicitly, because then I should probably also add methods for other operations and the matrix of combinations blows up quite quickly (and/or/implies/iff/xor times exists/for_all). But maybe in the future...
There are multiple correctness tests, so I am fairly confident the algorithm is ok. However, I haven't tested the performance on any practical problem yet. So if you see any weird performance with this algorithm, please let me know.
from biodivine-lib-bdd.
Related Issues (20)
- Faster projection/selection/restriction algorithms. HOT 1
- Functions `read_as_string` a `write_as_string` are private HOT 1
- Add a restrict algorithm HOT 5
- A greedy `pick` implementation
- Implementation of `infer_regulatory_graph` can use too much memory HOT 1
- Allow BDD operations to execute as interruptible async functions
- Isses with BDD serialisation on buffered reader/writer HOT 1
- Convert `BddValuation` back to `Bdd`. HOT 1
- Reconsider `Ord` trait on `BddValuation` HOT 1
- Add linear-time algorithm for BDD -> CNF conversion HOT 1
- Add algorithm to build BDD satisfied by valuations of size `k`. HOT 1
- support if_then_else op HOT 3
- Ensure uniform sampling for randomized operations
- Implement `From BddValuation for BddPartialValuation` HOT 1
- Self-referential substitution
- Add the "optimized DNF" introduced in `balm` HOT 1
- Faster `restrict` algorithm HOT 1
- Provide generic `BddVariableSet` that does not necessarily rely on string names HOT 1
- Support `Conditional` ternary operator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biodivine-lib-bdd.