Compiling finite decision trees to CNF and DNF #
An accepting path of length at most d becomes a DNF term of width at most
d. De Morgan duality gives a CNF with the same bounds. Both normal forms
compute exactly the original tree, have at most one component per leaf, and
therefore have at most 2 ^ d terms or clauses.
The accepting-path DNF has at most one term per decision-tree leaf.
The dual CNF has at most one clause per decision-tree leaf.
A depth-d decision tree compiles to a DNF with at most 2 ^ d terms.
A depth-d decision tree compiles to a CNF with at most 2 ^ d clauses.