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.

182 lines
7.8 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((a \land b) \lor (\lnot c \land d)) \lor (e \land \lnot a))$\\
  3. \>$f_{a}$ \= $= (b \lor (\lnot c \land d))$\\
  4. \>\>$f_{ab}$ \= $= \true$\\
  5. \>\>$f_{a\lnot b}$ \= $= (\lnot c \land d)$\\
  6. \>\>\>$f_{a\lnot bc}$ \= $= \false$\\
  7. \>\>\>$f_{a\lnot b\lnot c}$ \= $= d$\\
  8. \>\>\>\>$f_{a\lnot b\lnot cd}$ \= $= \true$\\
  9. \>\>\>\>$f_{a\lnot b\lnot c\lnot d}$ \= $= \false$\\
  10. \>$f_{\lnot a}$ \= $= ((\lnot c \land d) \lor e)$\\
  11. \>\>$f_{\lnot ac}$ \= $= e$\\
  12. \>\>\>$f_{\lnot ace}$ \= $= \true$\\
  13. \>\>\>$f_{\lnot ac\lnot e}$ \= $= \false$\\
  14. \>\>$f_{\lnot a\lnot c}$ \= $= (d \lor e)$\\
  15. \>\>\>$f_{\lnot a\lnot cd}$ \= $= \true$\\
  16. \>\>\>$f_{\lnot a\lnot c\lnot d}$ \= $= f_{\lnot ac}$\\
  17. \end{cofactors}
  18. The final ROBDD:
  19. \begin{center}
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: f_E -> a0
  26. \draw [] (84.143bp,268.99bp) .. controls (84.143bp,258.92bp) and (84.143bp,243.47bp) .. (84.143bp,233.3bp);
  27. % Edge: f_a -> b1
  28. \draw [] (135.14bp,210.99bp) .. controls (135.14bp,200.92bp) and (135.14bp,185.47bp) .. (135.14bp,175.3bp);
  29. % Edge: f_a!b -> c2
  30. \draw [] (184.35bp,152.99bp) .. controls (182.53bp,142.8bp) and (179.73bp,127.09bp) .. (177.91bp,116.93bp);
  31. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  32. \pgfsetstrokecolor{strokecol}
  33. \draw (181.43bp,136.61bp) node {\Large$\bullet$};
  34. % Edge: f_a!b!c -> d3
  35. \draw [] (225.18bp,94.988bp) .. controls (223.17bp,84.795bp) and (220.09bp,69.087bp) .. (218.09bp,58.925bp);
  36. % Edge: f_!a -> c4
  37. \draw [] (33.143bp,210.99bp) .. controls (33.143bp,200.92bp) and (33.143bp,185.47bp) .. (33.143bp,175.3bp);
  38. % Edge: f_!ac -> e5
  39. \draw [] (33.143bp,94.988bp) .. controls (33.143bp,84.921bp) and (33.143bp,69.474bp) .. (33.143bp,59.304bp);
  40. % Edge: f_!a!c -> d6
  41. \draw [] (84.143bp,152.99bp) .. controls (84.143bp,142.92bp) and (84.143bp,127.47bp) .. (84.143bp,117.3bp);
  42. % Edge: a0 -> c4
  43. \draw [] (77.051bp,213.21bp) .. controls (67.308bp,202.51bp) and (49.886bp,183.38bp) .. (40.174bp,172.72bp);
  44. \draw (53.64bp,187.51bp) node {\Large$\circ$};
  45. % Edge: a0 -> b1
  46. \draw [] (91.234bp,213.21bp) .. controls (100.98bp,202.51bp) and (118.4bp,183.38bp) .. (128.11bp,172.72bp);
  47. % Edge: c4 -> d6
  48. \draw [] (40.234bp,155.21bp) .. controls (49.978bp,144.51bp) and (67.4bp,125.38bp) .. (77.112bp,114.72bp);
  49. \draw (63.645bp,129.51bp) node {\Large$\circ$};
  50. % Edge: c4 -> e5
  51. \draw [] (25.797bp,155.3bp) .. controls (18.182bp,146.73bp) and (6.7572bp,132.1bp) .. (2.1426bp,117.0bp) .. controls (-0.71421bp,107.65bp) and (-0.71421bp,104.35bp) .. (2.1426bp,95.0bp) .. controls (6.7572bp,79.895bp) and (18.182bp,65.265bp) .. (25.797bp,56.7bp);
  52. % Edge: d6 -> e5
  53. \draw [] (77.051bp,97.213bp) .. controls (67.308bp,86.514bp) and (49.886bp,67.385bp) .. (40.174bp,56.72bp);
  54. \draw (53.64bp,71.507bp) node {\Large$\circ$};
  55. % Edge: d6 -> 6
  56. \draw [] (84.143bp,94.988bp) .. controls (84.143bp,79.384bp) and (84.143bp,50.854bp) .. (84.143bp,49.086bp);
  57. % Edge: e5 -> 4
  58. \draw [] (31.145bp,36.791bp) .. controls (28.577bp,23.663bp) and (24.413bp,2.3815bp) .. (24.155bp,1.0642bp);
  59. % Edge: e5 -> 5
  60. \draw [] (35.362bp,36.791bp) .. controls (38.216bp,23.663bp) and (42.842bp,2.3815bp) .. (43.129bp,1.0642bp);
  61. \draw (38.88bp,20.608bp) node {\Large$\bullet$};
  62. % Edge: b1 -> c2
  63. \draw [] (141.19bp,154.74bp) .. controls (148.94bp,144.15bp) and (162.3bp,125.9bp) .. (170.07bp,115.3bp);
  64. \draw (158.25bp,131.43bp) node {\Large$\bullet$};
  65. % Edge: b1 -> 0
  66. \draw [] (135.14bp,152.99bp) .. controls (135.14bp,137.38bp) and (135.14bp,108.85bp) .. (135.14bp,107.09bp);
  67. % Edge: c2 -> d3
  68. \draw [] (182.39bp,96.25bp) .. controls (189.95bp,85.668bp) and (202.59bp,67.976bp) .. (210.07bp,57.505bp);
  69. \draw (198.44bp,73.78bp) node {\Large$\bullet$};
  70. % Edge: c2 -> 1
  71. \draw [] (176.14bp,94.988bp) .. controls (176.14bp,79.384bp) and (176.14bp,50.854bp) .. (176.14bp,49.086bp);
  72. % Edge: d3 -> 2
  73. \draw [] (213.92bp,36.791bp) .. controls (211.07bp,23.663bp) and (206.44bp,2.3815bp) .. (206.16bp,1.0642bp);
  74. % Edge: d3 -> 3
  75. \draw [] (218.14bp,36.791bp) .. controls (220.71bp,23.663bp) and (224.87bp,2.3815bp) .. (225.13bp,1.0642bp);
  76. \draw (221.29bp,20.692bp) node {\Large$\bullet$};
  77. % Node: f_E
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (105.64bp,291.0bp) -- (62.64bp,291.0bp) -- (62.64bp,269.0bp) -- (105.64bp,269.0bp) -- cycle;
  82. \draw (84.143bp,280.0bp) node {$f$};
  83. \end{scope}
  84. % Node: a0
  85. \begin{scope}
  86. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  87. \pgfsetstrokecolor{strokecol}
  88. \draw (84.14bp,222.0bp) ellipse (11.0bp and 11.0bp);
  89. \draw (84.143bp,222.0bp) node {$a$};
  90. \end{scope}
  91. % Node: f_a
  92. \begin{scope}
  93. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  94. \pgfsetstrokecolor{strokecol}
  95. \draw (156.64bp,233.0bp) -- (113.64bp,233.0bp) -- (113.64bp,211.0bp) -- (156.64bp,211.0bp) -- cycle;
  96. \draw (135.14bp,222.0bp) node {$f_{a}$};
  97. \end{scope}
  98. % Node: b1
  99. \begin{scope}
  100. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  101. \pgfsetstrokecolor{strokecol}
  102. \draw (135.14bp,164.0bp) ellipse (11.0bp and 11.0bp);
  103. \draw (135.14bp,164.0bp) node {$b$};
  104. \end{scope}
  105. % Node: f_a!b
  106. \begin{scope}
  107. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  108. \pgfsetstrokecolor{strokecol}
  109. \draw (207.64bp,175.0bp) -- (164.64bp,175.0bp) -- (164.64bp,153.0bp) -- (207.64bp,153.0bp) -- cycle;
  110. \draw (186.14bp,164.0bp) node {$f_{a\lnot b}$};
  111. \end{scope}
  112. % Node: c2
  113. \begin{scope}
  114. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  115. \pgfsetstrokecolor{strokecol}
  116. \draw (176.14bp,106.0bp) ellipse (11.0bp and 11.0bp);
  117. \draw (176.14bp,106.0bp) node {$c$};
  118. \end{scope}
  119. % Node: f_a!b!c
  120. \begin{scope}
  121. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  122. \pgfsetstrokecolor{strokecol}
  123. \draw (248.64bp,117.0bp) -- (205.64bp,117.0bp) -- (205.64bp,95.0bp) -- (248.64bp,95.0bp) -- cycle;
  124. \draw (227.14bp,106.0bp) node {$f_{a\lnot b\lnot c}$};
  125. \end{scope}
  126. % Node: d3
  127. \begin{scope}
  128. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  129. \pgfsetstrokecolor{strokecol}
  130. \draw (216.14bp,48.0bp) ellipse (11.0bp and 11.0bp);
  131. \draw (216.14bp,48.0bp) node {$d$};
  132. \end{scope}
  133. % Node: f_!a
  134. \begin{scope}
  135. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  136. \pgfsetstrokecolor{strokecol}
  137. \draw (54.64bp,233.0bp) -- (11.64bp,233.0bp) -- (11.64bp,211.0bp) -- (54.64bp,211.0bp) -- cycle;
  138. \draw (33.143bp,222.0bp) node {$f_{\lnot a}$};
  139. \end{scope}
  140. % Node: c4
  141. \begin{scope}
  142. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  143. \pgfsetstrokecolor{strokecol}
  144. \draw (33.14bp,164.0bp) ellipse (11.0bp and 11.0bp);
  145. \draw (33.143bp,164.0bp) node {$c$};
  146. \end{scope}
  147. % Node: f_!ac
  148. \begin{scope}
  149. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  150. \pgfsetstrokecolor{strokecol}
  151. \draw (54.64bp,117.0bp) -- (11.64bp,117.0bp) -- (11.64bp,95.0bp) -- (54.64bp,95.0bp) -- cycle;
  152. \draw (33.143bp,106.0bp) node {$f_{\lnot ac}$};
  153. \end{scope}
  154. % Node: e5
  155. \begin{scope}
  156. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  157. \pgfsetstrokecolor{strokecol}
  158. \draw (33.14bp,48.0bp) ellipse (11.0bp and 11.0bp);
  159. \draw (33.143bp,48.0bp) node {$e$};
  160. \end{scope}
  161. % Node: f_!a!c
  162. \begin{scope}
  163. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  164. \pgfsetstrokecolor{strokecol}
  165. \draw (105.64bp,175.0bp) -- (62.64bp,175.0bp) -- (62.64bp,153.0bp) -- (105.64bp,153.0bp) -- cycle;
  166. \draw (84.143bp,164.0bp) node {$f_{\lnot a\lnot c}$};
  167. \end{scope}
  168. % Node: d6
  169. \begin{scope}
  170. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  171. \pgfsetstrokecolor{strokecol}
  172. \draw (84.14bp,106.0bp) ellipse (11.0bp and 11.0bp);
  173. \draw (84.143bp,106.0bp) node {$d$};
  174. \end{scope}
  175. %
  176. \end{tikzpicture}
  177. }
  178. \end{center}