I tried writing a SAT solver with CDCL:https://gist.github.com/rrika/1f5756e4334c0269be20b811e7e64d04 …
-
-
Replying to @rrika9
This is so cool!
However, I can't use it on any nontrivial DIMACS inputs because of deep recursion. Adding something like "sys.setrecursionlimit(1000000)" seems to fix it.pic.twitter.com/jlgPo6v9IX
1 reply 0 retweets 1 like -
Replying to @oe1cxw
oh god, I didn't expect anyone would actually try to run it. it prints the entire assignment every line, so stdout gets quite crowded for any non-tiny instance
1 reply 0 retweets 1 like -
Replying to @rrika9
Solving the uum8.smt2-stp212.cnf instance from SATCOMP2016 right now (should be unsat, MiniSAT can solve it in 11 seconds). If sat.py can solve it in less than one hour I would say that's a huge success. ;)pic.twitter.com/Yt9G2dalzP
1 reply 0 retweets 1 like -
-
Replying to @rrika9
Can you update the gist with your changes? I'm curious to see what those tweaks are. The old version is now running for almost 4 hours here..
1 reply 0 retweets 0 likes -
Replying to @oe1cxw
change "random.random() > 0.5" to "random.random() > 0.98"
1 reply 0 retweets 2 likes
44 minutes. That's only 2^8 times slower than MiniSAT. I'd say that's pretty amazing! Re-running without the print statements now.. (srsy? tabs for indenting python? ;)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.