You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

9 months ago
  1. \begin{cofactors}
  2. $f_{a}$ \= $= b \lor(c \biimp d)$ \\
  3. \>$f_{ab}$ \= $= \true $\\
  4. \>$f_{a\lnot b}$ \= $= c \biimp d$ \\
  5. \>\>$f_{a\lnot bc}$ \= $= d$ \\
  6. \>\>\>$f_{a\lnot b c d}$ \= $= \true$ \\
  7. \>\>\>$f_{a\lnot bc\lnot d}$ \= $= \false$ \\
  8. \>\>$f_{a\lnot b\lnot c}$ \= $= \lnot d = f_{abc}$ \\
  9. $f_{\lnot a}$ \= $=\true $
  10. \end{cofactors}
  11. The final ROBDD:\\
  12. \begin{center}
  13. \begin{bdd}
  14. \node[func node] (f) {$f$};
  15. \node[cofactor] (a1) [below of=f] {$a$};
  16. \node[phantom] (aR) [below right of=a1] {};
  17. \node[cofactor] (b1) [below left of=a1] {$b$};
  18. \node[phantom] (bL) [below left of=b1] {};
  19. \node[cofactor] (c1) [below right of=b1] {$c$};
  20. \node[cofactor] (d1) [below of=c1] {$d$};
  21. \node[phantom] (dL) [below left of=d1] {};
  22. \node[phantom] (dR) [below right of=d1] {};
  23. \funcEdge{f}{a1}
  24. \thenEdge{a1}{b1}
  25. \elseEdge{a1}{aR}
  26. \thenEdge{b1}{bL}
  27. \elseEdge{b1}{c1}
  28. \thenEdge[bend right]{c1}{d1}
  29. \negatedEdge[bend left]{c1}{d1}
  30. \thenEdge{d1}{dL}
  31. \elseEdge{d1}{dR}
  32. \end{bdd}
  33. \end{center}