- java.lang.Object
-
- org.logicng.knowledgecompilation.bdds.orderings.MaxToMinOrdering
-
- All Implemented Interfaces:
VariableOrderingProvider
public final class MaxToMinOrdering extends Object implements VariableOrderingProvider
A BDD variable ordering sorting the variables from maximal to minimal occurrence in the input formula. If two variables have the same number of occurrences, their ordering according to their DFS ordering will be considered.- Since:
- 1.4.0
- Version:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description MaxToMinOrdering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Variable>getOrder(Formula formula)Generates a variable ordering for a given formula.
-
-
-
Method Detail
-
getOrder
public List<Variable> getOrder(Formula formula)
Description copied from interface:VariableOrderingProviderGenerates a variable ordering for a given formula. Such a variable ordering can then be used for the initialization of the BDD Kernel inBDDKernel(FormulaFactory, List, int, int).- Specified by:
getOrderin interfaceVariableOrderingProvider- Parameters:
formula- the formula- Returns:
- the variable ordering
-
-