Propositional directed acyclic graph

From HandWiki

A propositional directed acyclic graph (PDAG) is a data structure that is used to represent a Boolean function. A Boolean function can be represented as a rooted, directed acyclic graph of the following form:

  • Leaves are labeled with [math]\displaystyle{ \top }[/math] (true), [math]\displaystyle{ \bot }[/math] (false), or a Boolean variable.
  • Non-leaves are [math]\displaystyle{ \bigtriangleup }[/math] (logical and), [math]\displaystyle{ \bigtriangledown }[/math] (logical or) and [math]\displaystyle{ \Diamond }[/math] (logical not).
  • [math]\displaystyle{ \bigtriangleup }[/math]- and [math]\displaystyle{ \bigtriangledown }[/math]-nodes have at least one child.
  • [math]\displaystyle{ \Diamond }[/math]-nodes have exactly one child.

Leaves labeled with [math]\displaystyle{ \top }[/math] ([math]\displaystyle{ \bot }[/math]) represent the constant Boolean function which always evaluates to 1 (0). A leaf labeled with a Boolean variable [math]\displaystyle{ x }[/math] is interpreted as the assignment [math]\displaystyle{ x=1 }[/math], i.e. it represents the Boolean function which evaluates to 1 if and only if [math]\displaystyle{ x=1 }[/math]. The Boolean function represented by a [math]\displaystyle{ \bigtriangleup }[/math]-node is the one that evaluates to 1, if and only if the Boolean function of all its children evaluate to 1. Similarly, a [math]\displaystyle{ \bigtriangledown }[/math]-node represents the Boolean function that evaluates to 1, if and only if the Boolean function of at least one child evaluates to 1. Finally, a [math]\displaystyle{ \Diamond }[/math]-node represents the complementary Boolean function its child, i.e. the one that evaluates to 1, if and only if the Boolean function of its child evaluates to 0.

PDAG, BDD, and NNF

Every binary decision diagram (BDD) and every negation normal form (NNF) are also a PDAG with some particular properties. The following pictures represent the Boolean function [math]\displaystyle{ f(x1, x2, x3) = -x1 * -x2 * -x3 + x1 * x2 + x2 * x3 }[/math]:

BDD for the function f
PDAG for the function f obtained from the BDD
PDAG for the function f

See also

References

  • M. Wachter & R. Haenni, "Propositional DAGs: a New Graph-Based Language for Representing Boolean Functions", KR'06, 10th International Conference on Principles of Knowledge Representation and Reasoning, Lake District, UK, 2006.
  • M. Wachter & R. Haenni, "Probabilistic Equivalence Checking with Propositional DAGs", Technical Report iam-2006-001, Institute of Computer Science and Applied Mathematics, University of Bern, Switzerland, 2006.
  • M. Wachter, R. Haenni & J. Jonczy, "Reliability and Diagnostics of Modular Systems: a New Probabilistic Approach", DX'06, 18th International Workshop on Principles of Diagnosis, PeƱaranda de Duero, Burgos, Spain, 2006.