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.

114 lines
4.3 KiB

  1. \begin{cofactors}
  2. $f$ \= $= (((p \lor q) \land \lnot (p \land q)) \land r)$\\
  3. \>$f_{q}$ \= $= (\lnot (p \land q) \land r)$\\
  4. \>\>$f_{qp}$ \= $= \false$\\
  5. \>\>$f_{q\lnot p}$ \= $= r$\\
  6. \>\>\>$f_{q\lnot pr}$ \= $= \true$\\
  7. \>\>\>$f_{q\lnot p\lnot r}$ \= $= \false$\\
  8. \>$f_{\lnot q}$ \= $= (p \land r)$\\
  9. \>\>$f_{\lnot qp}$ \= $= f_{q\lnot p}$\\
  10. \>\>$f_{\lnot q\lnot p}$ \= $= \false$\\
  11. \end{cofactors}
  12. The final ROBDD:
  13. \begin{center}
  14. \scalebox{0.75}{
  15. \begin{tikzpicture}[>=latex,line join=bevel,]
  16. \pgfsetlinewidth{1bp}
  17. %%
  18. \pgfsetcolor{black}
  19. % Edge: f_E -> q0
  20. \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp);
  21. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  22. \pgfsetstrokecolor{strokecol}
  23. \draw (72.5bp,195.3bp) node {\Large$\bullet$};
  24. % Edge: f_q -> p1
  25. \draw [] (123.5bp,152.99bp) .. controls (123.5bp,142.92bp) and (123.5bp,127.47bp) .. (123.5bp,117.3bp);
  26. \draw (123.5bp,137.3bp) node {\Large$\bullet$};
  27. % Edge: f_q!p -> r2
  28. \draw [] (72.5bp,94.988bp) .. controls (72.5bp,84.921bp) and (72.5bp,69.474bp) .. (72.5bp,59.304bp);
  29. % Edge: f_!q -> p3
  30. \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp);
  31. % Edge: q0 -> p3
  32. \draw [] (65.409bp,155.21bp) .. controls (55.665bp,144.51bp) and (38.243bp,125.38bp) .. (28.531bp,114.72bp);
  33. \draw (41.998bp,129.51bp) node {\Large$\bullet$};
  34. % Edge: q0 -> p1
  35. \draw [] (79.591bp,155.21bp) .. controls (89.335bp,144.51bp) and (106.76bp,125.38bp) .. (116.47bp,114.72bp);
  36. % Edge: p3 -> r2
  37. \draw [] (28.591bp,97.213bp) .. controls (38.335bp,86.514bp) and (55.757bp,67.385bp) .. (65.469bp,56.72bp);
  38. % Edge: p3 -> 3
  39. \draw [] (21.5bp,94.988bp) .. controls (21.5bp,79.384bp) and (21.5bp,50.854bp) .. (21.5bp,49.086bp);
  40. \draw (21.5bp,69.086bp) node {\Large$\bullet$};
  41. % Edge: p1 -> r2
  42. \draw [] (116.41bp,97.213bp) .. controls (106.66bp,86.514bp) and (89.243bp,67.385bp) .. (79.531bp,56.72bp);
  43. \draw (92.998bp,71.507bp) node {\Large$\bullet$};
  44. % Edge: p1 -> 0
  45. \draw [] (123.5bp,94.988bp) .. controls (123.5bp,79.384bp) and (123.5bp,50.854bp) .. (123.5bp,49.086bp);
  46. % Edge: r2 -> 1
  47. \draw [] (70.503bp,36.791bp) .. controls (67.934bp,23.663bp) and (63.77bp,2.3815bp) .. (63.513bp,1.0642bp);
  48. % Edge: r2 -> 2
  49. \draw [] (74.719bp,36.791bp) .. controls (77.573bp,23.663bp) and (82.2bp,2.3815bp) .. (82.486bp,1.0642bp);
  50. \draw (78.237bp,20.608bp) node {\Large$\bullet$};
  51. % Node: f_E
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle;
  56. \draw (72.5bp,222.0bp) node {$f$};
  57. \end{scope}
  58. % Node: q0
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp);
  63. \draw (72.5bp,164.0bp) node {$q$};
  64. \end{scope}
  65. % Node: f_q
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (145.0bp,175.0bp) -- (102.0bp,175.0bp) -- (102.0bp,153.0bp) -- (145.0bp,153.0bp) -- cycle;
  70. \draw (123.5bp,164.0bp) node {$f_{q}$};
  71. \end{scope}
  72. % Node: p1
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (123.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  77. \draw (123.5bp,106.0bp) node {$p$};
  78. \end{scope}
  79. % Node: f_q!p
  80. \begin{scope}
  81. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  82. \pgfsetstrokecolor{strokecol}
  83. \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle;
  84. \draw (72.5bp,106.0bp) node {$f_{q\lnot p}$};
  85. \end{scope}
  86. % Node: r2
  87. \begin{scope}
  88. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  89. \pgfsetstrokecolor{strokecol}
  90. \draw (72.5bp,48.0bp) ellipse (11.0bp and 11.0bp);
  91. \draw (72.5bp,48.0bp) node {$r$};
  92. \end{scope}
  93. % Node: f_!q
  94. \begin{scope}
  95. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  96. \pgfsetstrokecolor{strokecol}
  97. \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle;
  98. \draw (21.5bp,164.0bp) node {$f_{\lnot q}$};
  99. \end{scope}
  100. % Node: p3
  101. \begin{scope}
  102. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  103. \pgfsetstrokecolor{strokecol}
  104. \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp);
  105. \draw (21.5bp,106.0bp) node {$p$};
  106. \end{scope}
  107. %
  108. \end{tikzpicture}
  109. }
  110. \end{center}