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.

206 lines
8.9 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((p \land q) \lor (r \land \lnot s)) \lor ((\lnot p \land t) \land u))$\\
  3. \>$f_{p}$ \= $= (q \lor (r \land \lnot s))$\\
  4. \>\>$f_{pq}$ \= $= \true$\\
  5. \>\>$f_{p\lnot q}$ \= $= (r \land \lnot s)$\\
  6. \>\>\>$f_{p\lnot qr}$ \= $= \lnot s$\\
  7. \>\>\>\>$f_{p\lnot qrs}$ \= $= \false$\\
  8. \>\>\>\>$f_{p\lnot qr\lnot s}$ \= $= \true$\\
  9. \>\>\>$f_{p\lnot q\lnot r}$ \= $= \false$\\
  10. \>$f_{\lnot p}$ \= $= ((r \land \lnot s) \lor (t \land u))$\\
  11. \>\>$f_{\lnot pr}$ \= $= (\lnot s \lor (t \land u))$\\
  12. \>\>\>$f_{\lnot prs}$ \= $= (t \land u)$\\
  13. \>\>\>\>$f_{\lnot prst}$ \= $= u$\\
  14. \>\>\>\>\>$f_{\lnot prstu}$ \= $= \true$\\
  15. \>\>\>\>\>$f_{\lnot prst\lnot u}$ \= $= \false$\\
  16. \>\>\>\>$f_{\lnot prs\lnot t}$ \= $= \false$\\
  17. \>\>\>$f_{\lnot pr\lnot s}$ \= $= \true$\\
  18. \>\>$f_{\lnot p\lnot r}$ \= $= f_{\lnot prs}$\\
  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 -> p0
  28. \draw [] (128.5bp,326.99bp) .. controls (128.5bp,316.92bp) and (128.5bp,301.47bp) .. (128.5bp,291.3bp);
  29. % Edge: f_p -> q1
  30. \draw [] (174.49bp,268.99bp) .. controls (169.27bp,258.54bp) and (161.15bp,242.31bp) .. (156.09bp,232.18bp);
  31. % Edge: f_p!q -> r2
  32. \draw [] (198.75bp,210.99bp) .. controls (194.88bp,200.67bp) and (188.89bp,184.7bp) .. (185.08bp,174.55bp);
  33. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  34. \pgfsetstrokecolor{strokecol}
  35. \draw (192.1bp,193.28bp) node {\Large$\bullet$};
  36. % Edge: f_p!qr -> s3
  37. \draw [] (231.61bp,152.99bp) .. controls (230.71bp,142.92bp) and (229.33bp,127.47bp) .. (228.42bp,117.3bp);
  38. \draw (230.2bp,137.22bp) node {\Large$\bullet$};
  39. % Edge: f_!p -> r4
  40. \draw [] (82.685bp,268.99bp) .. controls (88.094bp,258.54bp) and (96.501bp,242.31bp) .. (101.74bp,232.18bp);
  41. % Edge: f_!pr -> s5
  42. \draw [] (21.5bp,210.99bp) .. controls (21.5bp,200.92bp) and (21.5bp,185.47bp) .. (21.5bp,175.3bp);
  43. % Edge: f_!prs -> t6
  44. \draw [] (73.394bp,152.99bp) .. controls (74.293bp,142.92bp) and (75.672bp,127.47bp) .. (76.58bp,117.3bp);
  45. % Edge: f_!prst -> u7
  46. \draw [] (161.32bp,94.988bp) .. controls (155.91bp,84.544bp) and (147.5bp,68.308bp) .. (142.26bp,58.183bp);
  47. % Edge: p0 -> r4
  48. \draw [] (124.77bp,269.5bp) .. controls (120.75bp,259.27bp) and (114.38bp,243.06bp) .. (110.32bp,232.73bp);
  49. \draw (117.64bp,251.35bp) node {\Large$\circ$};
  50. % Edge: p0 -> q1
  51. \draw [] (132.4bp,269.5bp) .. controls (136.66bp,259.14bp) and (143.42bp,242.66bp) .. (147.66bp,232.36bp);
  52. % Edge: r4 -> s5
  53. \draw [] (97.724bp,215.22bp) .. controls (81.436bp,204.49bp) and (46.704bp,181.6bp) .. (30.356bp,170.83bp);
  54. % Edge: r4 -> t6
  55. \draw [] (107.27bp,210.63bp) .. controls (107.97bp,197.09bp) and (108.15bp,172.79bp) .. (102.5bp,153.0bp) .. controls (98.455bp,138.84bp) and (89.518bp,124.18bp) .. (83.501bp,115.32bp);
  56. \draw (94.602bp,131.96bp) node {\Large$\circ$};
  57. % Edge: s5 -> t6
  58. \draw [] (28.821bp,155.68bp) .. controls (39.494bp,145.01bp) and (59.224bp,125.28bp) .. (69.998bp,114.5bp);
  59. % Edge: s5 -> 7
  60. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,137.38bp) and (21.5bp,108.85bp) .. (21.5bp,107.09bp);
  61. \draw (21.5bp,127.09bp) node {\Large$\circ$};
  62. % Edge: t6 -> u7
  63. \draw [] (85.344bp,97.679bp) .. controls (96.906bp,86.887bp) and (118.39bp,66.836bp) .. (129.84bp,56.146bp);
  64. % Edge: t6 -> 6
  65. \draw [] (77.5bp,94.988bp) .. controls (77.5bp,79.384bp) and (77.5bp,50.854bp) .. (77.5bp,49.086bp);
  66. \draw (77.5bp,69.086bp) node {\Large$\bullet$};
  67. % Edge: u7 -> 4
  68. \draw [] (135.28bp,36.791bp) .. controls (132.43bp,23.663bp) and (127.8bp,2.3815bp) .. (127.51bp,1.0642bp);
  69. % Edge: u7 -> 5
  70. \draw [] (139.5bp,36.791bp) .. controls (142.07bp,23.663bp) and (146.23bp,2.3815bp) .. (146.49bp,1.0642bp);
  71. \draw (142.65bp,20.692bp) node {\Large$\bullet$};
  72. % Edge: q1 -> r2
  73. \draw [] (156.32bp,212.0bp) .. controls (161.89bp,201.61bp) and (170.99bp,184.62bp) .. (176.59bp,174.16bp);
  74. \draw (167.15bp,191.79bp) node {\Large$\bullet$};
  75. % Edge: q1 -> 0
  76. \draw [] (151.5bp,210.99bp) .. controls (151.5bp,195.38bp) and (151.5bp,166.85bp) .. (151.5bp,165.09bp);
  77. % Edge: r2 -> s3
  78. \draw [] (188.29bp,154.74bp) .. controls (197.08bp,144.03bp) and (212.32bp,125.48bp) .. (220.98bp,114.93bp);
  79. % Edge: r2 -> 3
  80. \draw [] (173.89bp,155.63bp) .. controls (164.66bp,146.64bp) and (148.71bp,130.93bp) .. (135.5bp,117.0bp) .. controls (131.64bp,112.93bp) and (127.11bp,107.7bp) .. (126.56bp,107.06bp);
  81. \draw (139.66bp,122.18bp) node {\Large$\circ$};
  82. % Edge: s3 -> 1
  83. \draw [] (225.71bp,94.988bp) .. controls (222.93bp,79.384bp) and (217.83bp,50.854bp) .. (217.52bp,49.086bp);
  84. % Edge: s3 -> 2
  85. \draw [] (229.11bp,94.988bp) .. controls (231.62bp,79.384bp) and (236.2bp,50.854bp) .. (236.49bp,49.086bp);
  86. \draw (233.31bp,68.833bp) node {\Large$\bullet$};
  87. % Node: f_E
  88. \begin{scope}
  89. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  90. \pgfsetstrokecolor{strokecol}
  91. \draw (150.0bp,349.0bp) -- (107.0bp,349.0bp) -- (107.0bp,327.0bp) -- (150.0bp,327.0bp) -- cycle;
  92. \draw (128.5bp,338.0bp) node {$f$};
  93. \end{scope}
  94. % Node: p0
  95. \begin{scope}
  96. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  97. \pgfsetstrokecolor{strokecol}
  98. \draw (128.5bp,280.0bp) ellipse (11.0bp and 11.0bp);
  99. \draw (128.5bp,280.0bp) node {$p$};
  100. \end{scope}
  101. % Node: f_p
  102. \begin{scope}
  103. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  104. \pgfsetstrokecolor{strokecol}
  105. \draw (201.0bp,291.0bp) -- (158.0bp,291.0bp) -- (158.0bp,269.0bp) -- (201.0bp,269.0bp) -- cycle;
  106. \draw (179.5bp,280.0bp) node {$f_{p}$};
  107. \end{scope}
  108. % Node: q1
  109. \begin{scope}
  110. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  111. \pgfsetstrokecolor{strokecol}
  112. \draw (151.5bp,222.0bp) ellipse (11.0bp and 11.0bp);
  113. \draw (151.5bp,222.0bp) node {$q$};
  114. \end{scope}
  115. % Node: f_p!q
  116. \begin{scope}
  117. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  118. \pgfsetstrokecolor{strokecol}
  119. \draw (224.0bp,233.0bp) -- (181.0bp,233.0bp) -- (181.0bp,211.0bp) -- (224.0bp,211.0bp) -- cycle;
  120. \draw (202.5bp,222.0bp) node {$f_{p\lnot q}$};
  121. \end{scope}
  122. % Node: r2
  123. \begin{scope}
  124. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  125. \pgfsetstrokecolor{strokecol}
  126. \draw (181.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  127. \draw (181.5bp,164.0bp) node {$r$};
  128. \end{scope}
  129. % Node: f_p!qr
  130. \begin{scope}
  131. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  132. \pgfsetstrokecolor{strokecol}
  133. \draw (254.0bp,175.0bp) -- (211.0bp,175.0bp) -- (211.0bp,153.0bp) -- (254.0bp,153.0bp) -- cycle;
  134. \draw (232.5bp,164.0bp) node {$f_{p\lnot qr}$};
  135. \end{scope}
  136. % Node: s3
  137. \begin{scope}
  138. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  139. \pgfsetstrokecolor{strokecol}
  140. \draw (227.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  141. \draw (227.5bp,106.0bp) node {$s$};
  142. \end{scope}
  143. % Node: f_!p
  144. \begin{scope}
  145. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  146. \pgfsetstrokecolor{strokecol}
  147. \draw (99.0bp,291.0bp) -- (56.0bp,291.0bp) -- (56.0bp,269.0bp) -- (99.0bp,269.0bp) -- cycle;
  148. \draw (77.5bp,280.0bp) node {$f_{\lnot p}$};
  149. \end{scope}
  150. % Node: r4
  151. \begin{scope}
  152. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  153. \pgfsetstrokecolor{strokecol}
  154. \draw (106.5bp,222.0bp) ellipse (11.0bp and 11.0bp);
  155. \draw (106.5bp,222.0bp) node {$r$};
  156. \end{scope}
  157. % Node: f_!pr
  158. \begin{scope}
  159. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  160. \pgfsetstrokecolor{strokecol}
  161. \draw (43.0bp,233.0bp) -- (0.0bp,233.0bp) -- (0.0bp,211.0bp) -- (43.0bp,211.0bp) -- cycle;
  162. \draw (21.5bp,222.0bp) node {$f_{\lnot pr}$};
  163. \end{scope}
  164. % Node: s5
  165. \begin{scope}
  166. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  167. \pgfsetstrokecolor{strokecol}
  168. \draw (21.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  169. \draw (21.5bp,164.0bp) node {$s$};
  170. \end{scope}
  171. % Node: f_!prs
  172. \begin{scope}
  173. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  174. \pgfsetstrokecolor{strokecol}
  175. \draw (94.0bp,175.0bp) -- (51.0bp,175.0bp) -- (51.0bp,153.0bp) -- (94.0bp,153.0bp) -- cycle;
  176. \draw (72.5bp,164.0bp) node {$f_{\lnot prs}$};
  177. \end{scope}
  178. % Node: t6
  179. \begin{scope}
  180. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  181. \pgfsetstrokecolor{strokecol}
  182. \draw (77.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  183. \draw (77.5bp,106.0bp) node {$t$};
  184. \end{scope}
  185. % Node: f_!prst
  186. \begin{scope}
  187. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  188. \pgfsetstrokecolor{strokecol}
  189. \draw (188.0bp,117.0bp) -- (145.0bp,117.0bp) -- (145.0bp,95.0bp) -- (188.0bp,95.0bp) -- cycle;
  190. \draw (166.5bp,106.0bp) node {$f_{\lnot prst}$};
  191. \end{scope}
  192. % Node: u7
  193. \begin{scope}
  194. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  195. \pgfsetstrokecolor{strokecol}
  196. \draw (137.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  197. \draw (137.5bp,48.0bp) node {$u$};
  198. \end{scope}
  199. %
  200. \end{tikzpicture}
  201. }
  202. \end{center}