generate 100 4-predicate-8and sats

This commit is contained in:
Daniel Tsvetkov 2020-02-21 15:52:34 +01:00
parent 5129fd468a
commit fcca3afacc

12
3sat.py
View File

@ -92,10 +92,14 @@ def classical_3sat(func):
def main():
gen_3sat = SAT(predicates=4)
gen_3sat.generate(ands=1)
gen_3sat.show()
pprint(classical_3sat(gen_3sat))
rv = []
for _ in range(100):
gen_3sat = SAT(predicates=4)
gen_3sat.generate(ands=8)
# gen_3sat.show()
sols = classical_3sat(gen_3sat)
rv.append(len(sols))
print(sorted(rv))
if __name__ == "__main__":