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.

90 lines
3.4 KiB

9 months ago
  1. \begin{cofactors}
  2. $f$ \= $= ((\lnot x \lor \lnot y) \land (x \land (y \lor z)))$\\
  3. \>$f_{y}$ \= $= \false$\\
  4. \>$f_{\lnot y}$ \= $= (x \land z)$\\
  5. \>\>$f_{\lnot yz}$ \= $= x$\\
  6. \>\>\>$f_{\lnot yzx}$ \= $= \true$\\
  7. \>\>\>$f_{\lnot yz\lnot x}$ \= $= \false$\\
  8. \>\>$f_{\lnot y\lnot z}$ \= $= \false$\\
  9. \end{cofactors}
  10. The final ROBDD:
  11. \begin{center}
  12. \scalebox{0.75}{
  13. \begin{tikzpicture}[>=latex,line join=bevel,]
  14. \pgfsetlinewidth{1bp}
  15. %%
  16. \pgfsetcolor{black}
  17. % Edge: f_E -> y0
  18. \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp);
  19. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  20. \pgfsetstrokecolor{strokecol}
  21. \draw (72.5bp,195.3bp) node {\Large$\bullet$};
  22. % Edge: f_!y -> z1
  23. \draw [] (25.254bp,152.99bp) .. controls (29.124bp,142.67bp) and (35.113bp,126.7bp) .. (38.918bp,116.55bp);
  24. % Edge: f_!yz -> x2
  25. \draw [] (108.92bp,94.988bp) .. controls (105.24bp,84.669bp) and (99.535bp,68.698bp) .. (95.911bp,58.551bp);
  26. % Edge: y0 -> z1
  27. \draw [] (67.68bp,154.0bp) .. controls (62.115bp,143.61bp) and (53.01bp,126.62bp) .. (47.408bp,116.16bp);
  28. \draw (56.852bp,133.79bp) node {\Large$\bullet$};
  29. % Edge: y0 -> 0
  30. \draw [] (72.5bp,152.99bp) .. controls (72.5bp,137.38bp) and (72.5bp,108.85bp) .. (72.5bp,107.09bp);
  31. % Edge: z1 -> x2
  32. \draw [] (49.452bp,97.213bp) .. controls (59.005bp,86.514bp) and (76.085bp,67.385bp) .. (85.607bp,56.72bp);
  33. % Edge: z1 -> 3
  34. \draw [] (42.5bp,94.988bp) .. controls (42.5bp,79.384bp) and (42.5bp,50.854bp) .. (42.5bp,49.086bp);
  35. \draw (42.5bp,69.086bp) node {\Large$\bullet$};
  36. % Edge: x2 -> 1
  37. \draw [] (90.503bp,36.791bp) .. controls (87.934bp,23.663bp) and (83.77bp,2.3815bp) .. (83.513bp,1.0642bp);
  38. % Edge: x2 -> 2
  39. \draw [] (94.719bp,36.791bp) .. controls (97.573bp,23.663bp) and (102.2bp,2.3815bp) .. (102.49bp,1.0642bp);
  40. \draw (98.237bp,20.608bp) node {\Large$\bullet$};
  41. % Node: f_E
  42. \begin{scope}
  43. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  44. \pgfsetstrokecolor{strokecol}
  45. \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle;
  46. \draw (72.5bp,222.0bp) node {$f$};
  47. \end{scope}
  48. % Node: y0
  49. \begin{scope}
  50. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  51. \pgfsetstrokecolor{strokecol}
  52. \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  53. \draw (72.5bp,164.0bp) node {$y$};
  54. \end{scope}
  55. % Node: f_!y
  56. \begin{scope}
  57. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  58. \pgfsetstrokecolor{strokecol}
  59. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  60. \draw (21.5bp,164.0bp) node {$f_{\lnot y}$};
  61. \end{scope}
  62. % Node: z1
  63. \begin{scope}
  64. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  65. \pgfsetstrokecolor{strokecol}
  66. \draw (42.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  67. \draw (42.5bp,106.0bp) node {$z$};
  68. \end{scope}
  69. % Node: f_!yz
  70. \begin{scope}
  71. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  72. \pgfsetstrokecolor{strokecol}
  73. \draw (134.0bp,117.0bp) -- (91.0bp,117.0bp) -- (91.0bp,95.0bp) -- (134.0bp,95.0bp) -- cycle;
  74. \draw (112.5bp,106.0bp) node {$f_{\lnot yz}$};
  75. \end{scope}
  76. % Node: x2
  77. \begin{scope}
  78. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  79. \pgfsetstrokecolor{strokecol}
  80. \draw (92.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  81. \draw (92.5bp,48.0bp) node {$x$};
  82. \end{scope}
  83. %
  84. \end{tikzpicture}
  85. }
  86. \end{center}