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.

50 lines
1.6 KiB

9 months ago
  1. \begin{cofactors}
  2. $f_{p}$ \= $= r \lor(s \land \lnot r) \lor (\lnot s \land r) \lor (\lnot r \land q)$ \\
  3. \>$f_{pq}$ \= $= r\lor (s \land \lnot r) \lor (\lnot s \land r)\lor \lnot r = \true $\\
  4. \>$f_{p\lnot q}$ \= $= r\lor (s \land \lnot r)\lor (\lnot s \land r) $\\
  5. \>\>$f_{p\lnot qr}$ \= $= \true $\\
  6. \>\>$f_{p\lnot q\lnot r}$ \= $= s $\\
  7. \>\>\>$f_{p\lnot q\lnot rs}$ \= $= \true $\\
  8. \>\>\>$f_{p\lnot q\lnot r\lnot s}$ \= $= \false $\\
  9. $f_{\lnot p}$ \= $= \lnot r \lor (s \land \lnot r) \lor (\lnot s \land r) \lor (\lnot r \land q) = \lnot r \lor (s \land \lnot r) \lor (\lnot s \land r)$ \\
  10. \>$f_{\lnot pr}$ \= $= \lnot s = f_{p\lnot q\lnot r} $ \\
  11. \>$f_{\lnot p\lnot r}$ \= $= \true $
  12. \end{cofactors}
  13. The final ROBDD:\\
  14. \begin{center}
  15. \begin{bdd}[4em]
  16. \node[func node] (f) {$f$};
  17. \node[cofactor] (p1) [below of=f] {$p$};
  18. \node[cofactor] (q1) [below left of=p1] {$q$};
  19. \node[cofactor] (r1) [below right of=p1,yshift=-2.75em,xshift=1.75em] {$r$};
  20. \node[cofactor] (r2) [below right of=q1] {$r$};
  21. \node[phantom] (q1L) [below left of=q1] {};
  22. \node[phantom] (r1R) [below right of=r1] {};
  23. \node[cofactor] (s1) [below right of=r2] {$s$};
  24. \node[phantom] (r2L) [below left of=r2] {};
  25. \node[phantom] (s2L) [below left of=s1] {};
  26. \node[phantom] (s2R) [below right of=s1] {};
  27. \funcEdge{f}{p1}
  28. \thenEdge{p1}{q1}
  29. \negatedEdge{p1}{r1}
  30. \thenEdge{q1}{q1L}
  31. \elseEdge{q1}{r2}
  32. \thenEdge{r2}{r2L}
  33. \elseEdge{r2}{s1}
  34. \thenEdge{r1}{s1}
  35. \negatedEdge{r1}{r1R}
  36. \thenEdge{s1}{s2L}
  37. \negatedEdge{s1}{s2R}
  38. \end{bdd}
  39. \end{center}