arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.04938cs.DSmath.CO
收藏

一种计算约简有序二叉决策图数量的迭代方法

An iterative approach for counting reduced ordered binary decision diagrams

Julien Clément, Antoine Genitrini

AI总结:

本文提出首个多项式算法,通过逐层分解与容斥论证计算k变量布尔函数按ROBDD规模的精确分布,时间复杂度为O(k n^4)。

摘要:

三十年来,二叉决策图作为一种高效表示布尔函数的数据结构,已在模型验证、机器学习、密码学以及组合问题求解等许多不同领域中得到广泛应用。最著名的变体称为约简有序二叉决策图(简称ROBDD),可以看作是对完整决策树进行压缩过程的结果。一个有用的性质是:一旦布尔变量的顺序固定,每个布尔函数都恰好由一个ROBDD表示。本文旨在根据ROBDD规模计算k个变量上布尔函数的精确分布,其中ROBDD规模等于底层有向无环图(简称DAG)结构中决策节点的数量。回顾可知,k个变量的布尔函数数量为2^{2^k},其相对于变量数量呈双重指数增长。具有k个变量的ROBDD的最大规模为M_k ≈ 2^k / k。除了观察到的自然组合爆炸之外,按规模计算分布的另一个困难在于必须考虑ROBDD的DAG结构内部的依赖关系。在本文中,我们提出了第一个多项式算法,用于推导k个变量上布尔函数关于ROBDD规模(记为n)的分布。该算法计算规模不超过n的k变量ROBDD的(枚举)生成函数。它在整数上执行O(k n^4)次算术运算,并且需要存储O((k+n) n^2)个比特长度为O(n log n)的整数。我们的新方法依赖于ROBDD逐层分解以及一个容斥论证。

英文摘要:

For three decades binary decision diagrams, a data structure efficiently representing Boolean functions, have been widely used in many distinct contexts like model verification, machine learning, cryptography and also resolution of combinatorial problems. 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. A useful property is that once an order over the Boolean variables is fixed, each Boolean function is represented by exactly one ROBDD. 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 number of decision nodes of the underlying directed acyclic graph (DAG for short) structure. Recall the number of Boolean functions with $k$ variables is equal to $2^{2^k}$, which is of double exponential growth with respect to the number of variables. The maximal size of a ROBDD with $k$ variables is $M_k \approx 2^k / k$. Apart from the natural combinatorial explosion observed, another difficulty for computing the distribution according to size is to take into account dependencies within the DAG structure of ROBDDs. In this paper, we develop the first polynomial algorithm to derive the distribution of Boolean functions over $k$ variables with respect to ROBDD size denoted by $n$. The algorithm computes the (enumerative) generating function of ROBDDs with $k$ variables up to size $n$. It performs $O(k n^4)$ arithmetical operations on integers and necessitates storing $O((k+n) n^2)$ integers with bit length $O(n\log n)$. Our new approach relies on a decomposition of ROBDDs layer by layer and on an inclusion-exclusion argument.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑