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.

222 lines
8.4 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{1|2|3|4|5}
  4. \dpllDecL{0|1|1|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot c$|$\lnot a, \lnot c, b$|\makecell{$\lnot a, \lnot c, b, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$\lnot b, c, d$}{$\lnot b, c, d$|$\lnot b, c, d$|$\lnot b, d$|$d$|\conflict}
  7. \dpllClause{2}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot d$|\done}
  8. \dpllClause{3}{$a, \lnot c$}{$a, \lnot c$|$\lnot c$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|\done|\done|\done}
  10. \dpllClause{5}{$b, c$}{$b, c$|$b, c$|$b$|\done|\done}
  11. \dpllClause{6}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|\done|\done|\done|\done}
  12. \dpllBCP{ - |$\lnot c$|$b$|$\lnot d$| - }
  13. \dpllPL{ - | - | - | - | - }
  14. \dpllDeci{$\lnot a$| - | - | - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 5\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 5
  24. \draw [->] (22.3bp,56.0bp) .. controls (35.47bp,56.0bp) and (58.583bp,56.0bp) .. (85.878bp,56.0bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,63.5bp) node {$$3$$};
  28. % Edge: 3 -> 2
  29. \draw [->] (285.67bp,47.438bp) .. controls (293.41bp,44.585bp) and (304.51bp,40.495bp) .. (323.47bp,33.51bp);
  30. % Edge: 4 -> 2
  31. \draw [->] (285.67bp,14.223bp) .. controls (293.24bp,16.746bp) and (304.02bp,20.339bp) .. (323.09bp,26.697bp);
  32. % Edge: 5 -> 3
  33. \draw [->] (107.41bp,59.835bp) .. controls (112.76bp,61.808bp) and (119.64bp,64.004bp) .. (126.0bp,65.0bp) .. controls (149.1bp,68.621bp) and (199.96bp,74.429bp) .. (246.0bp,64.0bp) .. controls (249.24bp,63.266bp) and (252.55bp,62.125bp) .. (265.02bp,56.363bp);
  34. \draw (186.0bp,76.5bp) node {$$1$$};
  35. % Edge: 5 -> 6
  36. \draw [->] (107.98bp,53.247bp) .. controls (121.94bp,49.395bp) and (147.6bp,42.318bp) .. (175.14bp,34.721bp);
  37. \draw (140.0bp,56.5bp) node {$$5$$};
  38. % Edge: 6 -> 3
  39. \draw [->] (196.98bp,34.18bp) .. controls (210.88bp,37.215bp) and (236.36bp,42.779bp) .. (264.14bp,48.846bp);
  40. \draw (232.0bp,52.5bp) node {$$1$$};
  41. % Edge: 6 -> 4
  42. \draw [->] (196.37bp,28.221bp) .. controls (202.46bp,25.881bp) and (210.6bp,22.959bp) .. (218.0bp,21.0bp) .. controls (229.76bp,17.886bp) and (243.17bp,15.453bp) .. (263.98bp,12.283bp);
  43. \draw (232.0bp,28.5bp) node {$$2$$};
  44. % Node: 1
  45. \begin{scope}
  46. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  47. \pgfsetstrokecolor{strokecol}
  48. \draw (11.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  49. \draw (11.0bp,56.0bp) node {$\lnot a$};
  50. \end{scope}
  51. % Node: 5
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (97.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  56. \draw (97.0bp,56.0bp) node {$\lnot c$};
  57. \end{scope}
  58. % Node: 2
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (334.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  63. \draw (334.0bp,30.0bp) node {$\bot$};
  64. \end{scope}
  65. % Node: 3
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (275.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  70. \draw (275.0bp,51.0bp) node {$d$};
  71. \end{scope}
  72. % Node: 4
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (275.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  77. \draw (275.0bp,11.0bp) node {$\lnot d$};
  78. \end{scope}
  79. % Node: 6
  80. \begin{scope}
  81. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  82. \pgfsetstrokecolor{strokecol}
  83. \draw (186.0bp,32.0bp) ellipse (11.0bp and 11.0bp);
  84. \draw (186.0bp,32.0bp) node {$b$};
  85. \end{scope}
  86. %
  87. \end{tikzpicture}
  88. }
  89. \begin{prooftree}
  90. \AxiomC{$1. \; \lnot b \lor c \lor d$}
  91. \AxiomC{$2. \; \lnot b \lor \lnot d$}
  92. \BinaryInfC{$\lnot b \lor c$}
  93. \AxiomC{$5. \; b \lor c$}
  94. \BinaryInfC{$c$}
  95. \AxiomC{$3. \; a \lor \lnot c$}
  96. \BinaryInfC{$a$}
  97. \end{prooftree}
  98. \hspace{-0.09cm}\scalebox{0.85}{
  99. \begin{dplltabular}{6}
  100. \dpllStep{6|7|8|9|10|11}
  101. \dpllDecL{0|0|0|0|0|0}
  102. \dpllAssi{ - |$a$|$a, \lnot e$|$a, \lnot e, \lnot c$|\makecell{$a, \lnot e, \lnot c, $ \\ $b$}|\makecell{$a, \lnot e, \lnot c, $ \\ $b, \lnot d$}}
  103. \dpllClause{1}{$\lnot b, c, d$}{$\lnot b, c, d$|$\lnot b, c, d$|$\lnot b, c, d$|$\lnot b, d$|$d$|\conflict}
  104. \dpllClause{2}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot d$|\done}
  105. \dpllClause{3}{$a, \lnot c$}{$a, \lnot c$|\done|\done|\done|\done|\done}
  106. \dpllClause{4}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c$|\done|\done|\done}
  107. \dpllClause{5}{$b, c$}{$b, c$|$b, c$|$b, c$|$b$|\done|\done}
  108. \dpllClause{6}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot e$|\done|\done|\done|\done}
  109. \dpllClause{7}{$a$}{$a$|\done|\done|\done|\done|\done}
  110. \dpllBCP{$a$|$\lnot e$|$\lnot c$|$b$|$\lnot d$| - }
  111. \dpllPL{ - | - | - | - | - | - }
  112. \dpllDeci{ - | - | - | - | - |UNSAT}
  113. \end{dplltabular}
  114. }
  115. Conflict in step 11\\
  116. \scalebox{0.75}{
  117. \begin{tikzpicture}[>=latex,line join=bevel,]
  118. \pgfsetlinewidth{1bp}
  119. %%
  120. \pgfsetcolor{black}
  121. % Edge: 0 -> 7
  122. \draw [->] (1.0536bp,56.0bp) .. controls (2.5071bp,56.0bp) and (33.188bp,56.0bp) .. (64.696bp,56.0bp);
  123. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  124. \pgfsetstrokecolor{strokecol}
  125. \draw (33.0bp,63.5bp) node {$$7$$};
  126. % Edge: 2 -> 1
  127. \draw [->] (436.67bp,47.438bp) .. controls (444.41bp,44.585bp) and (455.51bp,40.495bp) .. (474.47bp,33.51bp);
  128. % Edge: 3 -> 1
  129. \draw [->] (436.67bp,14.223bp) .. controls (444.24bp,16.746bp) and (455.02bp,20.339bp) .. (474.09bp,26.697bp);
  130. % Edge: 4 -> 2
  131. \draw [->] (258.41bp,59.835bp) .. controls (263.76bp,61.808bp) and (270.64bp,64.004bp) .. (277.0bp,65.0bp) .. controls (300.93bp,68.751bp) and (353.64bp,72.391bp) .. (397.0bp,63.0bp) .. controls (400.2bp,62.306bp) and (403.5bp,61.244bp) .. (415.96bp,55.925bp);
  132. \draw (337.0bp,75.5bp) node {$$1$$};
  133. % Edge: 4 -> 5
  134. \draw [->] (258.98bp,53.247bp) .. controls (272.94bp,49.395bp) and (298.6bp,42.318bp) .. (326.14bp,34.721bp);
  135. \draw (291.0bp,55.5bp) node {$$5$$};
  136. % Edge: 5 -> 2
  137. \draw [->] (347.98bp,34.18bp) .. controls (361.88bp,37.215bp) and (387.36bp,42.779bp) .. (415.14bp,48.846bp);
  138. \draw (383.0bp,51.5bp) node {$$1$$};
  139. % Edge: 5 -> 3
  140. \draw [->] (347.33bp,27.798bp) .. controls (353.39bp,25.214bp) and (361.54bp,22.021bp) .. (369.0bp,20.0bp) .. controls (380.71bp,16.83bp) and (394.12bp,14.627bp) .. (414.95bp,11.971bp);
  141. \draw (383.0bp,27.5bp) node {$$2$$};
  142. % Edge: 6 -> 4
  143. \draw [->] (173.3bp,56.0bp) .. controls (186.47bp,56.0bp) and (209.58bp,56.0bp) .. (236.88bp,56.0bp);
  144. \draw (205.0bp,63.5bp) node {$$4$$};
  145. % Edge: 7 -> 6
  146. \draw [->] (87.3bp,56.0bp) .. controls (100.47bp,56.0bp) and (123.58bp,56.0bp) .. (150.88bp,56.0bp);
  147. \draw (119.0bp,63.5bp) node {$$6$$};
  148. % Node: 7
  149. \begin{scope}
  150. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  151. \pgfsetstrokecolor{strokecol}
  152. \draw (76.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  153. \draw (76.0bp,56.0bp) node {$a$};
  154. \end{scope}
  155. % Node: 1
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (485.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (485.0bp,30.0bp) node {$\bot$};
  161. \end{scope}
  162. % Node: 2
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (426.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  167. \draw (426.0bp,51.0bp) node {$d$};
  168. \end{scope}
  169. % Node: 3
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (426.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (426.0bp,11.0bp) node {$\lnot d$};
  175. \end{scope}
  176. % Node: 4
  177. \begin{scope}
  178. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  179. \pgfsetstrokecolor{strokecol}
  180. \draw (248.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  181. \draw (248.0bp,56.0bp) node {$\lnot c$};
  182. \end{scope}
  183. % Node: 5
  184. \begin{scope}
  185. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  186. \pgfsetstrokecolor{strokecol}
  187. \draw (337.0bp,32.0bp) ellipse (11.0bp and 11.0bp);
  188. \draw (337.0bp,32.0bp) node {$b$};
  189. \end{scope}
  190. % Node: 6
  191. \begin{scope}
  192. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  193. \pgfsetstrokecolor{strokecol}
  194. \draw (162.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  195. \draw (162.0bp,56.0bp) node {$\lnot e$};
  196. \end{scope}
  197. %
  198. \end{tikzpicture}
  199. }
  200. \begin{prooftree}
  201. \AxiomC{$1. \; \lnot b \lor c \lor d$}
  202. \AxiomC{$2. \; \lnot b \lor \lnot d$}
  203. \BinaryInfC{$\lnot b \lor c$}
  204. \AxiomC{$5. \; b \lor c$}
  205. \BinaryInfC{$c$}
  206. \AxiomC{$4. \; \lnot c \lor e$}
  207. \BinaryInfC{$e$}
  208. \AxiomC{$6. \; \lnot a \lor \lnot e$}
  209. \BinaryInfC{$\lnot a$}
  210. \AxiomC{$7. \; a$}
  211. \BinaryInfC{$\bot$}
  212. \end{prooftree}