Module logicng

Class 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 Detail

      • CanonicalEnumeration

        public CanonicalEnumeration()
    • 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 formula
        cnf - true if the canonical CNF should be computed, false if the canonical DNF should be computed
        Returns:
        the canonical normal form (CNF or DNF) of the formula