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.

226 lines
9.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, e$|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c$}|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c, \lnot d$}}
  6. \dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c$|\done|\done}
  7. \dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$b, e$}{$b, e$|$b, e$|$e$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|\done|\done|\done|\done}
  10. \dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|\done|\done|\done|\done}
  11. \dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$\lnot d$|\done}
  12. \dpllClause{7}{$c, d$}{$c, d$|$c, d$|$c, d$|$c, d$|$d$|\conflict}
  13. \dpllBCP{ - | - |$e$|$\lnot c$|$\lnot d$| - }
  14. \dpllPL{ - | - | - | - | - | - }
  15. \dpllDeci{$\lnot a$|$\lnot b$| - | - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 6\\
  19. \scalebox{0.75}{
  20. \begin{tikzpicture}[>=latex,line join=bevel,]
  21. \pgfsetlinewidth{1bp}
  22. %%
  23. \pgfsetcolor{black}
  24. % Edge: 1 -> 5
  25. \draw [->] (22.3bp,52.0bp) .. controls (35.47bp,52.0bp) and (58.583bp,52.0bp) .. (85.878bp,52.0bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,59.5bp) node {$$3$$};
  29. % Edge: 2 -> 4
  30. \draw [->] (108.16bp,10.852bp) .. controls (119.58bp,9.9047bp) and (138.53bp,9.3716bp) .. (154.0bp,14.0bp) .. controls (157.82bp,15.143bp) and (161.65bp,16.935bp) .. (173.72bp,24.413bp);
  31. \draw (140.0bp,21.5bp) node {$$1$$};
  32. % Edge: 4 -> 6
  33. \draw [->] (193.97bp,33.373bp) .. controls (207.23bp,36.53bp) and (230.98bp,42.186bp) .. (258.05bp,48.63bp);
  34. \draw (226.0bp,50.5bp) node {$$6$$};
  35. % Edge: 4 -> 7
  36. \draw [->] (193.11bp,26.371bp) .. controls (198.48bp,23.828bp) and (205.48bp,20.828bp) .. (212.0bp,19.0bp) .. controls (223.65bp,15.733bp) and (237.06bp,13.758bp) .. (257.92bp,11.639bp);
  37. \draw (226.0bp,26.5bp) node {$$7$$};
  38. % Edge: 5 -> 4
  39. \draw [->] (107.97bp,49.509bp) .. controls (121.23bp,46.193bp) and (144.98bp,40.255bp) .. (172.05bp,33.488bp);
  40. \draw (140.0bp,51.5bp) node {$$1$$};
  41. % Edge: 6 -> 3
  42. \draw [->] (279.67bp,47.438bp) .. controls (287.41bp,44.585bp) and (298.51bp,40.495bp) .. (317.47bp,33.51bp);
  43. % Edge: 7 -> 3
  44. \draw [->] (279.67bp,14.223bp) .. controls (287.24bp,16.746bp) and (298.02bp,20.339bp) .. (317.09bp,26.697bp);
  45. % Node: 1
  46. \begin{scope}
  47. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  48. \pgfsetstrokecolor{strokecol}
  49. \draw (11.0bp,52.0bp) ellipse (11.0bp and 11.0bp);
  50. \draw (11.0bp,52.0bp) node {$\lnot b$};
  51. \end{scope}
  52. % Node: 5
  53. \begin{scope}
  54. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  55. \pgfsetstrokecolor{strokecol}
  56. \draw (97.0bp,52.0bp) ellipse (11.0bp and 11.0bp);
  57. \draw (97.0bp,52.0bp) node {$e$};
  58. \end{scope}
  59. % Node: 2
  60. \begin{scope}
  61. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  62. \pgfsetstrokecolor{strokecol}
  63. \draw (97.0bp,12.0bp) ellipse (11.0bp and 11.0bp);
  64. \draw (97.0bp,12.0bp) node {$\lnot a$};
  65. \end{scope}
  66. % Node: 4
  67. \begin{scope}
  68. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  69. \pgfsetstrokecolor{strokecol}
  70. \draw (183.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  71. \draw (183.0bp,31.0bp) node {$\lnot c$};
  72. \end{scope}
  73. % Node: 3
  74. \begin{scope}
  75. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  76. \pgfsetstrokecolor{strokecol}
  77. \draw (328.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  78. \draw (328.0bp,30.0bp) node {$\bot$};
  79. \end{scope}
  80. % Node: 6
  81. \begin{scope}
  82. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  83. \pgfsetstrokecolor{strokecol}
  84. \draw (269.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  85. \draw (269.0bp,51.0bp) node {$\lnot d$};
  86. \end{scope}
  87. % Node: 7
  88. \begin{scope}
  89. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  90. \pgfsetstrokecolor{strokecol}
  91. \draw (269.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  92. \draw (269.0bp,11.0bp) node {$d$};
  93. \end{scope}
  94. %
  95. \end{tikzpicture}
  96. }
  97. \hspace{-0.09cm}\scalebox{0.85}{
  98. \begin{dplltabular}{6}
  99. \dpllStep{7|8|9|10|11|12}
  100. \dpllDecL{0|0|1|1|1|1}
  101. \dpllAssi{ - |$c$|$c, \lnot a$|$c, \lnot a, \lnot e$|\makecell{$c, \lnot a, \lnot e, $ \\ $b$}|\makecell{$c, \lnot a, \lnot e, $ \\ $b, \lnot d$}}
  102. \dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|$a, \lnot e$|$\lnot e$|\done|\done|\done}
  103. \dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot a, \lnot e$|\done|\done|\done|\done}
  104. \dpllClause{3}{$b, e$}{$b, e$|$b, e$|$b, e$|$b$|\done|\done}
  105. \dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d$|$d$|\conflict}
  106. \dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot d$|\done}
  107. \dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|\done|\done|\done|\done|\done}
  108. \dpllClause{7}{$c, d$}{$c, d$|\done|\done|\done|\done|\done}
  109. \dpllClause{8}{$c$}{$c$|\done|\done|\done|\done|\done}
  110. \dpllBCP{$c$| - |$\lnot e$|$b$|$\lnot d$| - }
  111. \dpllPL{ - | - | - | - | - | - }
  112. \dpllDeci{ - |$\lnot a$| - | - | - | - }
  113. \end{dplltabular}
  114. }
  115. Conflict in step 12\\
  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,51.0bp) .. controls (2.5071bp,51.0bp) and (33.188bp,51.0bp) .. (64.696bp,51.0bp);
  123. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  124. \pgfsetstrokecolor{strokecol}
  125. \draw (33.0bp,58.5bp) node {$$8$$};
  126. % Edge: 1 -> 3
  127. \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);
  128. \draw (119.0bp,20.5bp) node {$$1$$};
  129. % Edge: 3 -> 4
  130. \draw [->] (172.64bp,33.103bp) .. controls (186.56bp,37.582bp) and (212.57bp,45.952bp) .. (240.31bp,54.883bp);
  131. \draw (205.0bp,55.5bp) node {$$3$$};
  132. % Edge: 3 -> 5
  133. \draw [->] (172.9bp,27.931bp) .. controls (191.18bp,24.418bp) and (231.45bp,18.119bp) .. (265.0bp,23.0bp) .. controls (284.21bp,25.795bp) and (305.37bp,32.47bp) .. (329.62bp,41.253bp);
  134. \draw (251.0bp,30.5bp) node {$$4$$};
  135. % Edge: 4 -> 5
  136. \draw [->] (261.61bp,54.189bp) .. controls (267.65bp,51.973bp) and (275.66bp,49.357bp) .. (283.0bp,48.0bp) .. controls (294.8bp,45.82bp) and (308.21bp,45.043bp) .. (329.0bp,44.762bp);
  137. \draw (297.0bp,55.5bp) node {$$4$$};
  138. % Edge: 4 -> 6
  139. \draw [->] (261.64bp,60.993bp) .. controls (275.56bp,65.311bp) and (301.57bp,73.383bp) .. (329.31bp,81.994bp);
  140. \draw (297.0bp,83.5bp) node {$$5$$};
  141. % Edge: 5 -> 2
  142. \draw [->] (350.67bp,48.223bp) .. controls (358.24bp,50.746bp) and (369.02bp,54.339bp) .. (388.09bp,60.697bp);
  143. % Edge: 6 -> 2
  144. \draw [->] (350.67bp,81.438bp) .. controls (358.41bp,78.585bp) and (369.51bp,74.495bp) .. (388.47bp,67.51bp);
  145. % Edge: 7 -> 3
  146. \draw [->] (86.966bp,48.509bp) .. controls (100.23bp,45.193bp) and (123.98bp,39.255bp) .. (151.05bp,32.488bp);
  147. \draw (119.0bp,51.5bp) node {$$1$$};
  148. % Node: 7
  149. \begin{scope}
  150. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  151. \pgfsetstrokecolor{strokecol}
  152. \draw (76.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  153. \draw (76.0bp,51.0bp) node {$c$};
  154. \end{scope}
  155. % Node: 1
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (76.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (76.0bp,11.0bp) node {$\lnot a$};
  161. \end{scope}
  162. % Node: 3
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (162.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  167. \draw (162.0bp,30.0bp) node {$\lnot e$};
  168. \end{scope}
  169. % Node: 2
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (399.0bp,64.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (399.0bp,64.0bp) node {$\bot$};
  175. \end{scope}
  176. % Node: 4
  177. \begin{scope}
  178. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  179. \pgfsetstrokecolor{strokecol}
  180. \draw (251.0bp,58.0bp) ellipse (11.0bp and 11.0bp);
  181. \draw (251.0bp,58.0bp) node {$b$};
  182. \end{scope}
  183. % Node: 5
  184. \begin{scope}
  185. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  186. \pgfsetstrokecolor{strokecol}
  187. \draw (340.0bp,45.0bp) ellipse (11.0bp and 11.0bp);
  188. \draw (340.0bp,45.0bp) node {$d$};
  189. \end{scope}
  190. % Node: 6
  191. \begin{scope}
  192. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  193. \pgfsetstrokecolor{strokecol}
  194. \draw (340.0bp,85.0bp) ellipse (11.0bp and 11.0bp);
  195. \draw (340.0bp,85.0bp) node {$\lnot d$};
  196. \end{scope}
  197. %
  198. \end{tikzpicture}
  199. }
  200. \hspace{-0.09cm}\scalebox{0.85}{
  201. \begin{dplltabular}{3}
  202. \dpllStep{13|14|15}
  203. \dpllDecL{0|0|0}
  204. \dpllAssi{$c$|$c, e$|$c, e, \lnot a$}
  205. \dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot e$|$a$|\conflict}
  206. \dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot a$|\done}
  207. \dpllClause{3}{$b, e$}{$b, e$|\done|\done}
  208. \dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|\done|\done}
  209. \dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$}
  210. \dpllClause{6}{$c, \lnot d$}{\done|\done|\done}
  211. \dpllClause{7}{$c, d$}{\done|\done|\done}
  212. \dpllClause{8}{$c$}{\done|\done|\done}
  213. \dpllClause{9}{$e$}{$e$|\done|\done}
  214. \dpllBCP{$e$|$\lnot a$| - }
  215. \dpllPL{ - | - | - }
  216. \dpllDeci{ - | - |UNSAT}
  217. \end{dplltabular}
  218. }