views:

31

answers:

1

Hi,

I a totally new to sat4j solver..

it says some cnf file should be given as input

is there any possible way to give the rule as input and get whether it is satisfiable or not?

my rule will be of the kind

alt text

Can ssomeone help me how to solve this using sat4j solver?

A: 

Did you review the SAT4J Howto on their website? It includes a link to a Postscript document detailing the semantics of the CNF format. The format seems to support all the operators you use in your example, except "<->", but that just might be an omission in this specific "unofficial" document.

Chris S
yes.. but is there any program to convert given expression automatically to CNF format? as I'll be generating many such expressions and it cant be manually done.. And what is the difference between SMT solver and SAT solver?
karthi