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.

142 lines
5.7 KiB

  1. \begin{cofactors}
  2. $f$ \= $= (((a \lor \lnot b) \land \lnot (c \lor d)) \lor (a \land b))$\\
  3. \>$f_{a}$ \= $= (\lnot (c \lor d) \lor b)$\\
  4. \>\>$f_{ab}$ \= $= \true$\\
  5. \>\>$f_{a\lnot b}$ \= $= \lnot (c \lor d)$\\
  6. \>\>\>$f_{a\lnot bc}$ \= $= \false$\\
  7. \>\>\>$f_{a\lnot b\lnot c}$ \= $= \lnot d$\\
  8. \>\>\>\>$f_{a\lnot b\lnot cd}$ \= $= \false$\\
  9. \>\>\>\>$f_{a\lnot b\lnot c\lnot d}$ \= $= \true$\\
  10. %\>\>\>$f_{a\lnot b\lnot c}$ \= $= f_{a\lnot b}$\\
  11. \>$f_{\lnot a}$ \= $= (\lnot b \land \lnot (c \lor d))$\\
  12. \>\>$f_{\lnot ab}$ \= $= \false$\\
  13. \>\>$f_{\lnot a\lnot b}$ \= $= f_{a\lnot b}$\\
  14. \end{cofactors}
  15. The final ROBDD:
  16. \begin{center}
  17. \scalebox{0.75}{
  18. \begin{tikzpicture}[>=latex,line join=bevel,]
  19. \pgfsetlinewidth{1bp}
  20. %%
  21. \pgfsetcolor{black}
  22. % Edge: f_E -> a0
  23. \draw [] (72.5bp,268.99bp) .. controls (72.5bp,258.92bp) and (72.5bp,243.47bp) .. (72.5bp,233.3bp);
  24. % Edge: f_a -> b1
  25. \draw [] (123.5bp,210.99bp) .. controls (123.5bp,200.92bp) and (123.5bp,185.47bp) .. (123.5bp,175.3bp);
  26. % Edge: f_a!b -> c2
  27. \draw [] (72.679bp,152.99bp) .. controls (72.859bp,142.92bp) and (73.134bp,127.47bp) .. (73.316bp,117.3bp);
  28. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  29. \pgfsetstrokecolor{strokecol}
  30. \draw (72.959bp,137.3bp) node {\Large$\bullet$};
  31. % Edge: f_a!b!c -> d3
  32. \draw [] (157.14bp,94.988bp) .. controls (151.54bp,84.544bp) and (142.84bp,68.308bp) .. (137.42bp,58.183bp);
  33. \draw (146.86bp,75.812bp) node {\Large$\bullet$};
  34. % Edge: f_!a -> b4
  35. \draw [] (21.5bp,210.99bp) .. controls (21.5bp,200.92bp) and (21.5bp,185.47bp) .. (21.5bp,175.3bp);
  36. \draw (21.5bp,195.3bp) node {\Large$\bullet$};
  37. % Edge: a0 -> b4
  38. \draw [] (65.409bp,213.21bp) .. controls (55.665bp,202.51bp) and (38.243bp,183.38bp) .. (28.531bp,172.72bp);
  39. \draw (41.998bp,187.51bp) node {\Large$\bullet$};
  40. % Edge: a0 -> b1
  41. \draw [] (79.591bp,213.21bp) .. controls (89.335bp,202.51bp) and (106.76bp,183.38bp) .. (116.47bp,172.72bp);
  42. % Edge: b4 -> c2
  43. \draw [] (28.73bp,155.21bp) .. controls (38.665bp,144.51bp) and (56.429bp,125.38bp) .. (66.331bp,114.72bp);
  44. \draw (52.722bp,129.38bp) node {\Large$\circ$};
  45. % Edge: b4 -> 4
  46. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,137.38bp) and (21.5bp,108.85bp) .. (21.5bp,107.09bp);
  47. % Edge: b1 -> c2
  48. \draw [] (116.55bp,155.21bp) .. controls (107.0bp,144.51bp) and (89.915bp,125.38bp) .. (80.393bp,114.72bp);
  49. \draw (93.714bp,129.64bp) node {\Large$\bullet$};
  50. % Edge: b1 -> 0
  51. \draw [] (123.32bp,152.99bp) .. controls (123.04bp,137.38bp) and (122.53bp,108.85bp) .. (122.5bp,107.09bp);
  52. % Edge: c2 -> c2
  53. %\draw [] (81.517bp,113.81bp) .. controls (91.167bp,119.7bp) and (102.5bp,117.1bp) .. (102.5bp,106.0bp) .. controls (102.5bp,94.898bp) and (91.167bp,92.297bp) .. (81.517bp,98.194bp);
  54. %\draw (99.287bp,89.018bp) node {\Large$\bullet$};
  55. % Edge: c2 -> d3
  56. \draw [] (81.213bp,97.679bp) .. controls (92.583bp,86.887bp) and (113.71bp,66.836bp) .. (124.97bp,56.146bp);
  57. \draw (110.47bp,69.914bp) node {\Large$\circ$};
  58. % Edge: c2 -> 1
  59. \draw [] (73.5bp,94.988bp) .. controls (73.5bp,79.384bp) and (73.5bp,50.854bp) .. (73.5bp,49.086bp);
  60. % Edge: d3 -> 2
  61. \draw [] (130.28bp,36.791bp) .. controls (127.43bp,23.663bp) and (122.8bp,2.3815bp) .. (122.51bp,1.0642bp);
  62. % Edge: d3 -> 3
  63. \draw [] (134.5bp,36.791bp) .. controls (137.07bp,23.663bp) and (141.23bp,2.3815bp) .. (141.49bp,1.0642bp);
  64. \draw (137.65bp,20.692bp) node {\Large$\bullet$};
  65. % Node: f_E
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (94.0bp,291.0bp) -- (51.0bp,291.0bp) -- (51.0bp,269.0bp) -- (94.0bp,269.0bp) -- cycle;
  70. \draw (72.5bp,280.0bp) node {$f$};
  71. \end{scope}
  72. % Node: a0
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (72.5bp,222.0bp) ellipse (11.0bp and 11.0bp);
  77. \draw (72.5bp,222.0bp) node {$a$};
  78. \end{scope}
  79. % Node: f_a
  80. \begin{scope}
  81. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  82. \pgfsetstrokecolor{strokecol}
  83. \draw (145.0bp,233.0bp) -- (102.0bp,233.0bp) -- (102.0bp,211.0bp) -- (145.0bp,211.0bp) -- cycle;
  84. \draw (123.5bp,222.0bp) node {$f_{a}$};
  85. \end{scope}
  86. % Node: b1
  87. \begin{scope}
  88. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  89. \pgfsetstrokecolor{strokecol}
  90. \draw (123.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  91. \draw (123.5bp,164.0bp) node {$b$};
  92. \end{scope}
  93. % Node: f_a!b
  94. \begin{scope}
  95. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  96. \pgfsetstrokecolor{strokecol}
  97. \draw (94.0bp,175.0bp) -- (51.0bp,175.0bp) -- (51.0bp,153.0bp) -- (94.0bp,153.0bp) -- cycle;
  98. \draw (72.5bp,164.0bp) node {$f_{a\lnot b}$};
  99. \end{scope}
  100. % Node: c2
  101. \begin{scope}
  102. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  103. \pgfsetstrokecolor{strokecol}
  104. \draw (73.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  105. \draw (73.5bp,106.0bp) node {$c$};
  106. \end{scope}
  107. % Node: f_a!b!c
  108. \begin{scope}
  109. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  110. \pgfsetstrokecolor{strokecol}
  111. \draw (184.0bp,117.0bp) -- (141.0bp,117.0bp) -- (141.0bp,95.0bp) -- (184.0bp,95.0bp) -- cycle;
  112. \draw (162.5bp,106.0bp) node {$f_{a\lnot b\lnot c}$};
  113. \end{scope}
  114. % Node: d3
  115. \begin{scope}
  116. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  117. \pgfsetstrokecolor{strokecol}
  118. \draw (132.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  119. \draw (132.5bp,48.0bp) node {$d$};
  120. \end{scope}
  121. % Node: f_!a
  122. \begin{scope}
  123. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  124. \pgfsetstrokecolor{strokecol}
  125. \draw (43.0bp,233.0bp) -- (0.0bp,233.0bp) -- (0.0bp,211.0bp) -- (43.0bp,211.0bp) -- cycle;
  126. \draw (21.5bp,222.0bp) node {$f_{\lnot a}$};
  127. \end{scope}
  128. % Node: b4
  129. \begin{scope}
  130. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  131. \pgfsetstrokecolor{strokecol}
  132. \draw (21.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  133. \draw (21.5bp,164.0bp) node {$b$};
  134. \end{scope}
  135. %
  136. \end{tikzpicture}
  137. }
  138. \end{center}