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.

221 lines
8.0 KiB

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