Efficient Binary Decision Diagram Manipulation in External Memory
Steffan Christ Sølvsten, Jaco van de Pol, Anna Blume Jakobsen, Mathias Weller Berg Thomasen
TL;DR
This work tackles the bottleneck of manipulating large BDDs that exceed main memory by introducing time-forward processing for I/O-efficient BDD algorithms. It presents Adiar, a new BDD package that implements simplified and improved Apply/Reduce and extends the approach to additional operators, leveraging an arc-based representation and a levelized priority queue. The experimental results show Adiar can handle BDDs larger than memory and achieve competitive performance, with slowdown factors that are acceptable given the memory savings and disk-based scalability; equality checks are improved to $O(\text{sort}(N))$-type bounds. The practical impact is a viable external-memory BDD tool suitable for symbolic model checking and other applications requiring very large BDDs, with clear directions for future enhancements such as deeper equality optimization and broader operator support.
Abstract
We follow up on the idea of Lars Arge to rephrase the Reduce and Apply procedures of Binary Decision Diagrams (BDDs) as iterative I/O-efficient algorithms. We identify multiple avenues to simplify and improve the performance of his proposed algorithms. Furthermore, we extend the technique to other common BDD operations, many of which are not derivable using Apply operations alone, and we provide asymptotic improvements for the procedures that can be derived using Apply. These algorithms are implemented in a new BDD package, named Adiar. We see very promising results when comparing the performance of Adiar with conventional BDD packages that use recursive depth-first algorithms. For instances larger than 8.2 GiB, our algorithms, in parts using the disk, are 1.47 to 3.69 times slower compared to CUDD and Sylvan, exclusively using main memory. Yet, our proposed techniques are able to obtain this performance at a fraction of the main memory needed by conventional BDD packages to function. Furthermore, with Adiar we are able to manipulate BDDs that outgrow main memory and so surpass the limits of other BDD packages.
