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.

205 lines
8.9 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((a \land b) \lor (\lnot c \land d)) \lor (e \land \lnot a))$\\
  3. \>$f_{e}$ \= $= (((a \land b) \lor (\lnot c \land d)) \lor \lnot a)$\\
  4. \>\>$f_{ed}$ \= $= (((a \land b) \lor \lnot c) \lor \lnot a)$\\
  5. \>\>\>$f_{edc}$ \= $= ((a \land b) \lor \lnot a)$\\
  6. \>\>\>\>$f_{edcb}$ \= $= \true$\\
  7. \>\>\>\>$f_{edc\lnot b}$ \= $= \lnot a$\\
  8. \>\>\>\>\>$f_{edc\lnot ba}$ \= $= \false$\\
  9. \>\>\>\>\>$f_{edc\lnot b\lnot a}$ \= $= \true$\\
  10. \>\>\>$f_{ed\lnot c}$ \= $= \true$\\
  11. \>\>$f_{e\lnot d}$ \= $= f_{edc}$\\
  12. \>$f_{\lnot e}$ \= $= ((a \land b) \lor (\lnot c \land d))$\\
  13. \>\>$f_{\lnot ed}$ \= $= ((a \land b) \lor \lnot c)$\\
  14. \>\>\>$f_{\lnot edc}$ \= $= (a \land b)$\\
  15. \>\>\>\>$f_{\lnot edcb}$ \= $= \lnot f_{edc\lnot b}$\\
  16. \>\>\>\>$f_{\lnot edc\lnot b}$ \= $= \false$\\
  17. \>\>\>$f_{\lnot ed\lnot c}$ \= $= \true$\\
  18. \>\>$f_{\lnot e\lnot d}$ \= $= f_{\lnot edc}$\\
  19. \end{cofactors}
  20. The final ROBDD:
  21. \begin{center}
  22. \scalebox{0.75}{
  23. \begin{tikzpicture}[>=latex,line join=bevel,]
  24. \pgfsetlinewidth{1bp}
  25. %%
  26. \pgfsetcolor{black}
  27. % Edge: f_E -> e0
  28. \draw [] (114.56bp,326.99bp) .. controls (114.56bp,316.92bp) and (114.56bp,301.47bp) .. (114.56bp,291.3bp);
  29. % Edge: f_e -> d1
  30. \draw [] (195.56bp,268.99bp) .. controls (195.56bp,258.92bp) and (195.56bp,243.47bp) .. (195.56bp,233.3bp);
  31. % Edge: f_ed -> c2
  32. \draw [] (145.63bp,210.99bp) .. controls (146.71bp,200.92bp) and (148.37bp,185.47bp) .. (149.46bp,175.3bp);
  33. % Edge: f_edc -> b3
  34. \draw [] (236.62bp,152.99bp) .. controls (226.85bp,142.04bp) and (211.39bp,124.73bp) .. (202.49bp,114.76bp);
  35. % Edge: f_edc!b -> a4
  36. \draw [] (144.56bp,94.988bp) .. controls (144.56bp,84.921bp) and (144.56bp,69.474bp) .. (144.56bp,59.304bp);
  37. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  38. \pgfsetstrokecolor{strokecol}
  39. \draw (144.56bp,79.304bp) node {\Large$\bullet$};
  40. % Edge: f_!e -> d5
  41. \draw [] (32.561bp,268.99bp) .. controls (32.561bp,258.92bp) and (32.561bp,243.47bp) .. (32.561bp,233.3bp);
  42. % Edge: f_!ed -> c6
  43. \draw [] (83.74bp,210.99bp) .. controls (83.92bp,200.92bp) and (84.196bp,185.47bp) .. (84.377bp,175.3bp);
  44. % Edge: f_!edc -> b7
  45. \draw [] (35.528bp,152.99bp) .. controls (37.53bp,142.8bp) and (40.616bp,127.09bp) .. (42.612bp,116.93bp);
  46. % Edge: e0 -> d5
  47. \draw [] (105.79bp,273.01bp) .. controls (90.003bp,262.23bp) and (57.01bp,239.7bp) .. (41.274bp,228.95bp);
  48. \draw (57.79bp,240.23bp) node {\Large$\circ$};
  49. % Edge: e0 -> d1
  50. \draw [] (123.23bp,273.01bp) .. controls (138.74bp,262.29bp) and (171.07bp,239.93bp) .. (186.71bp,229.12bp);
  51. % Edge: d5 -> c6
  52. \draw [] (39.792bp,213.21bp) .. controls (49.726bp,202.51bp) and (67.49bp,183.38bp) .. (77.392bp,172.72bp);
  53. % Edge: d5 -> b7
  54. \draw [] (25.112bp,213.55bp) .. controls (13.652bp,201.13bp) and (-6.1173bp,175.38bp) .. (2.5613bp,153.0bp) .. controls (9.2091bp,135.86bp) and (25.549bp,121.2bp) .. (35.777bp,113.28bp);
  55. \draw (20.122bp,125.73bp) node {\Large$\circ$};
  56. % Edge: c6 -> b7
  57. \draw [] (78.311bp,154.25bp) .. controls (70.753bp,143.67bp) and (58.116bp,125.98bp) .. (50.636bp,115.51bp);
  58. % Edge: c6 -> 5
  59. \draw [] (84.561bp,152.99bp) .. controls (84.561bp,137.38bp) and (84.561bp,108.85bp) .. (84.561bp,107.09bp);
  60. \draw (84.561bp,127.09bp) node {\Large$\circ$};
  61. % Edge: b7 -> a4
  62. \draw [] (53.79bp,99.832bp) .. controls (72.84bp,89.164bp) and (116.32bp,64.813bp) .. (135.36bp,54.155bp);
  63. % Edge: b7 -> 4
  64. \draw [] (44.561bp,94.988bp) .. controls (44.561bp,79.384bp) and (44.561bp,50.854bp) .. (44.561bp,49.086bp);
  65. \draw (44.561bp,69.086bp) node {\Large$\bullet$};
  66. % Edge: d1 -> c2
  67. \draw [] (188.92bp,212.74bp) .. controls (180.41bp,202.15bp) and (165.75bp,183.9bp) .. (157.23bp,173.3bp);
  68. % Edge: d1 -> b3
  69. \draw [] (195.56bp,210.88bp) .. controls (195.56bp,189.3bp) and (195.56bp,138.96bp) .. (195.56bp,117.26bp);
  70. \draw (195.56bp,137.26bp) node {\Large$\circ$};
  71. % Edge: c2 -> b3
  72. \draw [] (157.2bp,154.74bp) .. controls (165.71bp,144.15bp) and (180.37bp,125.9bp) .. (188.89bp,115.3bp);
  73. % Edge: c2 -> 3
  74. \draw [] (143.77bp,154.74bp) .. controls (131.38bp,139.65bp) and (106.2bp,108.99bp) .. (104.64bp,107.09bp);
  75. \draw (117.33bp,122.55bp) node {\Large$\circ$};
  76. % Edge: b3 -> a4
  77. \draw [] (188.47bp,97.213bp) .. controls (178.73bp,86.514bp) and (161.3bp,67.385bp) .. (151.59bp,56.72bp);
  78. \draw (165.06bp,71.507bp) node {\Large$\bullet$};
  79. % Edge: b3 -> 0
  80. \draw [] (195.56bp,94.988bp) .. controls (195.56bp,79.384bp) and (195.56bp,50.854bp) .. (195.56bp,49.086bp);
  81. % Edge: a4 -> 1
  82. \draw [] (142.56bp,36.791bp) .. controls (140.0bp,23.663bp) and (135.83bp,2.3815bp) .. (135.57bp,1.0642bp);
  83. % Edge: a4 -> 2
  84. \draw [] (146.78bp,36.791bp) .. controls (149.63bp,23.663bp) and (154.26bp,2.3815bp) .. (154.55bp,1.0642bp);
  85. \draw (150.3bp,20.608bp) node {\Large$\bullet$};
  86. % Node: f_E
  87. \begin{scope}
  88. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  89. \pgfsetstrokecolor{strokecol}
  90. \draw (136.06bp,349.0bp) -- (93.06bp,349.0bp) -- (93.06bp,327.0bp) -- (136.06bp,327.0bp) -- cycle;
  91. \draw (114.56bp,338.0bp) node {$f$};
  92. \end{scope}
  93. % Node: e0
  94. \begin{scope}
  95. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  96. \pgfsetstrokecolor{strokecol}
  97. \draw (114.56bp,280.0bp) ellipse (11.0bp and 11.0bp);
  98. \draw (114.56bp,280.0bp) node {$e$};
  99. \end{scope}
  100. % Node: f_e
  101. \begin{scope}
  102. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  103. \pgfsetstrokecolor{strokecol}
  104. \draw (217.06bp,291.0bp) -- (174.06bp,291.0bp) -- (174.06bp,269.0bp) -- (217.06bp,269.0bp) -- cycle;
  105. \draw (195.56bp,280.0bp) node {$f_{e}$};
  106. \end{scope}
  107. % Node: d1
  108. \begin{scope}
  109. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  110. \pgfsetstrokecolor{strokecol}
  111. \draw (195.56bp,222.0bp) ellipse (11.0bp and 11.0bp);
  112. \draw (195.56bp,222.0bp) node {$d$};
  113. \end{scope}
  114. % Node: f_ed
  115. \begin{scope}
  116. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  117. \pgfsetstrokecolor{strokecol}
  118. \draw (166.06bp,233.0bp) -- (123.06bp,233.0bp) -- (123.06bp,211.0bp) -- (166.06bp,211.0bp) -- cycle;
  119. \draw (144.56bp,222.0bp) node {$f_{ed}$};
  120. \end{scope}
  121. % Node: c2
  122. \begin{scope}
  123. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  124. \pgfsetstrokecolor{strokecol}
  125. \draw (150.56bp,164.0bp) ellipse (11.0bp and 11.0bp);
  126. \draw (150.56bp,164.0bp) node {$c$};
  127. \end{scope}
  128. % Node: f_edc
  129. \begin{scope}
  130. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  131. \pgfsetstrokecolor{strokecol}
  132. \draw (267.06bp,175.0bp) -- (224.06bp,175.0bp) -- (224.06bp,153.0bp) -- (267.06bp,153.0bp) -- cycle;
  133. \draw (245.56bp,164.0bp) node {$f_{edc}$};
  134. \end{scope}
  135. % Node: b3
  136. \begin{scope}
  137. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  138. \pgfsetstrokecolor{strokecol}
  139. \draw (195.56bp,106.0bp) ellipse (11.0bp and 11.0bp);
  140. \draw (195.56bp,106.0bp) node {$b$};
  141. \end{scope}
  142. % Node: f_edc!b
  143. \begin{scope}
  144. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  145. \pgfsetstrokecolor{strokecol}
  146. \draw (166.06bp,117.0bp) -- (123.06bp,117.0bp) -- (123.06bp,95.0bp) -- (166.06bp,95.0bp) -- cycle;
  147. \draw (144.56bp,106.0bp) node {$f_{edc\lnot b}$};
  148. \end{scope}
  149. % Node: a4
  150. \begin{scope}
  151. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  152. \pgfsetstrokecolor{strokecol}
  153. \draw (144.56bp,48.0bp) ellipse (11.0bp and 11.0bp);
  154. \draw (144.56bp,48.0bp) node {$a$};
  155. \end{scope}
  156. % Node: f_!e
  157. \begin{scope}
  158. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  159. \pgfsetstrokecolor{strokecol}
  160. \draw (54.06bp,291.0bp) -- (11.06bp,291.0bp) -- (11.06bp,269.0bp) -- (54.06bp,269.0bp) -- cycle;
  161. \draw (32.561bp,280.0bp) node {$f_{\lnot e}$};
  162. \end{scope}
  163. % Node: d5
  164. \begin{scope}
  165. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  166. \pgfsetstrokecolor{strokecol}
  167. \draw (32.56bp,222.0bp) ellipse (11.0bp and 11.0bp);
  168. \draw (32.561bp,222.0bp) node {$d$};
  169. \end{scope}
  170. % Node: f_!ed
  171. \begin{scope}
  172. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  173. \pgfsetstrokecolor{strokecol}
  174. \draw (105.06bp,233.0bp) -- (62.06bp,233.0bp) -- (62.06bp,211.0bp) -- (105.06bp,211.0bp) -- cycle;
  175. \draw (83.561bp,222.0bp) node {$f_{\lnot ed}$};
  176. \end{scope}
  177. % Node: c6
  178. \begin{scope}
  179. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  180. \pgfsetstrokecolor{strokecol}
  181. \draw (84.56bp,164.0bp) ellipse (11.0bp and 11.0bp);
  182. \draw (84.561bp,164.0bp) node {$c$};
  183. \end{scope}
  184. % Node: f_!edc
  185. \begin{scope}
  186. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  187. \pgfsetstrokecolor{strokecol}
  188. \draw (55.06bp,175.0bp) -- (12.06bp,175.0bp) -- (12.06bp,153.0bp) -- (55.06bp,153.0bp) -- cycle;
  189. \draw (33.561bp,164.0bp) node {$f_{\lnot edc}$};
  190. \end{scope}
  191. % Node: b7
  192. \begin{scope}
  193. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  194. \pgfsetstrokecolor{strokecol}
  195. \draw (44.56bp,106.0bp) ellipse (11.0bp and 11.0bp);
  196. \draw (44.561bp,106.0bp) node {$b$};
  197. \end{scope}
  198. %
  199. \end{tikzpicture}
  200. }
  201. \end{center}