- java.lang.Object
-
- org.logicng.transformations.CanonicalEnumeration
-
- Direct Known Subclasses:
CanonicalCNFEnumeration,CanonicalDNFEnumeration
public abstract class CanonicalEnumeration extends Object
Superclass for canonical normal form enumeration (CNF or DNF) via enumeration of the falsifying/satisfying assignments.- Since:
- 2.3.0
- Version:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description CanonicalEnumeration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Formulacompute(Formula formula, boolean cnf)Constructs the canonical CNF/DNF of the given formula by enumerating the falsifying/satisfying assignments.
-
-
-
Method Detail
-
compute
protected static Formula compute(Formula formula, boolean cnf)
Constructs the canonical CNF/DNF of the given formula by enumerating the falsifying/satisfying assignments.- Parameters:
formula- the formulacnf-trueif the canonical CNF should be computed,falseif the canonical DNF should be computed- Returns:
- the canonical normal form (CNF or DNF) of the formula
-
-