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.

137 lines
5.6 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((\lnot p \lor r) \land (q \lor \lnot p)) \land (\lnot q \lor p))$\\
  3. \>$f_{r}$ \= $= ((q \lor \lnot p) \land (\lnot q \lor p))$\\
  4. \>\>$f_{rq}$ \= $= p$\\
  5. \>\>\>$f_{rqp}$ \= $= \true$\\
  6. \>\>\>$f_{rq\lnot p}$ \= $= \false$\\
  7. \>\>$f_{r\lnot q}$ \= $= \lnot f_{rq}$\\
  8. \>$f_{\lnot r}$ \= $= ((\lnot p \land (q \lor \lnot p)) \land (\lnot q \lor p))$\\
  9. \>\>$f_{\lnot rq}$ \= $= \false$\\
  10. \>\>$f_{\lnot r\lnot q}$ \= $= (\lnot p \land \lnot p)$\\
  11. \>\>\>$f_{\lnot r\lnot qp}$ \= $= \false$\\
  12. \>\>\>$f_{\lnot r\lnot q\lnot p}$ \= $= \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 -> r0
  22. \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp);
  23. % Edge: f_r -> q1
  24. \draw [] (123.5bp,152.99bp) .. controls (123.5bp,142.92bp) and (123.5bp,127.47bp) .. (123.5bp,117.3bp);
  25. % Edge: f_rq -> p2
  26. \draw [] (165.38bp,94.988bp) .. controls (155.41bp,84.04bp) and (139.65bp,66.729bp) .. (130.57bp,56.763bp);
  27. % Edge: f_!r -> q3
  28. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp);
  29. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  30. \pgfsetstrokecolor{strokecol}
  31. \draw (21.5bp,137.3bp) node {\Large$\bullet$};
  32. % Edge: f_!r!q -> p4
  33. \draw [] (70.712bp,94.988bp) .. controls (68.892bp,84.795bp) and (66.087bp,69.087bp) .. (64.272bp,58.925bp);
  34. \draw (67.788bp,78.614bp) node {\Large$\bullet$};
  35. % Edge: r0 -> q3
  36. \draw [] (65.409bp,155.21bp) .. controls (55.665bp,144.51bp) and (38.243bp,125.38bp) .. (28.531bp,114.72bp);
  37. \draw (41.998bp,129.51bp) node {\Large$\bullet$};
  38. % Edge: r0 -> q1
  39. \draw [] (79.591bp,155.21bp) .. controls (89.335bp,144.51bp) and (106.76bp,125.38bp) .. (116.47bp,114.72bp);
  40. % Edge: q3 -> p4
  41. \draw [] (27.55bp,96.737bp) .. controls (35.301bp,86.149bp) and (48.662bp,67.901bp) .. (56.425bp,57.297bp);
  42. \draw (44.611bp,73.434bp) node {\Large$\circ$};
  43. % Edge: q3 -> 2
  44. \draw [] (21.5bp,94.988bp) .. controls (21.5bp,79.384bp) and (21.5bp,50.854bp) .. (21.5bp,49.086bp);
  45. % Edge: p4 -> 3
  46. \draw [] (60.281bp,36.791bp) .. controls (57.427bp,23.663bp) and (52.8bp,2.3815bp) .. (52.514bp,1.0642bp);
  47. % Edge: p4 -> 4
  48. \draw [] (64.497bp,36.791bp) .. controls (67.066bp,23.663bp) and (71.23bp,2.3815bp) .. (71.487bp,1.0642bp);
  49. \draw (67.647bp,20.692bp) node {\Large$\bullet$};
  50. % Edge: q1 -> p2
  51. \draw [] (118.39bp,96.003bp) .. controls (116.19bp,85.491bp) and (116.21bp,68.213bp) .. (118.43bp,57.79bp);
  52. % Edge: q1 -> p2
  53. \draw [] (128.61bp,96.003bp) .. controls (130.81bp,85.491bp) and (130.79bp,68.213bp) .. (128.57bp,57.79bp);
  54. \draw (132.13bp,77.47bp) node {\Large$\bullet$};
  55. % Edge: p2 -> 0
  56. \draw [] (121.28bp,36.791bp) .. controls (118.43bp,23.663bp) and (113.8bp,2.3815bp) .. (113.51bp,1.0642bp);
  57. % Edge: p2 -> 1
  58. \draw [] (125.5bp,36.791bp) .. controls (128.07bp,23.663bp) and (132.23bp,2.3815bp) .. (132.49bp,1.0642bp);
  59. \draw (128.65bp,20.692bp) node {\Large$\bullet$};
  60. % Node: f_E
  61. \begin{scope}
  62. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  63. \pgfsetstrokecolor{strokecol}
  64. \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle;
  65. \draw (72.5bp,222.0bp) node {$f$};
  66. \end{scope}
  67. % Node: r0
  68. \begin{scope}
  69. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  70. \pgfsetstrokecolor{strokecol}
  71. \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  72. \draw (72.5bp,164.0bp) node {$r$};
  73. \end{scope}
  74. % Node: f_r
  75. \begin{scope}
  76. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  77. \pgfsetstrokecolor{strokecol}
  78. \draw (145.0bp,175.0bp) -- (102.0bp,175.0bp) -- (102.0bp,153.0bp) -- (145.0bp,153.0bp) -- cycle;
  79. \draw (123.5bp,164.0bp) node {$f_{r}$};
  80. \end{scope}
  81. % Node: q1
  82. \begin{scope}
  83. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  84. \pgfsetstrokecolor{strokecol}
  85. \draw (123.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  86. \draw (123.5bp,106.0bp) node {$q$};
  87. \end{scope}
  88. % Node: f_rq
  89. \begin{scope}
  90. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  91. \pgfsetstrokecolor{strokecol}
  92. \draw (196.0bp,117.0bp) -- (153.0bp,117.0bp) -- (153.0bp,95.0bp) -- (196.0bp,95.0bp) -- cycle;
  93. \draw (174.5bp,106.0bp) node {$f_{rq}$};
  94. \end{scope}
  95. % Node: p2
  96. \begin{scope}
  97. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  98. \pgfsetstrokecolor{strokecol}
  99. \draw (123.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  100. \draw (123.5bp,48.0bp) node {$p$};
  101. \end{scope}
  102. % Node: f_!r
  103. \begin{scope}
  104. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  105. \pgfsetstrokecolor{strokecol}
  106. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  107. \draw (21.5bp,164.0bp) node {$f_{\lnot r}$};
  108. \end{scope}
  109. % Node: q3
  110. \begin{scope}
  111. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  112. \pgfsetstrokecolor{strokecol}
  113. \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  114. \draw (21.5bp,106.0bp) node {$q$};
  115. \end{scope}
  116. % Node: f_!r!q
  117. \begin{scope}
  118. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  119. \pgfsetstrokecolor{strokecol}
  120. \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle;
  121. \draw (72.5bp,106.0bp) node {$f_{\lnot r\lnot q}$};
  122. \end{scope}
  123. % Node: p4
  124. \begin{scope}
  125. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  126. \pgfsetstrokecolor{strokecol}
  127. \draw (62.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  128. \draw (62.5bp,48.0bp) node {$p$};
  129. \end{scope}
  130. %
  131. \end{tikzpicture}
  132. }
  133. \end{center}