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.

139 lines
5.7 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= ((((p \land q) \land \lnot r) \lor (\lnot q \land s)) \lor (\lnot p \land \lnot s))$\\
  3. \>$f_{p}$ \= $= ((q \land \lnot r) \lor (\lnot q \land s))$\\
  4. \>\>$f_{pq}$ \= $= \lnot r$\\
  5. \>\>\>$f_{pqr}$ \= $= \false$\\
  6. \>\>\>$f_{pq\lnot r}$ \= $= \true$\\
  7. \>\>$f_{p\lnot q}$ \= $= s$\\
  8. \>\>\>$f_{p\lnot qs}$ \= $= \true$\\
  9. \>\>\>$f_{p\lnot q\lnot s}$ \= $= \false$\\
  10. \>$f_{\lnot p}$ \= $= ((\lnot q \land s) \lor \lnot s)$\\
  11. \>\>$f_{\lnot pq}$ \= $= \lnot f_{p\lnot q}$\\
  12. \>\>$f_{\lnot p\lnot q}$ \= $= \true$\\
  13. \end{cofactors}
  14. The final ROBDD:
  15. \begin{center}
  16. \scalebox{0.75}{
  17. \begin{tikzpicture}[>=latex,line join=bevel,]
  18. \pgfsetlinewidth{1bp}
  19. %%
  20. \pgfsetcolor{black}
  21. % Edge: f_E -> p0
  22. \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp);
  23. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  24. \pgfsetstrokecolor{strokecol}
  25. \draw (72.5bp,195.3bp) node {\Large$\bullet$};
  26. % Edge: f_p -> q1
  27. \draw [] (123.5bp,152.99bp) .. controls (123.5bp,142.92bp) and (123.5bp,127.47bp) .. (123.5bp,117.3bp);
  28. \draw (123.5bp,137.3bp) node {\Large$\bullet$};
  29. % Edge: f_pq -> r2
  30. \draw [] (165.92bp,94.988bp) .. controls (156.53bp,84.04bp) and (141.7bp,66.729bp) .. (133.15bp,56.763bp);
  31. \draw (146.17bp,71.948bp) node {\Large$\bullet$};
  32. % Edge: f_p!q -> s3
  33. \draw [] (72.5bp,94.988bp) .. controls (72.5bp,84.921bp) and (72.5bp,69.474bp) .. (72.5bp,59.304bp);
  34. % Edge: f_!p -> q4
  35. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp);
  36. \draw (21.5bp,137.3bp) node {\Large$\bullet$};
  37. % Edge: p0 -> q4
  38. \draw [] (65.409bp,155.21bp) .. controls (55.665bp,144.51bp) and (38.243bp,125.38bp) .. (28.531bp,114.72bp);
  39. \draw (41.998bp,129.51bp) node {\Large$\circ$};
  40. % Edge: p0 -> q1
  41. \draw [] (79.591bp,155.21bp) .. controls (89.335bp,144.51bp) and (106.76bp,125.38bp) .. (116.47bp,114.72bp);
  42. % Edge: q4 -> s3
  43. \draw [] (28.591bp,97.213bp) .. controls (38.335bp,86.514bp) and (55.757bp,67.385bp) .. (65.469bp,56.72bp);
  44. % Edge: q4 -> 4
  45. \draw [] (21.5bp,94.988bp) .. controls (21.5bp,79.384bp) and (21.5bp,50.854bp) .. (21.5bp,49.086bp);
  46. \draw (21.5bp,69.086bp) node {\Large$\bullet$};
  47. % Edge: q1 -> s3
  48. \draw [] (116.41bp,97.213bp) .. controls (106.66bp,86.514bp) and (89.243bp,67.385bp) .. (79.531bp,56.72bp);
  49. \draw (92.998bp,71.507bp) node {\Large$\bullet$};
  50. % Edge: q1 -> r2
  51. \draw [] (124.04bp,94.988bp) .. controls (124.58bp,84.921bp) and (125.4bp,69.474bp) .. (125.95bp,59.304bp);
  52. % Edge: s3 -> 2
  53. \draw [] (71.168bp,36.791bp) .. controls (69.456bp,23.663bp) and (66.68bp,2.3815bp) .. (66.508bp,1.0642bp);
  54. % Edge: s3 -> 3
  55. \draw [] (75.257bp,37.245bp) .. controls (78.954bp,24.164bp) and (85.101bp,2.4123bp) .. (85.481bp,1.0657bp);
  56. \draw (80.042bp,20.312bp) node {\Large$\bullet$};
  57. % Edge: r2 -> 0
  58. \draw [] (123.11bp,37.245bp) .. controls (118.56bp,24.164bp) and (110.99bp,2.4123bp) .. (110.52bp,1.0657bp);
  59. % Edge: r2 -> 1
  60. \draw [] (127.17bp,36.791bp) .. controls (128.02bp,23.663bp) and (129.41bp,2.3815bp) .. (129.5bp,1.0642bp);
  61. \draw (128.19bp,21.022bp) node {\Large$\bullet$};
  62. % Node: f_E
  63. \begin{scope}
  64. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  65. \pgfsetstrokecolor{strokecol}
  66. \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle;
  67. \draw (72.5bp,222.0bp) node {$f$};
  68. \end{scope}
  69. % Node: p0
  70. \begin{scope}
  71. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  72. \pgfsetstrokecolor{strokecol}
  73. \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  74. \draw (72.5bp,164.0bp) node {$p$};
  75. \end{scope}
  76. % Node: f_p
  77. \begin{scope}
  78. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  79. \pgfsetstrokecolor{strokecol}
  80. \draw (145.0bp,175.0bp) -- (102.0bp,175.0bp) -- (102.0bp,153.0bp) -- (145.0bp,153.0bp) -- cycle;
  81. \draw (123.5bp,164.0bp) node {$f_{p}$};
  82. \end{scope}
  83. % Node: q1
  84. \begin{scope}
  85. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  86. \pgfsetstrokecolor{strokecol}
  87. \draw (123.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  88. \draw (123.5bp,106.0bp) node {$q$};
  89. \end{scope}
  90. % Node: f_pq
  91. \begin{scope}
  92. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  93. \pgfsetstrokecolor{strokecol}
  94. \draw (196.0bp,117.0bp) -- (153.0bp,117.0bp) -- (153.0bp,95.0bp) -- (196.0bp,95.0bp) -- cycle;
  95. \draw (174.5bp,106.0bp) node {$f_{pq}$};
  96. \end{scope}
  97. % Node: r2
  98. \begin{scope}
  99. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  100. \pgfsetstrokecolor{strokecol}
  101. \draw (126.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  102. \draw (126.5bp,48.0bp) node {$r$};
  103. \end{scope}
  104. % Node: f_p!q
  105. \begin{scope}
  106. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  107. \pgfsetstrokecolor{strokecol}
  108. \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle;
  109. \draw (72.5bp,106.0bp) node {$f_{p\lnot q}$};
  110. \end{scope}
  111. % Node: s3
  112. \begin{scope}
  113. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  114. \pgfsetstrokecolor{strokecol}
  115. \draw (72.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  116. \draw (72.5bp,48.0bp) node {$s$};
  117. \end{scope}
  118. % Node: f_!p
  119. \begin{scope}
  120. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  121. \pgfsetstrokecolor{strokecol}
  122. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  123. \draw (21.5bp,164.0bp) node {$f_{\lnot p}$};
  124. \end{scope}
  125. % Node: q4
  126. \begin{scope}
  127. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  128. \pgfsetstrokecolor{strokecol}
  129. \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  130. \draw (21.5bp,106.0bp) node {$q$};
  131. \end{scope}
  132. %
  133. \end{tikzpicture}
  134. }
  135. \end{center}