Skip to main content
Log in

On the Relative Succinctness of Sentential Decision Diagrams

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

Sentential decision diagrams (SDDs) introduced by Darwiche in 2011 are a promising representation language for propositional knowledge bases. The relative succinctness of representation languages is an important subject in knowledge compilation. The aim of the paper is to identify which kind of Boolean functions can be represented by SDDs of small size with respect to the number of variables the functions are defined on. For this reason the sets of Boolean functions representable by different representation languages in polynomial size are investigated and SDDs are compared with representation languages from the classical knowledge compilation map of Darwiche and Marquis. Ordered binary decision diagrams (OBDDs) which are a popular data structure for Boolean functions are one of them. SDDs are more general than OBDDs by definition but only recently, a Boolean function was presented with polynomial SDD size but exponential OBDD size. This result is strengthened in several ways. The main result is that a function can be represented by SDDs of small size if the function and its negation have small restricted nondeterministic OBDD representations. Moreover, for important Boolean functions called storage access function polynomial-size SDDs are presented. As a side effect an open problem about the relative succinctness between SDDs and free binary decision diagrams which are more general than OBDDs is answered.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  1. Beame, P., Li, J., Roy, S., Suciu, D.: Lower bounds for exact model counting and applications in probabilistic databases. In: Proceedings of the 29th conference on uncertainty in artificial intelligence, UAI, pp. 157–162 (2013)

  2. Beame, P., Liew, V.: New limits for knowledge compilation and applications to exact model counting. In: Proceedings of the 31st conference on uncertainty in artificial intelligence, UAI, pp. 131–140 (2015)

  3. Bollig, B., Buttkus, M.: On the relative succinctness of sentential decision diagrams. CoRR arXiv:1802.04544 (2018)

  4. Bollig, B., Löbbing, M., Sauerhoff, M., Wegener, I.: On the complexity of the hidden weighted bit function for various BDD models. Theor. Inf. Appl. 33 (2), 103–115 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  5. Bollig, B., Sauerhoff, M., Sieling, D., Wegener, I.: Hierarchy theorems for k OBDDs and k IBDDs. Theor. Comput. Sci. 205, 45–60 (1998)

    Article  MATH  Google Scholar 

  6. Bollig, B., Sauerhoff, M., Sieling, D., Wegener, I.: Binary decision diagrams. In: Crama, Y., Hammer, P. (eds.) Boolean models and methods in mathematics, computer science, and engineering, chap. 10. Cambridge University Press (2010)

  7. Bollig, B., Wegener, I.: Complexity theoretical results on partitioned (nondeterministic) binary decision diagrams. Theory Comput. Syst. 32(4), 487–503 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  8. Bova, S.: SDDs are exponentially more succinct than OBDDs. In: Proceedings of the 30th conference on artificial intelligence, AAAI, pp. 929–935 (2016)

  9. Bova, S., Szeider, S.: Circuit treewidth, sentential decision, and query compilation. In: Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI symposium on principles of database systems, PODS, pp. 233–246 (2017)

  10. Breitbart, Y., Hunt III, H., Rosenkrantz, D.: On the size of binary decision diagrams representing boolean functions. Theor. Comput. Sci. 145(1-2), 45–69 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  11. Bryant, R.: Graph-based algorithms for boolean function manipulation. IEEE Trans. Comput. 35(8), 677–691 (1986)

    Article  MATH  Google Scholar 

  12. Bryant, R.: On the complexity of VLSI implementations and graph representations of boolean functions with application to integer multiplication. IEEE Trans. Comput. 40(2), 205–213 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  13. Cadoli, M., Donini, F.: A survey on knowledge compilation. AI Commun. 10(3, 4), 137–150 (1997)

    Google Scholar 

  14. Darwiche, A.: Decomposable negation normal form. J. ACM, JACM 48(4), 608–647 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  15. Darwiche, A.: SDD: A new canonical representation of propositional knowledge bases. In: Proceedings of the 22nd international joint conference on artificial intelligence, IJCAI, pp. 819–826 (2011)

  16. Darwiche, A., Marquis, P.: A knowledge compilation map. J. Artif. Intell. Res. 17, 229–264 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  17. Huang, J., Darwiche, A.: The language of search. J. Artif. Intell. Res. 29, 191–219 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  18. Kushilevitz, E., Nisan, N.: Communication complexity. Cambridge University Press, New York (1997)

    MATH  Google Scholar 

  19. Marquis, P.: Compile!. In: Proceedings of the 29th conference on artificial intelligence, AAAI, pp. 4112–4118 (2015)

  20. Oztok, U., Darwiche, A.: On compiling CNF into Decision-DNNF. In: Proceedings of the 20th international conference on principles and practice of constraint programming, CP, pp. 42–57 (2014)

  21. Pipatsrisawat, K., Darwiche, A.: New compilation languages based on structured decomposability. In: Proceedings of the 23rd conference on artificial intelligence, AAAI, pp. 517–522 (2008)

  22. Raskin, M.: A superpolynomial lower bound for the size of non-deterministic complement of an unambiguous automaton. In: Proceedings of the 45th international colloquium on automata, languages, and programming, ICALP, pp. 138:1–138:11 (2018)

  23. Razgon, I.: On the read-once property of branching programs and CNFs of bounded treewidth. Algorithmica 75(2), 277–294 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  24. Razgon, I.: On oblivious branching programs with bounded repetition that cannot efficiently compute CNFs of bounded treewidth. Theory Comput. Syst. 61 (3), 755–776 (2017)

    Article  MathSciNet  MATH  Google Scholar 

  25. Sauerhoff, M.: Guess-and-verify versus unrestricted nondeterminism for OBDDs and one-way Turing machines. J. Comput. Syst. Sci. 66(3), 473–495 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  26. Savickỳ, P., žák, S.: A read-once lower bound and a (1,+ k)-hierarchy for branching programs. Theor. Comput. Sci. 238(1-2), 347–362 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  27. Sieling, D., Wegener, I.: Graph driven BDDs - a new data structure for boolean functions. Theor. Comput. Sci. 141(1-2), 283–310 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  28. Van den Broeck, G., Darwiche, A.: On the role of canonicity in knowledge compilation. In: Proceedings of the 29th conference on artificial intelligence, AAAI, pp. 1641–1648 (2015)

  29. Vollmer, H.: Introduction to circuit complexity - a uniform approach. Springer, Berlin (1999)

    Book  MATH  Google Scholar 

  30. Wegener, I.: The complexity of boolean functions. Wiley & Teubner, Stuttgart (1987)

    MATH  Google Scholar 

  31. Wegener, I.: Efficient data structures for Boolean functions. Discret. Math. 136(1-3), 347–372 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  32. Wegener, I.: Branching programs and binary decision diagrams: theory and applications SIAM monographs on discrete mathematics and applications (2000)

  33. Xue, Y., Choi, A., Darwiche, A.: Basing decisions on sentences in decision diagrams. In: Proceedings of the 24th conference on artificial intelligence, AAAI (2012)

Download references

Acknowledgements

The authors would like to thank the referees for several valuable comments and suggestions which helped to improve the readability of the paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Beate Bollig.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix A: Proof of Lemma 1

Proof

We give a proof by contradiction in order to show that Φ is a partition. Suppose to the contrary that there is an ∨-node u of \(\mathcal {F}\) and a (partial) assignment ββ(u) such that the described set of functions Φ is not a partition. So Φ has to violate at least one of the partition properties. It will be shown that the violation of at least one partition property leads to a contradiction.

Let xi be the smallest variable of vars(u) w.r.t. π and Xi = {xi,…,xn}.

Satisfiability

Suppose there is a function φ ∈Φ with φ = ⊥. By definition of \(R^{+}(\mathcal {F}, \beta )\) and \(R^{+}(\overline {\mathcal {F}}, \beta )\) the nodes u1,…,uk,v1,…,vl are no sinks. Therefore, an inner node ui or vj of \(\mathcal {F}\) or \(\overline {\mathcal {F}}\), respectively, represents the constant function ⊥. This is a contradiction to the assumption of \(\mathcal {F}\) and \(\overline {\mathcal {F}}\) being simple.

Disjointness

Suppose there are functions φ1,φ2 ∈Φ with φ1φ2≠⊥. For this purpose, consider the following cases.

  1. 1.

    The functions φ1,φ2 are represented by nodes of the same ∨1-OBDD, i.e., either \(\varphi _{1} = {\Phi }_{u_{i}}\), \(\varphi _{2} = {\Phi }_{u_{j}}\) or \(\varphi _{1} = {\Phi }_{v_{i}}\), \(\varphi _{2} = {\Phi }_{v_{j}}\) holds for ij. Suppose \({\Phi }_{u_{i}} \wedge {\Phi }_{u_{j}} \neq \bot \). According to the definition of \(R^{+}(\mathcal {F}, \beta )\) the assignment β can be extended (maybe differently) such that there are accepting paths for these extensions of β in \(\mathcal {F}\) containing ui and uj. As \({\Phi }_{u_{i}} \wedge {\Phi }_{u_{j}} \neq \bot \) holds, there is an assignment β of Xi (variables not assigned by β) such that \({\Phi }_{u_{i}}[\beta ^{*}] = 1\) and \({\Phi }_{u_{j}}[\beta ^{*}] = 1\). However, if we extend β by β then there are accepting paths for (β,β) in \(\mathcal {F}\) containing ui and uj with ij. Here (β,β) denotes the complete assignment to the variables in X that is consistent with the partial assignments β and β. Because of the maximality of ui and uj w.r.t. Xi (\(\mathcal {F}_{u_{i}}\) cannot be a subgraph of \(\mathcal {F}_{u_{j}}\) or vice versa) we know that there must be two distinct accepting paths. This is a contradiction to the property of \(\mathcal {F}\) being unambiguous. If \({\Phi }_{v_{i}} \wedge {\Phi }_{v_{j}} \neq \bot \) holds, the contradiction can be derived analogously.

  2. 2.

    The functions φ1,φ2 are represented by nodes of \(\mathcal {F}\) and \(\overline {\mathcal {F}}\), i.e., \({\Phi }_{u_{i}} \wedge {\Phi }_{v_{j}} \neq \bot \). Hence, there is an assignment β of Xi such that \({\Phi }_{u_{i}}[\beta ^{*}] = 1\) and \({\Phi }_{v_{j}}[\beta ^{*}] = 1\) leading to accepting paths for β in the subgraphs \(\mathcal {F}_{u_{i}}\) and \(\overline {\mathcal {F}}_{v_{j}}\). By definition of \(R^{+}(\mathcal {F}, \beta )\) and \(R^{+}(\overline {\mathcal {F}}, \beta )\) the assignment β can be extended such that there are accepting paths in \(\mathcal {F}\) and \(\overline {\mathcal {F}}\) containing ui and vj, respectively. Like in the former case β can be extended by β such that there are accepting paths for (β,β) in \(\mathcal {F}\) and \(\overline {\mathcal {F}}\) leading to a contradiction to \({\Phi }_{\mathcal {F}} = \overline {{\Phi }_{\overline {\mathcal {F}}}}\).

Cover

Suppose \({\Phi }_{u_{1}} \vee {\dots } \vee {\Phi }_{u_{k}} \vee {\Phi }_{v_{1}} \vee {\dots } \vee {\Phi }_{v_{l}} \neq \top \). Then, there exists an assignment β of Xi such that \({\Phi }_{u_{1}}[\beta ^{*}] = {\dots } = {\Phi }_{u_{k}}[\beta ^{*}] = {\Phi }_{v_{1}}[\beta ^{*}] = {\dots } = {\Phi }_{v_{l}}[\beta ^{*}] = 0\). Hence, there is no accepting path for β in \(\mathcal {F}_{u_{1}}, \dots , \mathcal {F}_{u_{k}}, \overline {\mathcal {F}}_{v_{1}}, \dots , \overline {\mathcal {F}}_{v_{l}}\). Since every accepting path for an extension of β in \(\mathcal {F}\) and \(\overline {\mathcal {F}}\) contains exactly one node from u1,…,uk,v1,…,vl, it is not possible to extend β by β resulting in an accepting path in \(\mathcal {F}\) or \(\overline {\mathcal {F}}\). This is a contradiction to \({\Phi }_{\mathcal {F}} \vee \overline {{\Phi }_{\overline {\mathcal {F}}}} = \top \).

Now, we get the claimed lemma because the violation of at least one partition property leads to a contradiction. □

Appendix B: Proof of Proposition 1

Proof

We even prove a more general result than given in Proposition 1. Let f be a Boolean function such that f and \(\overline {f}\) can be represented by polynomial-size unambiguous nondeterministic OBDDs with only one nondeterministic node at the beginning and both OBDDs respect the same variable ordering. Let Gf be the given unambiguous nondeterministic OBDD representing f and \(G_{\overline {f}}\) be the one for \(\overline {f}\). Then f can also be represented by SDDs of polynomial size and the SDD size is bounded above by \(\mathcal {O}(|G_{f}|+ |G_{\overline {f}}|)\).

A Boolean function f is equal to \((f\wedge \top )\vee (\overline {f}\wedge \bot )\). Due to our assumptions the Boolean function f can be written as f11f12 ∨⋯ ∨ f1k and the function \(\overline {f}\) as \(\overline {f}_{01}\vee \overline {f}_{02} \vee {\cdots } \vee \overline {f}_{0\ell }\), where f11,f12,…,f1k and \(\overline {f}_{01}, \overline {f}_{02}, {\ldots } , \overline {f}_{0\ell }\) can be represented by deterministic OBDDs of polynomial size with respect to a variable ordering π and k and are polynomially bounded. Moreover, f11,f12,…,f1k and \(\overline {f}_{01}, \overline {f}_{02}, {\ldots } , \overline {f}_{0\ell }\) are a partition. Therefore, f11,f12,…,f1k and \(\overline {f}_{01}, \overline {f}_{02}, {\ldots } , \overline {f}_{0\ell }\) can all be represented by SDDs of polynomial size with respect to a vtree T that corresponds to the variable ordering π.

The conjunction f ∧⊤ is equal to (f11 ∧⊤) ∨ (f12 ∧⊤) ∨⋯ ∨ (f1k ∧⊤) and \(\overline {f}\wedge \bot \) is equal to \((\overline {f}_{01}\wedge \bot )\vee (\overline {f}_{02}\wedge \bot ) \vee {\cdots } \vee (\overline {f}_{0\ell }\wedge \bot )\). Now, we generate a new vtree T with root q. T is the left subtree of q and a leaf labeled by an auxiliary variable h is the right subtree. Altogether we obtain the result that the disjunction of (f11 ∧⊤) ∨ (f12 ∧⊤) ∨… ∨ (f1k ∧⊤) and \((\overline {f}_{01}\wedge \bot )\vee (\overline {f}_{02}\wedge \bot ) \vee {\cdots } \vee (\overline {f}_{0\ell }\wedge \bot )\) can be represented by an SDD of polynomial size with respect to the vtree T. □

Appendix C: Proof of Lemma 4

Proof

Our aim is to prove that each function representable by a k-OBDD of polynomial size, where k is an arbitrary constant, can also be represented by an unambiguous nondeterministic OBDD of polynomial size with only one nondeterministic node at the beginning. For this reason we present a polynomial transformation from k-OBDDs into equivalent restricted unambiguous nondeterministic OBDDs. The following construction was first used in [5] proving that the satisfiability problem can be solved in polynomial time for functions represented by k-OBDDs. Later it was also used in [7] in order to prove that k-OBDDs can be polynomially transformed into OBDDs which use so-called parity nondeterminism.

Let f be the function represented by a given k-OBDD G and let k be a constant. We start with the observation that there is exactly one accepting path for each 1-input in a k-OBDD since it is a deterministic model. Now, the crucial idea is a suitable decomposition of a given k-OBDD G. For this we consider the at most s = |G|k− 1 possibilities to switch between the layers of G. The i-th auxiliary function, 1 ≤ is, equals 1 for the 1-inputs of f that choose the i-th possibility which means that the accepting paths for these inputs run through the layers of the given k-OBDD G in the chosen way. Such an auxiliary function can be represented by an OBDD of size |G|k by combining parts of the k-OBDD via conjunction. Here we use the fact that in a k-OBDD all layers respect the same variable ordering. (OBDDs in general do not have nice algorithmic properties. There are examples known such that gn and hn are two Boolean functions which have OBDDs of linear size (for different variable orderings) but fn = gnhn has even exponential nondeterministic FBDD size. The so-called permutation test function is an example of such a function fn. If only OBDDs respecting the same variable ordering are considered, all important operations can be performed efficiently. For more details see, e.g., [32].)

Next, we describe these ideas more precisely. Let G1,…,Gk be the layers of G. If b is a 1-input, the accepting path for b leads through some layers (1) = 1 < (2) < ⋯ < (r) ≤ k of G, where v1 is the source of G, G(i) is reached at some node vi, and from some node in G(r) the sink labeled by 1 is reached. There are at most |G|k− 1 possibilities to choose r,(2),…,(r),v2,…,vr. For an arbitrary but fixed choice of these parameters we consider the layers G(1),…,G(r) and the sinks. We transform G(i), i ∈{1,…,r}, into an OBDD \(G^{\prime }_{\ell (i)}\) with source vi in the following way. An edge leaving G(i) is replaced by an edge to a 1-sink if either i < r and the edge leads to vi+ 1 or i = r and the edge leads to the 1-sink. All other edges leaving a node in G(i) are replaced by edges to the 0-sink. Now, \(G^{\prime }_{\ell (i)}\) consists of all nodes (and corresponding edges) reachable from vi. The function represented by G has a 1-input iff for some r,(2),…,(r),v2,…,vr the corresponding OBDDs \(G^{\prime }_{\ell (1)}, \ldots , G^{\prime }_{\ell (r)}\) have a common 1-input. Since all these OBDDs respect the same variable ordering, Bryant’s apply algorithm [11] can be used to obtain an OBDD of size \(\mathcal {O}(|G|^{k})\) for the conjunction of the functions represented by \(G^{\prime }_{\ell (1)}, \ldots , G^{\prime }_{\ell (r)}\) in time \(\mathcal {O}(|G|^{k})\). Considering all choices of the parameters r,(2),…,(r),v2,…,vr we obtain a unambiguous nondeterministic OBDD of size \(\mathcal {O}(|G|^{2k-1})\) which has only one nondeterministic node at the beginning. □

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Bollig, B., Buttkus, M. On the Relative Succinctness of Sentential Decision Diagrams. Theory Comput Syst 63, 1250–1277 (2019). https://doi.org/10.1007/s00224-018-9904-z

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-018-9904-z

Keywords

Navigation