Binary decision diagram
In computer science, a binary decision diagram (BDD) or branching program is a data structure that is used to represent a Boolean function.[src] On a more abstract level, BDDs can be considered as a compressed representation of sets or relations.[src] Unlike other compressed representations, operations are performed directly on the compressed representation, i.e.[src] without decompression.[src] Similar data structures include negation normal form (NNF), Zhegalkin polynomials, and propositional directed acyclic graphs (PDAG).[src]
In computer science, a binary decision diagram (BDD) or branching program is a data structure that is used to represent a Boolean function.[src] On a more abstract level, BDDs can be considered as a compressed representation of sets or relations.[src] Unlike other compressed representations, operations are performed directly on the compressed representation, i.e.[src] without decompression.[src] Similar data structures include negation normal form (NNF), Zhegalkin polynomials, and propositional directed acyclic graphs (PDAG).[src] The size of the BDD is determined both by the function being represented and by the chosen ordering of the variables.[src] There exist Boolean functions f(x_1,\ldots, x_{n}) for which depending upon the ordering of the variables we would end up getting a graph whose number of nodes would be linear (in n) at best and exponential at worst (e.g., a ripple carry adder).[src] Consider the Boolean function f(x_1,\ldots, x_{2n}) = x_1x_2 + x_3x_4 + \cdots + x_{2n-1}x_{2n}.[src] Using the variable ordering x_1 , the BDD needs 2^{n+1} nodes to represent the function.[src] Using the ordering x_1 , the BDD consists of 2n+2 nodes.[src] It is of crucial importance to care about variable ordering when applying this data structure in practice.[src] The problem of finding the best variable ordering is NP-hard.[src] For any constant c > 1 it is even NP-hard to compute a variable ordering resulting in an OBDD with a size that is at most c times larger than an optimal one.[src] However, there exist efficient heuristics to tackle the problem.[src] Fun With Binary Decision Diagrams (BDDs), lecture by Donald Knuth List of BDD software libraries for several programming languages.[src]
20 sentences · 20 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Binary decision diagram." encyclopegia.org, 2026, https://encyclopegia.org/wiki/binary-decision-diagram. Accessed 06 December 2026.
Chicago
"Binary decision diagram." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/binary-decision-diagram.
APA
encyclopegia.org. (2026). Binary decision diagram. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/binary-decision-diagram
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON