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.

206 lines
7.3 KiB

5 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 d$|$\lnot a, \lnot d, b$|\makecell{$\lnot a, \lnot d, b, $ \\ $\lnot c$}}
  6. \dpllClause{1}{$b, d$}{$b, d$|$b, d$|$b$|\done|\done}
  7. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|$\lnot d$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$\lnot b, c$|$c$|\conflict}
  10. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c$|$\lnot c$|\done}
  11. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done}
  12. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|\done|\done|\done}
  13. \dpllBCP{ - |$\lnot d$|$b$|$\lnot c$| - }
  14. \dpllPL{ - | - | - | - | - }
  15. \dpllDeci{$\lnot a$| - | - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 5\\
  19. \scalebox{0.75}{
  20. \begin{tikzpicture}[>=latex,line join=bevel,]
  21. \pgfsetlinewidth{1bp}
  22. %%
  23. \pgfsetcolor{black}
  24. % Edge: 1 -> 4
  25. \draw [->] (22.3bp,30.5bp) .. controls (35.47bp,30.5bp) and (58.583bp,30.5bp) .. (85.878bp,30.5bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,38.0bp) node {$$3$$};
  29. % Edge: 3 -> 5
  30. \draw [->] (194.3bp,50.5bp) .. controls (207.47bp,50.5bp) and (230.58bp,50.5bp) .. (257.88bp,50.5bp);
  31. \draw (226.0bp,58.0bp) node {$$4$$};
  32. % Edge: 4 -> 3
  33. \draw [->] (107.97bp,32.873bp) .. controls (121.23bp,36.03bp) and (144.98bp,41.686bp) .. (172.05bp,48.13bp);
  34. \draw (140.0bp,50.0bp) node {$$1$$};
  35. % Edge: 4 -> 6
  36. \draw [->] (107.07bp,25.696bp) .. controls (112.42bp,23.094bp) and (119.42bp,20.094bp) .. (126.0bp,18.5bp) .. controls (152.72bp,12.025bp) and (184.6bp,10.902bp) .. (215.0bp,11.119bp);
  37. \draw (140.0bp,26.0bp) node {$$5$$};
  38. % Edge: 5 -> 2
  39. \draw [->] (279.16bp,46.162bp) .. controls (287.01bp,42.445bp) and (298.56bp,36.972bp) .. (317.68bp,27.917bp);
  40. % Edge: 6 -> 2
  41. \draw [->] (236.95bp,12.694bp) .. controls (253.12bp,14.634bp) and (285.4bp,18.508bp) .. (316.79bp,22.275bp);
  42. % Node: 1
  43. \begin{scope}
  44. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  45. \pgfsetstrokecolor{strokecol}
  46. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  47. \draw (11.0bp,30.5bp) node {$\lnot a$};
  48. \end{scope}
  49. % Node: 4
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (97.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  54. \draw (97.0bp,30.5bp) node {$\lnot d$};
  55. \end{scope}
  56. % Node: 2
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (328.0bp,23.5bp) ellipse (11.0bp and 11.0bp);
  61. \draw (328.0bp,23.5bp) node {$\bot$};
  62. \end{scope}
  63. % Node: 3
  64. \begin{scope}
  65. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  66. \pgfsetstrokecolor{strokecol}
  67. \draw (183.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  68. \draw (183.0bp,50.5bp) node {$b$};
  69. \end{scope}
  70. % Node: 5
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  75. \draw (269.0bp,50.5bp) node {$c$};
  76. \end{scope}
  77. % Node: 6
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (226.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
  82. \draw (226.0bp,11.5bp) node {$\lnot c$};
  83. \end{scope}
  84. %
  85. \end{tikzpicture}
  86. }
  87. \begin{prooftree}
  88. \AxiomC{$4. \; \lnot b \lor c$}
  89. \AxiomC{$1. \; b \lor d$}
  90. \BinaryInfC{$c \lor d$}
  91. \AxiomC{$5. \; \lnot c \lor d$}
  92. \BinaryInfC{$d$}
  93. \AxiomC{$3. \; a \lor \lnot d$}
  94. \BinaryInfC{$a$}
  95. \end{prooftree}
  96. \hspace{-0.09cm}\scalebox{0.85}{
  97. \begin{dplltabular}{5}
  98. \dpllStep{6|7|8|9|10}
  99. \dpllDecL{0|0|0|0|0}
  100. \dpllAssi{ - |$a$|$a, c$|$a, c, d$|\makecell{$a, c, d, $ \\ $\lnot e$}}
  101. \dpllClause{1}{$b, d$}{$b, d$|$b, d$|$b, d$|\done|\done}
  102. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done}
  103. \dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|\done|\done|\done|\done}
  104. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done}
  105. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  106. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
  107. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  108. \dpllClause{8}{$a$}{$a$|\done|\done|\done|\done}
  109. \dpllBCP{$a$|$c$|$d$|$\lnot e$| - }
  110. \dpllPL{ - | - | - | - | - }
  111. \dpllDeci{ - | - | - | - |UNSAT}
  112. \end{dplltabular}
  113. }
  114. Conflict in step 10\\
  115. \scalebox{0.75}{
  116. \begin{tikzpicture}[>=latex,line join=bevel,]
  117. \pgfsetlinewidth{1bp}
  118. %%
  119. \pgfsetcolor{black}
  120. % Edge: 0 -> 6
  121. \draw [->] (1.0536bp,30.0bp) .. controls (2.5071bp,30.0bp) and (33.188bp,30.0bp) .. (64.696bp,30.0bp);
  122. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  123. \pgfsetstrokecolor{strokecol}
  124. \draw (33.0bp,37.5bp) node {$$8$$};
  125. % Edge: 2 -> 3
  126. \draw [->] (172.97bp,32.373bp) .. controls (186.23bp,35.53bp) and (209.98bp,41.186bp) .. (237.05bp,47.63bp);
  127. \draw (205.0bp,49.5bp) node {$$5$$};
  128. % Edge: 2 -> 4
  129. \draw [->] (172.07bp,25.196bp) .. controls (177.42bp,22.594bp) and (184.42bp,19.594bp) .. (191.0bp,18.0bp) .. controls (217.72bp,11.525bp) and (249.6bp,10.402bp) .. (280.0bp,10.619bp);
  130. \draw (205.0bp,25.5bp) node {$$6$$};
  131. % Edge: 3 -> 5
  132. \draw [->] (259.3bp,50.0bp) .. controls (272.47bp,50.0bp) and (295.58bp,50.0bp) .. (322.88bp,50.0bp);
  133. \draw (291.0bp,57.5bp) node {$$7$$};
  134. % Edge: 4 -> 1
  135. \draw [->] (301.95bp,12.194bp) .. controls (318.12bp,14.134bp) and (350.4bp,18.008bp) .. (381.79bp,21.775bp);
  136. % Edge: 5 -> 1
  137. \draw [->] (344.16bp,45.662bp) .. controls (352.01bp,41.945bp) and (363.56bp,36.472bp) .. (382.68bp,27.417bp);
  138. % Edge: 6 -> 2
  139. \draw [->] (87.3bp,30.0bp) .. controls (100.47bp,30.0bp) and (123.58bp,30.0bp) .. (150.88bp,30.0bp);
  140. \draw (119.0bp,37.5bp) node {$$2$$};
  141. % Node: 6
  142. \begin{scope}
  143. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  144. \pgfsetstrokecolor{strokecol}
  145. \draw (76.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  146. \draw (76.0bp,30.0bp) node {$a$};
  147. \end{scope}
  148. % Node: 1
  149. \begin{scope}
  150. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  151. \pgfsetstrokecolor{strokecol}
  152. \draw (393.0bp,23.0bp) ellipse (11.0bp and 11.0bp);
  153. \draw (393.0bp,23.0bp) node {$\bot$};
  154. \end{scope}
  155. % Node: 2
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (162.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (162.0bp,30.0bp) node {$c$};
  161. \end{scope}
  162. % Node: 3
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (248.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  167. \draw (248.0bp,50.0bp) node {$d$};
  168. \end{scope}
  169. % Node: 4
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (291.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (291.0bp,11.0bp) node {$e$};
  175. \end{scope}
  176. % Node: 5
  177. \begin{scope}
  178. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  179. \pgfsetstrokecolor{strokecol}
  180. \draw (334.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  181. \draw (334.0bp,50.0bp) node {$\lnot e$};
  182. \end{scope}
  183. %
  184. \end{tikzpicture}
  185. }
  186. \begin{prooftree}
  187. \AxiomC{$7. \; \lnot d \lor \lnot e$}
  188. \AxiomC{$5. \; \lnot c \lor d$}
  189. \BinaryInfC{$\lnot e \lor \lnot c$}
  190. \AxiomC{$6. \; \lnot c \lor e$}
  191. \BinaryInfC{$\lnot c$}
  192. \AxiomC{$2. \; \lnot a \lor c$}
  193. \BinaryInfC{$\lnot a$}
  194. \AxiomC{$8. \; a$}
  195. \BinaryInfC{$\bot$}
  196. \end{prooftree}