Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent blow-up with or operator #12

Open
yberman opened this issue Jun 10, 2018 · 1 comment
Open

Prevent blow-up with or operator #12

yberman opened this issue Jun 10, 2018 · 1 comment

Comments

@yberman
Copy link
Contributor

yberman commented Jun 10, 2018

The library does distribution directly when ORing two CNFs together. This results in exponential blowup in certain cases

from satispy import Variable as v
reduce(lambda x, y: x|y, [v("x" + str(i)) & v("y" + str(i)) for i in range(100)])

Would it be within the scope of this libraries purpose to not do any algebraic simplifications until a solution is requested at which point it does https://en.wikipedia.org/wiki/Tseytin_transformation to produce a CNF?

@netom
Copy link
Owner

netom commented Jun 20, 2018

That's a good idea, and already did some research on the topic, but haven't implemented anything yet. I hope I can invest some time soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants