Module logicng

Class DNFSubsumption

  • All Implemented Interfaces:
    FormulaTransformation

    public final class DNFSubsumption
    extends Subsumption
    implements FormulaTransformation
    This transformation performs subsumption on a given DNF and returns a new DNF. I.e. performs as many subsumptions as possible. A subsumption in a DNF means, that e.g. a minterm A & B & C is subsumed by another minterm A & B and can therefore be deleted for an equivalent DNF.
    Since:
    1.5.0
    Version:
    2.3.0
    • Constructor Detail

      • DNFSubsumption

        @Deprecated
        public DNFSubsumption()
        Deprecated.
        In the next version, the standard constructor will be replaced by a private constructor. In order to instantiate an object of this class, use the get() method.
    • Method Detail

      • get

        public static DNFSubsumption get()
        Returns the singleton instance of this function.
        Returns:
        an instance of this function
      • apply

        public Formula apply​(Formula formula,
                             boolean cache)
        Description copied from interface: FormulaTransformation
        Returns the transformed formula.
        Specified by:
        apply in interface FormulaTransformation
        Parameters:
        formula - the input formula
        cache - indicated whether the result (and associated predicates) should be cached in the formula's cache.
        Returns:
        the transformed formula