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.

40 lines
1.6 KiB

9 months ago
  1. \begin{minipage}{0.5\textwidth}
  2. \begin{tabbing}
  3. $f$ \= $= (p \oplus q) \land \lnot r$\\
  4. \>$ f_p $ \= $= \lnot q \land \lnot r$ \\
  5. \>\>$ f_{pq} $ \= $= \bot$ \\
  6. \>\>$ f_{p \lnot q} $ \= $= \lnot r$ \\
  7. \>\>\>$ f_{p \lnot q r} $ \= $= \bot$ \\
  8. \>\>\>$ f_{p \lnot q \lnot r} $ \= $= \top$ \\
  9. \>$ f_{\lnot p} = q \land \lnot r$ \\
  10. \>\>$ f_{\lnot pq} $ \= $= \lnot r = f_{p \lnot q}$ \\
  11. \>\>$ f_{\lnot p \lnot q} $ \= $= \bot$ \\
  12. \end{tabbing}
  13. \end{minipage}
  14. \begin{minipage}{0.5\textwidth}
  15. The final ROBDD:
  16. \begin{center}
  17. \begin{forest}
  18. for tree={circle, draw, no edge,
  19. minimum size=2em,
  20. inner sep=0pt,
  21. s sep=6mm,
  22. l sep=6mm}
  23. [$f$, rectangle, draw, tikz={\draw [fulldot=.3] () to (p.north);}
  24. [$f_q$, rectangle, draw, tikz={\draw [fulldot=.3] () to (q1.north);}]
  25. [$p$, name=p, tikz={\draw [line] () to (q1.north east); \draw [dot=.3] () to (q2.north west);}
  26. [$q$, name=q1, tikz={\draw [line] () to (-2,-3.5); \draw [dot=.3] () to (r.north west);}
  27. [$f_{p \lnot q}$, rectangle, draw, tikz={\draw [fulldot=.3] () to (r.west);}]
  28. ]
  29. [$q$, name=q2, tikz={\draw [line] () to (r.north east); \draw [dot=.3] () to (2,-3.5);}
  30. [$r$, name=r, tikz={\draw [line] () to (-0.5,-4.8); \draw [fulldot=.3] () to (0.5, -4.8);}]
  31. [$f_{\lnot pq}$, rectangle, draw, tikz={\draw [fulldot=.3] () to (r.east);}]
  32. [,phantom]
  33. ]
  34. ]
  35. [$f_{\lnot q}$, rectangle, draw, tikz={\draw [fulldot=.3] () to (q2.north);}]
  36. ]
  37. \end{forest}
  38. \end{center}
  39. \end{minipage}