- java.lang.Object
-
- org.logicng.knowledgecompilation.bdds.orderings.ForceOrdering
-
- All Implemented Interfaces:
VariableOrderingProvider
public final class ForceOrdering extends Object implements VariableOrderingProvider
Simple implementation of the FORCE BDD variable ordering due to Aloul, Markov, and Sakallah. This ordering only works for CNF formulas. A formula has to be converted to CNF before this ordering is called.- Since:
- 1.4.0
- Version:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description ForceOrdering()
-
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
-
-