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.

135 lines
5.6 KiB

5 months ago
  1. \begin{cofactors}
  2. $f$ \= $= (((p \land q) \lor (r \land s)) \lor (\lnot p \land \lnot r))$\\
  3. \>$f_{p}$ \= $= (q \lor (r \land s))$\\
  4. \>\>$f_{pq}$ \= $= \true$\\
  5. \>\>$f_{p\lnot q}$ \= $= (r \land s)$\\
  6. \>\>\>$f_{p\lnot qr}$ \= $= s$\\
  7. \>\>\>\>$f_{p\lnot qrs}$ \= $= \true$\\
  8. \>\>\>\>$f_{p\lnot qr\lnot s}$ \= $= \false$\\
  9. \>\>\>$f_{p\lnot q\lnot r}$ \= $= \false$\\
  10. \>$f_{\lnot p}$ \= $= ((r \land s) \lor \lnot r)$\\
  11. \>\>$f_{\lnot pr}$ \= $= f_{p\lnot qr}$\\
  12. \>\>$f_{\lnot p\lnot r}$ \= $= \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 [] (76.036bp,268.99bp) .. controls (76.036bp,258.92bp) and (76.036bp,243.47bp) .. (76.036bp,233.3bp);
  23. % Edge: f_p -> q1
  24. \draw [] (126.5bp,210.99bp) .. controls (125.96bp,200.92bp) and (125.13bp,185.47bp) .. (124.59bp,175.3bp);
  25. % Edge: f_p!q -> r2
  26. \draw [] (171.28bp,152.99bp) .. controls (167.41bp,142.67bp) and (161.42bp,126.7bp) .. (157.62bp,116.55bp);
  27. % Edge: f_p!qr -> s3
  28. \draw [] (84.036bp,94.988bp) .. controls (84.036bp,84.921bp) and (84.036bp,69.474bp) .. (84.036bp,59.304bp);
  29. % Edge: f_!p -> r4
  30. \draw [] (26.109bp,210.99bp) .. controls (27.188bp,200.92bp) and (28.843bp,185.47bp) .. (29.932bp,175.3bp);
  31. % Edge: p0 -> r4
  32. \draw [] (69.397bp,212.74bp) .. controls (60.889bp,202.15bp) and (46.225bp,183.9bp) .. (37.704bp,173.3bp);
  33. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  34. \pgfsetstrokecolor{strokecol}
  35. \draw (50.231bp,188.89bp) node {\Large$\circ$};
  36. % Edge: p0 -> q1
  37. \draw [] (82.711bp,213.21bp) .. controls (91.778bp,202.63bp) and (107.91bp,183.81bp) .. (117.11bp,173.08bp);
  38. % Edge: r4 -> s3
  39. \draw [] (33.339bp,152.98bp) .. controls (36.665bp,139.41bp) and (43.48bp,114.64bp) .. (53.036bp,95.0bp) .. controls (59.948bp,80.799bp) and (70.727bp,65.915bp) .. (77.581bp,57.05bp);
  40. % Edge: r4 -> 4
  41. \draw [] (26.743bp,153.75bp) .. controls (19.589bp,138.34bp) and (5.9248bp,108.91bp) .. (5.0778bp,107.09bp);
  42. \draw (13.5bp,125.23bp) node {\Large$\circ$};
  43. % Edge: q1 -> r2
  44. \draw [] (128.86bp,154.0bp) .. controls (134.42bp,143.61bp) and (143.53bp,126.62bp) .. (149.13bp,116.16bp);
  45. \draw (139.68bp,133.79bp) node {\Large$\circ$};
  46. % Edge: q1 -> 0
  47. \draw [] (124.04bp,152.99bp) .. controls (124.04bp,137.38bp) and (124.04bp,108.85bp) .. (124.04bp,107.09bp);
  48. % Edge: r2 -> s3
  49. \draw [] (145.73bp,98.356bp) .. controls (132.26bp,87.578bp) and (105.8bp,66.407bp) .. (92.33bp,55.635bp);
  50. % Edge: r2 -> 3
  51. \draw [] (154.04bp,94.988bp) .. controls (154.04bp,79.384bp) and (154.04bp,50.854bp) .. (154.04bp,49.086bp);
  52. \draw (154.04bp,69.086bp) node {\Large$\bullet$};
  53. % Edge: s3 -> 1
  54. \draw [] (82.039bp,36.791bp) .. controls (79.47bp,23.663bp) and (75.307bp,2.3815bp) .. (75.049bp,1.0642bp);
  55. % Edge: s3 -> 2
  56. \draw [] (86.256bp,36.791bp) .. controls (89.11bp,23.663bp) and (93.736bp,2.3815bp) .. (94.023bp,1.0642bp);
  57. \draw (89.774bp,20.608bp) node {\Large$\bullet$};
  58. % Node: f_E
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (97.54bp,291.0bp) -- (54.54bp,291.0bp) -- (54.54bp,269.0bp) -- (97.54bp,269.0bp) -- cycle;
  63. \draw (76.036bp,280.0bp) node {$f$};
  64. \end{scope}
  65. % Node: p0
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (76.04bp,222.0bp) ellipse (11.0bp and 11.0bp);
  70. \draw (76.036bp,222.0bp) node {$p$};
  71. \end{scope}
  72. % Node: f_p
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (148.54bp,233.0bp) -- (105.54bp,233.0bp) -- (105.54bp,211.0bp) -- (148.54bp,211.0bp) -- cycle;
  77. \draw (127.04bp,222.0bp) node {$f_{p}$};
  78. \end{scope}
  79. % Node: q1
  80. \begin{scope}
  81. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  82. \pgfsetstrokecolor{strokecol}
  83. \draw (124.04bp,164.0bp) ellipse (11.0bp and 11.0bp);
  84. \draw (124.04bp,164.0bp) node {$q$};
  85. \end{scope}
  86. % Node: f_p!q
  87. \begin{scope}
  88. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  89. \pgfsetstrokecolor{strokecol}
  90. \draw (196.54bp,175.0bp) -- (153.54bp,175.0bp) -- (153.54bp,153.0bp) -- (196.54bp,153.0bp) -- cycle;
  91. \draw (175.04bp,164.0bp) node {$f_{p\lnot q}$};
  92. \end{scope}
  93. % Node: r2
  94. \begin{scope}
  95. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  96. \pgfsetstrokecolor{strokecol}
  97. \draw (154.04bp,106.0bp) ellipse (11.0bp and 11.0bp);
  98. \draw (154.04bp,106.0bp) node {$r$};
  99. \end{scope}
  100. % Node: f_p!qr
  101. \begin{scope}
  102. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  103. \pgfsetstrokecolor{strokecol}
  104. \draw (105.54bp,117.0bp) -- (62.54bp,117.0bp) -- (62.54bp,95.0bp) -- (105.54bp,95.0bp) -- cycle;
  105. \draw (84.036bp,106.0bp) node {$f_{p\lnot qr}$};
  106. \end{scope}
  107. % Node: s3
  108. \begin{scope}
  109. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  110. \pgfsetstrokecolor{strokecol}
  111. \draw (84.04bp,48.0bp) ellipse (11.0bp and 11.0bp);
  112. \draw (84.036bp,48.0bp) node {$s$};
  113. \end{scope}
  114. % Node: f_!p
  115. \begin{scope}
  116. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  117. \pgfsetstrokecolor{strokecol}
  118. \draw (46.54bp,233.0bp) -- (3.54bp,233.0bp) -- (3.54bp,211.0bp) -- (46.54bp,211.0bp) -- cycle;
  119. \draw (25.036bp,222.0bp) node {$f_{\lnot p}$};
  120. \end{scope}
  121. % Node: r4
  122. \begin{scope}
  123. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  124. \pgfsetstrokecolor{strokecol}
  125. \draw (31.04bp,164.0bp) ellipse (11.0bp and 11.0bp);
  126. \draw (31.036bp,164.0bp) node {$r$};
  127. \end{scope}
  128. %
  129. \end{tikzpicture}
  130. }
  131. \end{center}