generate 100 4-predicate-8and sats
This commit is contained in:
parent
5129fd468a
commit
fcca3afacc
10
3sat.py
10
3sat.py
@ -92,10 +92,14 @@ def classical_3sat(func):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
rv = []
|
||||||
|
for _ in range(100):
|
||||||
gen_3sat = SAT(predicates=4)
|
gen_3sat = SAT(predicates=4)
|
||||||
gen_3sat.generate(ands=1)
|
gen_3sat.generate(ands=8)
|
||||||
gen_3sat.show()
|
# gen_3sat.show()
|
||||||
pprint(classical_3sat(gen_3sat))
|
sols = classical_3sat(gen_3sat)
|
||||||
|
rv.append(len(sols))
|
||||||
|
print(sorted(rv))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user