Compiling finite decision trees to CNF and DNF -- definitions #
Each accepting root-to-leaf path becomes one DNF term. A false branch records the negative query literal and a true branch records the positive literal. The dual CNF is obtained by compiling the leaf-complemented tree and applying De Morgan negation.
DNF terms corresponding to the accepting paths of a finite decision tree.
Equations
- One or more equations did not get rendered due to their size.
- (Complexity.DecisionTree.On.leaf false).toDNFTerms = []
- (Complexity.DecisionTree.On.leaf true).toDNFTerms = [[]]
Instances For
Compile a finite decision tree to a DNF with one term per accepting path.
Equations
- tree.toDNF = { terms := tree.toDNFTerms }
Instances For
Compile a disjunction of decision trees to one DNF.
Equations
Instances For
Compile a conjunction of decision trees to one CNF.