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.

183 lines
7.7 KiB

9 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((p \lor q) \land (r \lor \lnot s)) \land (\lnot p \lor t))$\\
  3. \>$f_{p}$ \= $= ((r \lor \lnot s) \land t)$\\
  4. \>\>$f_{pr}$ \= $= t$\\
  5. \>\>\>$f_{prt}$ \= $= \true$\\
  6. \>\>\>$f_{pr\lnot t}$ \= $= \false$\\
  7. \>\>$f_{p\lnot r}$ \= $= (\lnot s \land t)$\\
  8. \>\>\>$f_{p\lnot rs}$ \= $= \false$\\
  9. \>\>\>$f_{p\lnot r\lnot s}$ \= $= f_{pr}$\\
  10. \>$f_{\lnot p}$ \= $= (q \land (r \lor \lnot s))$\\
  11. \>\>$f_{\lnot pq}$ \= $= (r \lor \lnot s)$\\
  12. \>\>\>$f_{\lnot pqr}$ \= $= \true$\\
  13. \>\>\>$f_{\lnot pq\lnot r}$ \= $= \lnot s$\\
  14. \>\>\>\>$f_{\lnot pq\lnot rs}$ \= $= \false$\\
  15. \>\>\>\>$f_{\lnot pq\lnot r\lnot s}$ \= $= \true$\\
  16. \>\>$f_{\lnot p\lnot q}$ \= $= \false$\\
  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 -> p0
  26. \draw [] (107.57bp,268.99bp) .. controls (107.57bp,258.92bp) and (107.57bp,243.47bp) .. (107.57bp,233.3bp);
  27. % Edge: f_p -> r1
  28. \draw [] (188.57bp,210.99bp) .. controls (188.57bp,200.92bp) and (188.57bp,185.47bp) .. (188.57bp,175.3bp);
  29. % Edge: f_pr -> t2
  30. \draw [] (231.63bp,94.988bp) .. controls (221.85bp,84.04bp) and (206.4bp,66.729bp) .. (197.5bp,56.763bp);
  31. % Edge: f_p!r -> s3
  32. \draw [] (140.07bp,152.99bp) .. controls (142.62bp,142.8bp) and (146.55bp,127.09bp) .. (149.09bp,116.93bp);
  33. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  34. \pgfsetstrokecolor{strokecol}
  35. \draw (144.24bp,136.33bp) node {\Large$\bullet$};
  36. % Edge: f_!p -> q4
  37. \draw [] (23.569bp,210.99bp) .. controls (23.569bp,200.92bp) and (23.569bp,185.47bp) .. (23.569bp,175.3bp);
  38. % Edge: f_!pq -> r5
  39. \draw [] (70.099bp,152.99bp) .. controls (65.493bp,142.67bp) and (58.363bp,126.7bp) .. (53.833bp,116.55bp);
  40. % Edge: f_!pq!r -> s6
  41. \draw [] (98.781bp,94.988bp) .. controls (96.961bp,84.795bp) and (94.156bp,69.087bp) .. (92.341bp,58.925bp);
  42. \draw (95.857bp,78.614bp) node {\Large$\bullet$};
  43. % Edge: p0 -> q4
  44. \draw [] (98.896bp,215.22bp) .. controls (82.799bp,204.49bp) and (48.476bp,181.6bp) .. (32.321bp,170.83bp);
  45. \draw (48.962bp,181.93bp) node {\Large$\circ$};
  46. % Edge: p0 -> r1
  47. \draw [] (116.24bp,215.01bp) .. controls (131.75bp,204.29bp) and (164.08bp,181.93bp) .. (179.72bp,171.12bp);
  48. % Edge: q4 -> r5
  49. \draw [] (27.862bp,153.75bp) .. controls (32.651bp,143.44bp) and (40.356bp,126.84bp) .. (45.182bp,116.45bp);
  50. % Edge: q4 -> 6
  51. \draw [] (22.854bp,152.99bp) .. controls (21.739bp,137.38bp) and (19.701bp,108.85bp) .. (19.575bp,107.09bp);
  52. \draw (21.0bp,127.04bp) node {\Large$\bullet$};
  53. % Edge: r5 -> s6
  54. \draw [] (55.619bp,96.737bp) .. controls (63.37bp,86.149bp) and (76.731bp,67.901bp) .. (84.494bp,57.297bp);
  55. \draw (72.68bp,73.434bp) node {\Large$\bullet$};
  56. % Edge: r5 -> 3
  57. \draw [] (49.569bp,94.988bp) .. controls (49.569bp,79.384bp) and (49.569bp,50.854bp) .. (49.569bp,49.086bp);
  58. % Edge: s6 -> 4
  59. \draw [] (88.35bp,36.791bp) .. controls (85.496bp,23.663bp) and (80.869bp,2.3815bp) .. (80.583bp,1.0642bp);
  60. % Edge: s6 -> 5
  61. \draw [] (92.566bp,36.791bp) .. controls (95.135bp,23.663bp) and (99.299bp,2.3815bp) .. (99.556bp,1.0642bp);
  62. \draw (95.716bp,20.692bp) node {\Large$\bullet$};
  63. % Edge: r1 -> s3
  64. \draw [] (182.79bp,154.25bp) .. controls (175.8bp,143.67bp) and (164.11bp,125.98bp) .. (157.19bp,115.51bp);
  65. \draw (168.21bp,132.19bp) node {\Large$\bullet$};
  66. % Edge: r1 -> t2
  67. \draw [] (188.75bp,152.88bp) .. controls (189.12bp,131.3bp) and (190.01bp,80.962bp) .. (190.39bp,59.258bp);
  68. % Edge: s3 -> t2
  69. \draw [] (157.66bp,96.25bp) .. controls (165.03bp,85.668bp) and (177.35bp,67.976bp) .. (184.65bp,57.505bp);
  70. \draw (173.22bp,73.917bp) node {\Large$\bullet$};
  71. % Edge: s3 -> 2
  72. \draw [] (151.57bp,94.988bp) .. controls (151.57bp,79.384bp) and (151.57bp,50.854bp) .. (151.57bp,49.086bp);
  73. % Edge: t2 -> 0
  74. \draw [] (188.35bp,36.791bp) .. controls (185.5bp,23.663bp) and (180.87bp,2.3815bp) .. (180.58bp,1.0642bp);
  75. % Edge: t2 -> 1
  76. \draw [] (192.57bp,36.791bp) .. controls (195.13bp,23.663bp) and (199.3bp,2.3815bp) .. (199.56bp,1.0642bp);
  77. \draw (195.72bp,20.692bp) node {\Large$\bullet$};
  78. % Node: f_E
  79. \begin{scope}
  80. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  81. \pgfsetstrokecolor{strokecol}
  82. \draw (129.07bp,291.0bp) -- (86.07bp,291.0bp) -- (86.07bp,269.0bp) -- (129.07bp,269.0bp) -- cycle;
  83. \draw (107.57bp,280.0bp) node {$f$};
  84. \end{scope}
  85. % Node: p0
  86. \begin{scope}
  87. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  88. \pgfsetstrokecolor{strokecol}
  89. \draw (107.57bp,222.0bp) ellipse (11.0bp and 11.0bp);
  90. \draw (107.57bp,222.0bp) node {$p$};
  91. \end{scope}
  92. % Node: f_p
  93. \begin{scope}
  94. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  95. \pgfsetstrokecolor{strokecol}
  96. \draw (210.07bp,233.0bp) -- (167.07bp,233.0bp) -- (167.07bp,211.0bp) -- (210.07bp,211.0bp) -- cycle;
  97. \draw (188.57bp,222.0bp) node {$f_{p}$};
  98. \end{scope}
  99. % Node: r1
  100. \begin{scope}
  101. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  102. \pgfsetstrokecolor{strokecol}
  103. \draw (188.57bp,164.0bp) ellipse (11.0bp and 11.0bp);
  104. \draw (188.57bp,164.0bp) node {$r$};
  105. \end{scope}
  106. % Node: f_pr
  107. \begin{scope}
  108. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  109. \pgfsetstrokecolor{strokecol}
  110. \draw (262.07bp,117.0bp) -- (219.07bp,117.0bp) -- (219.07bp,95.0bp) -- (262.07bp,95.0bp) -- cycle;
  111. \draw (240.57bp,106.0bp) node {$f_{pr}$};
  112. \end{scope}
  113. % Node: t2
  114. \begin{scope}
  115. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  116. \pgfsetstrokecolor{strokecol}
  117. \draw (190.57bp,48.0bp) ellipse (11.0bp and 11.0bp);
  118. \draw (190.57bp,48.0bp) node {$t$};
  119. \end{scope}
  120. % Node: f_p!r
  121. \begin{scope}
  122. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  123. \pgfsetstrokecolor{strokecol}
  124. \draw (159.07bp,175.0bp) -- (116.07bp,175.0bp) -- (116.07bp,153.0bp) -- (159.07bp,153.0bp) -- cycle;
  125. \draw (137.57bp,164.0bp) node {$f_{p\lnot r}$};
  126. \end{scope}
  127. % Node: s3
  128. \begin{scope}
  129. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  130. \pgfsetstrokecolor{strokecol}
  131. \draw (151.57bp,106.0bp) ellipse (11.0bp and 11.0bp);
  132. \draw (151.57bp,106.0bp) node {$s$};
  133. \end{scope}
  134. % Node: f_!p
  135. \begin{scope}
  136. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  137. \pgfsetstrokecolor{strokecol}
  138. \draw (45.07bp,233.0bp) -- (2.07bp,233.0bp) -- (2.07bp,211.0bp) -- (45.07bp,211.0bp) -- cycle;
  139. \draw (23.569bp,222.0bp) node {$f_{\lnot p}$};
  140. \end{scope}
  141. % Node: q4
  142. \begin{scope}
  143. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  144. \pgfsetstrokecolor{strokecol}
  145. \draw (23.57bp,164.0bp) ellipse (11.0bp and 11.0bp);
  146. \draw (23.569bp,164.0bp) node {$q$};
  147. \end{scope}
  148. % Node: f_!pq
  149. \begin{scope}
  150. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  151. \pgfsetstrokecolor{strokecol}
  152. \draw (96.07bp,175.0bp) -- (53.07bp,175.0bp) -- (53.07bp,153.0bp) -- (96.07bp,153.0bp) -- cycle;
  153. \draw (74.569bp,164.0bp) node {$f_{\lnot pq}$};
  154. \end{scope}
  155. % Node: r5
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (49.57bp,106.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (49.569bp,106.0bp) node {$r$};
  161. \end{scope}
  162. % Node: f_!pq!r
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (122.07bp,117.0bp) -- (79.07bp,117.0bp) -- (79.07bp,95.0bp) -- (122.07bp,95.0bp) -- cycle;
  167. \draw (100.57bp,106.0bp) node {$f_{\lnot pq\lnot r}$};
  168. \end{scope}
  169. % Node: s6
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (90.57bp,48.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (90.569bp,48.0bp) node {$s$};
  175. \end{scope}
  176. %
  177. \end{tikzpicture}
  178. }
  179. \end{center}