SAT solver

Discussion of Common Lisp
Post Reply
ComputerMike
Posts: 2
Joined: Wed Oct 27, 2010 11:44 am

SAT solver

Post by ComputerMike » Wed Oct 27, 2010 11:48 am

Hello ,
I have to do satisfibility slover program which accept CNF as list and return one model at least for CNF or nil of there is not model ?

for example if function
(SAT '(and (or :X (not :Y) :Z) (or :X :Z) (not :A) :B))
return ((:Z . T) (:B . T) (:A . NIL))


Any help i am stuck i have to do it ASAP !!

thank you for help ,

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: SAT solver

Post by nuntius » Wed Oct 27, 2010 6:12 pm

So what have you written so far? CL, pseudocode, anything?

ComputerMike
Posts: 2
Joined: Wed Oct 27, 2010 11:44 am

Re: SAT solver

Post by ComputerMike » Wed Oct 27, 2010 6:15 pm

I don't know how to start :( please help me guys

JamesF
Posts: 98
Joined: Thu Jul 10, 2008 7:14 pm

Re: SAT solver

Post by JamesF » Wed Oct 27, 2010 6:50 pm

You say you "have to do" this. Is it for a course you're studying? If so, I'd recommend going through your course notes and textbook, and possibly asking your teacher or tutor for some pointers.

The place to start would be understanding the problem: look at what it is that you have to do - what input you need to start with, and what output you need to generate as a result - and figure out the logic of it. The implementation (writing the code) comes after that.

Sorry, but this really does smell like homework. We're happy to help you understand aspects of the language, but we won't do your assignment for you.

Post Reply