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.

191 lines
6.7 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, c$|$\lnot a, c, b$|\makecell{$\lnot a, c, b, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$\lnot a, b, c$}{$\lnot a, b, c$|\done|\done|\done|\done}
  7. \dpllClause{2}{$a, c$}{$a, c$|$c$|\done|\done|\done}
  8. \dpllClause{3}{$b, \lnot c$}{$b, \lnot c$|$b, \lnot c$|$b$|\done|\done}
  9. \dpllClause{4}{$\lnot b, d$}{$\lnot b, d$|$\lnot b, d$|$\lnot b, d$|$d$|\conflict}
  10. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot d$|$\lnot d$|\done}
  11. \dpllClause{6}{$c, e$}{$c, e$|$c, e$|\done|\done|\done}
  12. \dpllClause{7}{$c, \lnot e$}{$c, \lnot e$|$c, \lnot e$|\done|\done|\done}
  13. \dpllBCP{ - |$c$|$b$|$\lnot d$| - }
  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 -> 3
  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 {$$2$$};
  29. % Edge: 3 -> 4
  30. \draw [->] (107.97bp,32.873bp) .. controls (121.23bp,36.03bp) and (144.98bp,41.686bp) .. (172.05bp,48.13bp);
  31. \draw (140.0bp,50.0bp) node {$$3$$};
  32. % Edge: 3 -> 6
  33. \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);
  34. \draw (140.0bp,26.0bp) node {$$5$$};
  35. % Edge: 4 -> 5
  36. \draw [->] (194.3bp,50.5bp) .. controls (207.47bp,50.5bp) and (230.58bp,50.5bp) .. (257.88bp,50.5bp);
  37. \draw (226.0bp,58.0bp) node {$$4$$};
  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: 3
  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 {$c$};
  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: 4
  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: 6
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (226.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
  75. \draw (226.0bp,11.5bp) node {$\lnot d$};
  76. \end{scope}
  77. % Node: 5
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  82. \draw (269.0bp,50.5bp) node {$d$};
  83. \end{scope}
  84. %
  85. \end{tikzpicture}
  86. }
  87. \begin{prooftree}
  88. \AxiomC{$4. \; \lnot b \lor d$}
  89. \AxiomC{$3. \; b \lor \lnot c$}
  90. \BinaryInfC{$d \lor \lnot c$}
  91. \AxiomC{$5. \; \lnot c \lor \lnot d$}
  92. \BinaryInfC{$\lnot c$}
  93. \AxiomC{$2. \; a \lor c$}
  94. \BinaryInfC{$a$}
  95. \end{prooftree}
  96. \hspace{-0.09cm}\scalebox{0.85}{
  97. \begin{dplltabular}{4}
  98. \dpllStep{6|7|8|9}
  99. \dpllDecL{0|0|1|1}
  100. \dpllAssi{ - |$a$|$a, \lnot b$|$a, \lnot b, \lnot c$}
  101. \dpllClause{1}{$\lnot a, b, c$}{$\lnot a, b, c$|$b, c$|$c$|\conflict}
  102. \dpllClause{2}{$a, c$}{$a, c$|\done|\done|\done}
  103. \dpllClause{3}{$b, \lnot c$}{$b, \lnot c$|$b, \lnot c$|$\lnot c$|\done}
  104. \dpllClause{4}{$\lnot b, d$}{$\lnot b, d$|$\lnot b, d$|\done|\done}
  105. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$|\done}
  106. \dpllClause{6}{$c, e$}{$c, e$|$c, e$|$c, e$|$e$}
  107. \dpllClause{7}{$c, \lnot e$}{$c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$}
  108. \dpllClause{8}{$a$}{$a$|\done|\done|\done}
  109. \dpllBCP{$a$| - |$\lnot c$| - }
  110. \dpllPL{ - | - | - | - }
  111. \dpllDeci{ - |$\lnot b$| - | - }
  112. \end{dplltabular}
  113. }
  114. Conflict in step 9\\
  115. \scalebox{0.75}{
  116. \begin{tikzpicture}[>=latex,line join=bevel,]
  117. \pgfsetlinewidth{1bp}
  118. %%
  119. \pgfsetcolor{black}
  120. % Edge: 0 -> 5
  121. \draw [->] (1.0536bp,87.0bp) .. controls (2.5071bp,87.0bp) and (33.188bp,87.0bp) .. (64.696bp,87.0bp);
  122. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  123. \pgfsetstrokecolor{strokecol}
  124. \draw (33.0bp,94.5bp) node {$$8$$};
  125. % Edge: 1 -> 3
  126. \draw [->] (86.966bp,31.61bp) .. controls (100.23bp,35.083bp) and (123.98bp,41.304bp) .. (151.05bp,48.393bp);
  127. \draw (119.0bp,51.5bp) node {$$1$$};
  128. % Edge: 1 -> 4
  129. \draw [->] (85.269bp,22.367bp) .. controls (90.57bp,18.542bp) and (97.789bp,14.087bp) .. (105.0bp,12.0bp) .. controls (116.51bp,8.6691bp) and (129.91bp,8.3126bp) .. (150.85bp,9.6198bp);
  130. \draw (119.0bp,19.5bp) node {$$3$$};
  131. % Edge: 3 -> 2
  132. \draw [->] (172.67bp,47.438bp) .. controls (180.41bp,44.585bp) and (191.51bp,40.495bp) .. (210.47bp,33.51bp);
  133. % Edge: 4 -> 2
  134. \draw [->] (172.67bp,14.223bp) .. controls (180.24bp,16.746bp) and (191.02bp,20.339bp) .. (210.09bp,26.697bp);
  135. % Edge: 5 -> 3
  136. \draw [->] (86.31bp,83.01bp) .. controls (99.682bp,77.279bp) and (124.62bp,66.591bp) .. (151.65bp,55.008bp);
  137. \draw (119.0bp,81.5bp) node {$$1$$};
  138. % Node: 5
  139. \begin{scope}
  140. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  141. \pgfsetstrokecolor{strokecol}
  142. \draw (76.0bp,87.0bp) ellipse (11.0bp and 11.0bp);
  143. \draw (76.0bp,87.0bp) node {$a$};
  144. \end{scope}
  145. % Node: 1
  146. \begin{scope}
  147. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  148. \pgfsetstrokecolor{strokecol}
  149. \draw (76.0bp,29.0bp) ellipse (11.0bp and 11.0bp);
  150. \draw (76.0bp,29.0bp) node {$\lnot b$};
  151. \end{scope}
  152. % Node: 3
  153. \begin{scope}
  154. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  155. \pgfsetstrokecolor{strokecol}
  156. \draw (162.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  157. \draw (162.0bp,51.0bp) node {$c$};
  158. \end{scope}
  159. % Node: 4
  160. \begin{scope}
  161. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  162. \pgfsetstrokecolor{strokecol}
  163. \draw (162.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  164. \draw (162.0bp,11.0bp) node {$\lnot c$};
  165. \end{scope}
  166. % Node: 2
  167. \begin{scope}
  168. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  169. \pgfsetstrokecolor{strokecol}
  170. \draw (221.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  171. \draw (221.0bp,30.0bp) node {$\bot$};
  172. \end{scope}
  173. %
  174. \end{tikzpicture}
  175. }
  176. \begin{prooftree}
  177. \AxiomC{$1. \; \lnot a \lor b \lor c$}
  178. \AxiomC{$8. \; a$}
  179. \BinaryInfC{$b \lor c$}
  180. \AxiomC{$3. \; b \lor \lnot c$}
  181. \BinaryInfC{$b$}
  182. \end{prooftree}