Combinatorics of Reduced Ordered Binary Decision Diagrams: Application to uniform random sampling

11/09/2022
by   Julien Clément, et al.
0

Since three decades binary decision diagrams, representing efficiently Boolean functions, are widely used, in many distinct contexts like model verification, machine learning. The most famous variant, called reduced ordered binary decision diagram (ROBDD for short), can be viewed as the result of a compaction procedure on the full decision tree. In this paper we aim at computing the exact distribution of the Boolean functions in k variables according to the ROBDD size, where the ROBDD size is equal to the size of the underlying directed acyclic graph (DAG) structure. Recall the number of Boolean functions is equal to 2^2^k, which is of double exponential growth; hence a combinatorial explosion is to be expected. The maximal size of a ROBDD with k variables is M_k ∼ 2^k / k and thus, the support of the ROBDD size distribution is also of length M_k, making M_k a natural complexity unit for our problem. In this paper, we develop the first polynomial algorithm to derive the distribution of the Boolean functions with respect to their ROBDD sizes. The algorithm is essentially quartic in M_k for the time complexity and quadratic for the space complexity. The main obstacle is to take into account dependencies inside the DAG structure, and we propose a new combinatorial counting procedure reminiscent of the inclusion-exclusion principle. As a by-product, we present an efficient polynomial unranking algorithm for ROBDDs, which in turn yields a uniform random sampler over the set of ROBDDs of a given size or of a given profile. This is a great improvement to the uniform sampler over the set of all Boolean functions in k variables. Indeed, due to the Shannon effect, the uniform distribution over Boolean functions is heavily biased to extremely complex functions, with near maximal ROBDD size, thus preventing to sample small ROBDDs

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/15/2019

Binary Decision Diagrams: from Tree Compaction to Sampling

Any Boolean function corresponds with a complete full binary decision tr...
research
02/13/2018

On the Relative Succinctness of Sentential Decision Diagrams

Sentential decision diagrams (SDDs) introduced by Darwiche in 2011 are a...
research
09/26/2022

Lower Bound Proof for the Size of BDDs representing a Shifted Addition

Decision Diagrams(DDs) are one of the most popular representations for b...
research
10/18/2016

Weighted Positive Binary Decision Diagrams for Exact Probabilistic Inference

Recent work on weighted model counting has been very successfully applie...
research
04/06/2020

Variable Shift SDD: A More Succinct Sentential Decision Diagram

The Sentential Decision Diagram (SDD) is a tractable representation of B...
research
10/17/2017

Chain Reduction for Binary and Zero-Suppressed Decision Diagrams

Chain reduction enables reduced ordered binary decision diagrams (BDDs) ...
research
06/08/2023

Boosting-based Construction of BDDs for Linear Threshold Functions and Its Application to Verification of Neural Networks

Understanding the characteristics of neural networks is important but di...

Please sign up or login with your details

Forgot password? Click here to reset