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.

31 lines
1.3 KiB

5 months ago
  1. \item \lect Given the \textit{Binary Decision Diagram (BDD)} below, label and explain the different elements of the diagram.
  2. \begin{center}
  3. \begin{forest}
  4. for tree={circle, draw, no edge,
  5. minimum size=2em,
  6. inner sep=0pt,
  7. s sep=2mm,
  8. l sep=4mm}
  9. [$f$, rectangle, draw, tikz={\draw [line] () to (a.north);}
  10. [$a$, name=a, tikz={\draw [line] () to (b.north east); \draw [dot=.5] () to (c2.north west);}
  11. [$b$, name=b, tikz={\draw [dot=.5, bend left] () to (c1.north east); \draw [line, bend right] () to (c1.north west);}
  12. [$c$, name=c1, s sep=20mm, tikz={\draw [line] () to (one.north); \draw [dot=.5] () to (e.north west);}
  13. [,phantom]
  14. [$e$, name=e, s sep=10mm, tikz={\draw [line, bend left] () to (one.north east); \draw [dot=.5, bend left] () to (one.east);}
  15. [$1$, rectangle, draw, name=one]
  16. [$0$, rectangle, draw, name=zero]
  17. ]
  18. ]
  19. ]
  20. [$c$, name=c2, tikz={\draw [line, bend right] () to (e.north); \draw [dot=.5, bend left] () to (d.north);}
  21. [,phantom]
  22. [$d$, name=d, tikz={\draw [line] () to (e.north east); \draw[dot=.5] () to (zero.north);
  23. }
  24. [,phantom]
  25. [,phantom]
  26. ]
  27. ]
  28. ]
  29. ]
  30. \end{forest}
  31. \end{center}