logichelper.h

00001 #ifndef LOGIC_HELPER_H_NOV_7_2008
00002 #define LOGIC_HELPER_H_NOV_7_2008
00003 
00004 
00005 #include "array.h"
00006 
00007 // This function generate random solutionution to a propositional clause.
00008 // The clause is specificed by two parameters: 1. Number of variables in the clause -- clauseSize; 2. It's a conjunction or disjunction clause, bConjOrDisj.
00009 // Two possible state could be set for the clause: satisfied or not, by bSat.
00010 // Result values are stored in solution.
00011 void GetClauseRandomSolution(int clause_size, bool satisfied, bool conjunction_disjunction, Array<bool>* solution);
00012 
00013 void RecordAtomMakeClauseFalse(const Array<int>& clause, const Array<bool>& atoms, bool conj_disj, Array<int>* record);
00014 void RecordAtomMakeClauseTrue(const Array<int>& clause, const Array<bool>& atoms, bool conj_disj, Array<int>* record);
00015 
00016 
00017 
00018 
00019 #endif

Generated on Sun Jun 7 11:55:16 2009 for Alchemy by  doxygen 1.5.1