Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanFormula ¶
func CleanFormula(f *Formula)
Types ¶
type Formula ¶
func CloneFormula ¶
func GenerateUniform3SAT ¶
GenerateUniform3SAT generates a random 3SAT problem m is the number of clauses n is the number of variables
type Interpretation ¶
func FromVariables ¶
func FromVariables(vars []*Variable) Interpretation
func FromVariablesMap ¶
func FromVariablesMap(vars map[string]*Variable) Interpretation
func Solve ¶
func Solve(f Formula, heuristic func(Formula) *Variable) (Interpretation, error)
Solve returns an Interpretation under which the formula is satisfiable or an error if the formula is unsatisfiable
func (Interpretation) String ¶
func (i Interpretation) String() string
type Variable ¶
func FirstUnassigned ¶
func JeroslowWang ¶
func MaximumOccurrences ¶
func RandomUnassigned ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.