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.

66 lines
2.3 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= ((\lnot x \land \lnot y) \lor (x \land y))$\\
  3. \>$f_{y}$ \= $= x$\\
  4. \>\>$f_{yx}$ \= $= \true$\\
  5. \>\>$f_{y\lnot x}$ \= $= \false$\\
  6. \>$f_{\lnot y}$ \= $= \lnot f_y$\\
  7. \end{cofactors}
  8. The final ROBDD:
  9. \begin{center}
  10. \scalebox{0.75}{
  11. \begin{tikzpicture}[>=latex,line join=bevel,]
  12. \pgfsetlinewidth{1bp}
  13. %%
  14. \pgfsetcolor{black}
  15. % Edge: f_E -> y0
  16. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp);
  17. % Edge: f_y -> x1
  18. \draw [] (63.382bp,94.988bp) .. controls (53.412bp,84.04bp) and (37.646bp,66.729bp) .. (28.57bp,56.763bp);
  19. % Edge: y0 -> x1
  20. \draw [] (16.385bp,96.003bp) .. controls (14.19bp,85.491bp) and (14.205bp,68.213bp) .. (16.429bp,57.79bp);
  21. % Edge: y0 -> x1
  22. \draw [] (26.615bp,96.003bp) .. controls (28.81bp,85.491bp) and (28.795bp,68.213bp) .. (26.571bp,57.79bp);
  23. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  24. \pgfsetstrokecolor{strokecol}
  25. \draw (30.134bp,77.47bp) node {\Large$\bullet$};
  26. % Edge: x1 -> 0
  27. \draw [] (19.503bp,36.791bp) .. controls (16.934bp,23.663bp) and (12.77bp,2.3815bp) .. (12.513bp,1.0642bp);
  28. % Edge: x1 -> 1
  29. \draw [] (23.719bp,36.791bp) .. controls (26.573bp,23.663bp) and (31.2bp,2.3815bp) .. (31.486bp,1.0642bp);
  30. \draw (27.237bp,20.608bp) node {\Large$\bullet$};
  31. % Node: f_E
  32. \begin{scope}
  33. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  34. \pgfsetstrokecolor{strokecol}
  35. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  36. \draw (21.5bp,164.0bp) node {$f$};
  37. \end{scope}
  38. % Node: y0
  39. \begin{scope}
  40. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  41. \pgfsetstrokecolor{strokecol}
  42. \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  43. \draw (21.5bp,106.0bp) node {$y$};
  44. \end{scope}
  45. % Node: f_y
  46. \begin{scope}
  47. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  48. \pgfsetstrokecolor{strokecol}
  49. \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle;
  50. \draw (72.5bp,106.0bp) node {$f_{y}$};
  51. \end{scope}
  52. % Node: x1
  53. \begin{scope}
  54. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  55. \pgfsetstrokecolor{strokecol}
  56. \draw (21.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  57. \draw (21.5bp,48.0bp) node {$x$};
  58. \end{scope}
  59. %
  60. \end{tikzpicture}
  61. }
  62. \end{center}