- java.lang.Object
-
- org.logicng.knowledgecompilation.dnnf.datastructures.dtree.DTree
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]staticSeparatorprotected int[]staticVariablesprotected BitSetstaticVarSet
-
Constructor Summary
Constructors Constructor Description DTree()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcountUnsubsumedOccurrences(int[] occurrences)Counts the number of unsubsumed occurrences for each variable in occurrences.abstract intdepth()Returns the depth of this tree.abstract BitSetdynamicSeparator()The dynamic separator of this DTree.abstract voidinitialize(DnnfSatSolver solver)Initializes the DTree.abstract intsize()Returns the size of the DTree.BitSetstaticVarSet()Returns all variables of this DTree.abstract intwidestSeparator()Returns the widest separator of this tree.
-
-
-
Field Detail
-
staticVariables
protected int[] staticVariables
-
staticVarSet
protected BitSet staticVarSet
-
staticSeparator
protected int[] staticSeparator
-
-
Method Detail
-
initialize
public abstract void initialize(DnnfSatSolver solver)
Initializes the DTree.- Parameters:
solver- a specializes DNNF SAT solver
-
size
public abstract int size()
Returns the size of the DTree.- Returns:
- the size of the DTree
-
staticVarSet
public BitSet staticVarSet()
Returns all variables of this DTree.Since this set of variables can be cached, this is a constant time operation.
- Returns:
- all variables of this DTree
-
dynamicSeparator
public abstract BitSet dynamicSeparator()
The dynamic separator of this DTree. "Dynamic" means that subsumed clauses are ignored during the separator computation.- Returns:
- The dynamic separator of this DTree
-
countUnsubsumedOccurrences
public abstract void countUnsubsumedOccurrences(int[] occurrences)
Counts the number of unsubsumed occurrences for each variable in occurrences.The parameter occurrences should be modified by the method accordingly.
- Parameters:
occurrences- The current number of occurrences for each variable which should be modified accordingly
-
depth
public abstract int depth()
Returns the depth of this tree.- Returns:
- the depth of this tree
-
widestSeparator
public abstract int widestSeparator()
Returns the widest separator of this tree.- Returns:
- the widest separator
-
-