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.

36 lines
1.5 KiB

9 months ago
  1. \begin{minipage}{.65\textwidth}
  2. \begin{enumerate}
  3. \item Use the BDD shown in the figure on the right to check if the formula it represents evaluates to \texttt{true} or \texttt{false} with the
  4. following variable assignments.
  5. \begin{enumerate}
  6. \item $\mathcal{M}_1: ~ p = \top, r = \bot, q = \top, s=\bot$
  7. \item $\mathcal{M}_2: ~ p = \bot, r = \bot, q = \bot, s=\top$
  8. \end{enumerate}
  9. \item Find the formula $f$ that is represented by the BDD.
  10. \end{enumerate}
  11. \end{minipage}
  12. \begin{minipage}{.3\textwidth}
  13. \begin{center}
  14. \begin{forest}
  15. for tree={circle, draw, no edge,
  16. minimum size=2em,
  17. inner sep=0pt,
  18. s sep=6mm,
  19. l sep=6mm}
  20. [$f$, rectangle, draw, tikz={\draw [fulldot=.5] () to (p.north);}
  21. [$p$, name=p, tikz={\draw [line] () to (r1.north); \draw [fulldot=.5] () to (r2.north);}
  22. [$r$, name=r1, tikz={\draw [line] () to (254:3.8); \draw [fulldot=.5] () to (q1.north west);}]
  23. [$r$, name=r2, tikz={\draw [line] () to (q1.north east); \draw [dot=.5] () to (q2.north west);}
  24. [$q$, name=q1, tikz={\draw [line] () to (s.north); \draw[fulldot=.5] () to (277:5);}
  25. [$s$, name=s, tikz={\draw [line] () to (260:6.3); \draw[fulldot=.5] () to (268:6.2);}]
  26. [,phantom]
  27. ]
  28. [$q$, name=q2, tikz={\draw [line] () to (280:5.03); \draw[fulldot=.5] () to (290:5.23);}]
  29. ]
  30. ]
  31. ]
  32. \end{forest}
  33. \end{center}
  34. \end{minipage}