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.

161 lines
6.8 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((q \land \lnot s) \lor (s \land (\lnot r \lor p))) \lor ((p \land q) \land r))$\\
  3. \>$f_{p}$ \= $= (((q \land \lnot s) \lor s) \lor (q \land r))$\\
  4. \>\>$f_{pq}$ \= $= \true$\\
  5. \>\>$f_{p\lnot q}$ \= $= s$\\
  6. \>\>\>$f_{p\lnot qs}$ \= $= \true$\\
  7. \>\>\>$f_{p\lnot q\lnot s}$ \= $= \false$\\
  8. \>$f_{\lnot p}$ \= $= ((q \land \lnot s) \lor (s \land \lnot r))$\\
  9. \>\>$f_{\lnot pq}$ \= $= (\lnot s \lor (s \land \lnot r))$\\
  10. \>\>\>$f_{\lnot pqr}$ \= $= \lnot f_{p\lnot q}$\\
  11. \>\>\>$f_{\lnot pq\lnot r}$ \= $= \true$\\
  12. \>\>$f_{\lnot p\lnot q}$ \= $= (s \land \lnot r)$\\
  13. \>\>\>$f_{\lnot p\lnot qr}$ \= $= \false$\\
  14. \>\>\>$f_{\lnot p\lnot q\lnot r}$ \= $= f_{p\lnot q}$\\
  15. \end{cofactors}
  16. The final ROBDD:
  17. \begin{center}
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: f_E -> p0
  24. \draw [] (123.5bp,268.99bp) .. controls (123.5bp,258.92bp) and (123.5bp,243.47bp) .. (123.5bp,233.3bp);
  25. % Edge: f_p -> q1
  26. \draw [] (174.5bp,210.99bp) .. controls (174.5bp,200.92bp) and (174.5bp,185.47bp) .. (174.5bp,175.3bp);
  27. % Edge: f_p!q -> s2
  28. \draw [] (74.288bp,94.988bp) .. controls (76.108bp,84.795bp) and (78.913bp,69.087bp) .. (80.728bp,58.925bp);
  29. % Edge: f_!p -> q3
  30. \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp);
  31. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  32. \pgfsetstrokecolor{strokecol}
  33. \draw (72.5bp,195.3bp) node {\Large$\bullet$};
  34. % Edge: f_!pq -> r4
  35. \draw [] (123.5bp,152.99bp) .. controls (123.5bp,142.92bp) and (123.5bp,127.47bp) .. (123.5bp,117.3bp);
  36. \draw (123.5bp,137.3bp) node {\Large$\bullet$};
  37. % Edge: f_!p!q -> r5
  38. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp);
  39. \draw (21.5bp,137.3bp) node {\Large$\bullet$};
  40. % Edge: p0 -> q3
  41. \draw [] (116.41bp,213.21bp) .. controls (106.66bp,202.51bp) and (89.243bp,183.38bp) .. (79.531bp,172.72bp);
  42. \draw (92.998bp,187.51bp) node {\Large$\bullet$};
  43. % Edge: p0 -> q1
  44. \draw [] (130.59bp,213.21bp) .. controls (140.34bp,202.51bp) and (157.76bp,183.38bp) .. (167.47bp,172.72bp);
  45. % Edge: q3 -> r5
  46. \draw [] (65.409bp,155.21bp) .. controls (55.665bp,144.51bp) and (38.243bp,125.38bp) .. (28.531bp,114.72bp);
  47. \draw (41.998bp,129.51bp) node {\Large$\circ$};
  48. % Edge: q3 -> r4
  49. \draw [] (79.591bp,155.21bp) .. controls (89.335bp,144.51bp) and (106.76bp,125.38bp) .. (116.47bp,114.72bp);
  50. % Edge: r5 -> s2
  51. \draw [] (29.226bp,97.908bp) .. controls (40.895bp,87.195bp) and (62.899bp,66.995bp) .. (74.644bp,56.212bp);
  52. \draw (59.911bp,69.737bp) node {\Large$\bullet$};
  53. % Edge: r5 -> 4
  54. \draw [] (21.5bp,94.988bp) .. controls (21.5bp,79.384bp) and (21.5bp,50.854bp) .. (21.5bp,49.086bp);
  55. % Edge: r4 -> s2
  56. \draw [] (117.45bp,96.737bp) .. controls (109.7bp,86.149bp) and (96.338bp,67.901bp) .. (88.575bp,57.297bp);
  57. % Edge: r4 -> 3
  58. \draw [] (123.5bp,94.988bp) .. controls (123.5bp,79.384bp) and (123.5bp,50.854bp) .. (123.5bp,49.086bp);
  59. \draw (123.5bp,69.086bp) node {\Large$\bullet$};
  60. % Edge: q1 -> s2
  61. \draw [] (171.65bp,152.93bp) .. controls (167.29bp,138.85bp) and (157.95bp,113.01bp) .. (143.5bp,95.0bp) .. controls (128.72bp,76.585bp) and (105.0bp,61.54bp) .. (91.923bp,54.08bp);
  62. \draw (109.2bp,64.149bp) node {\Large$\circ$};
  63. % Edge: q1 -> 0
  64. \draw [] (177.46bp,153.25bp) .. controls (182.18bp,137.7bp) and (190.93bp,108.87bp) .. (191.47bp,107.09bp);
  65. % Edge: s2 -> 1
  66. \draw [] (80.281bp,36.791bp) .. controls (77.427bp,23.663bp) and (72.8bp,2.3815bp) .. (72.514bp,1.0642bp);
  67. % Edge: s2 -> 2
  68. \draw [] (84.497bp,36.791bp) .. controls (87.066bp,23.663bp) and (91.23bp,2.3815bp) .. (91.487bp,1.0642bp);
  69. \draw (87.647bp,20.692bp) node {\Large$\bullet$};
  70. % Node: f_E
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (145.0bp,291.0bp) -- (102.0bp,291.0bp) -- (102.0bp,269.0bp) -- (145.0bp,269.0bp) -- cycle;
  75. \draw (123.5bp,280.0bp) node {$f$};
  76. \end{scope}
  77. % Node: p0
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (123.5bp,222.0bp) ellipse (11.0bp and 11.0bp);
  82. \draw (123.5bp,222.0bp) node {$p$};
  83. \end{scope}
  84. % Node: f_p
  85. \begin{scope}
  86. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  87. \pgfsetstrokecolor{strokecol}
  88. \draw (196.0bp,233.0bp) -- (153.0bp,233.0bp) -- (153.0bp,211.0bp) -- (196.0bp,211.0bp) -- cycle;
  89. \draw (174.5bp,222.0bp) node {$f_{p}$};
  90. \end{scope}
  91. % Node: q1
  92. \begin{scope}
  93. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  94. \pgfsetstrokecolor{strokecol}
  95. \draw (174.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  96. \draw (174.5bp,164.0bp) node {$q$};
  97. \end{scope}
  98. % Node: f_p!q
  99. \begin{scope}
  100. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  101. \pgfsetstrokecolor{strokecol}
  102. \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle;
  103. \draw (72.5bp,106.0bp) node {$f_{p\lnot q}$};
  104. \end{scope}
  105. % Node: s2
  106. \begin{scope}
  107. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  108. \pgfsetstrokecolor{strokecol}
  109. \draw (82.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  110. \draw (82.5bp,48.0bp) node {$s$};
  111. \end{scope}
  112. % Node: f_!p
  113. \begin{scope}
  114. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  115. \pgfsetstrokecolor{strokecol}
  116. \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle;
  117. \draw (72.5bp,222.0bp) node {$f_{\lnot p}$};
  118. \end{scope}
  119. % Node: q3
  120. \begin{scope}
  121. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  122. \pgfsetstrokecolor{strokecol}
  123. \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  124. \draw (72.5bp,164.0bp) node {$q$};
  125. \end{scope}
  126. % Node: f_!pq
  127. \begin{scope}
  128. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  129. \pgfsetstrokecolor{strokecol}
  130. \draw (145.0bp,175.0bp) -- (102.0bp,175.0bp) -- (102.0bp,153.0bp) -- (145.0bp,153.0bp) -- cycle;
  131. \draw (123.5bp,164.0bp) node {$f_{\lnot pq}$};
  132. \end{scope}
  133. % Node: r4
  134. \begin{scope}
  135. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  136. \pgfsetstrokecolor{strokecol}
  137. \draw (123.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  138. \draw (123.5bp,106.0bp) node {$r$};
  139. \end{scope}
  140. % Node: f_!p!q
  141. \begin{scope}
  142. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  143. \pgfsetstrokecolor{strokecol}
  144. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  145. \draw (21.5bp,164.0bp) node {$f_{\lnot p\lnot q}$};
  146. \end{scope}
  147. % Node: r5
  148. \begin{scope}
  149. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  150. \pgfsetstrokecolor{strokecol}
  151. \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  152. \draw (21.5bp,106.0bp) node {$r$};
  153. \end{scope}
  154. %
  155. \end{tikzpicture}
  156. }
  157. \end{center}