Single Family Algebra Operation on BDDs and ZDDs Leads To Exponential Blow-Up
Kengo Nakamura, Masaaki Nishino, Shuhei Denzumi
TL;DR
The paper proves that most Knuth-style family algebra operations on ZDDs/BDDs admit no polynomial-time bound in the worst case, producing exponential growth in the output size even when input sizes are polynomial and the element order is favourable. It constructs specific polynomial-size families, such as the hidden weighted bit function $\mathcal{H}_m$ and the permutation function $\mathcal{P}_m$, to force exponential blow-ups for joins, quotients, and related operations, and shows this persists under arbitrary element ordering. The authors provide detailed lower-bound constructions for join, quotient, restrict, and other operations, and extend the results to both ZDDs and BDDs, resolving open questions about the complexity of the latter. The findings have practical implications for the use of BDD/ZDD-based family algebra in applications, indicating that worst-case blow-up cannot generally be avoided by reordering or dynamic reordering strategies in standard packages. Overall, the work delineates which family-algebra operations can be performed in polynomial time and which inherently incur exponential time in the worst case.
Abstract
Binary decision diagram (BDD) and zero-suppressed binary decision diagram (ZDD) are data structures to represent a family of (sub)sets compactly, and it can be used as succinct indexes for a family of sets. To build BDD/ZDD representing a desired family of sets, there are many transformation operations that take BDDs/ZDDs as inputs and output BDD/ZDD representing the resultant family after performing operations such as set union and intersection. However, except for some basic operations, the worst-time complexity of taking such transformation on BDDs/ZDDs has not been extensively studied, and some contradictory statements about it have arisen in the literature. In this paper, we show that many transformation operations on BDDs/ZDDs, including all operations for families of sets that appear in Knuth's book, cannot be performed in worst-case polynomial time in the size of input BDDs/ZDDs. This refutes some of the folklore circulated in past literature and resolves an open problem raised by Knuth. Our results are stronger in that such blow-up of computational time occurs even when the ordering, which has a significant impact on the efficiency of treating BDDs/ZDDs, is chosen arbitrarily.
