Skip to content

grahamseamans/monopoles-satsolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Graham Seamans - HW2 - Monopoles (the satening)

To Run

python3 monosat.py m n >instance.sat
./minisat instance.sat instance.soln
python3 unmonosat.py m n <instance.soln

(the included shell script does this)

minisat can be found here: http://minisat.se/MiniSat.html

Talking About The Assignment

The problem is: there are n rooms and m monopoles, all monopoles must be placed into rooms and no two monopoles in one room can add to another monopole in the same room (ie 1, 2 and 3 can't be in the same room, and neither can 2, 4, and 6)

This program will find solutions given n and m, but not for really large examples.

there are some messy bits that could be faster, but the minisat (which is amazing) blows up with n much more than my code. So I've left my code as is.

About

project for artificial intelligence class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published