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.

185 lines
7.1 KiB

5 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, b, c$}{$a, b, c$|$b, c$|$c$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, b$}{$\lnot a, b$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\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 [->] (21.966bp,68.127bp) .. controls (35.227bp,64.97bp) and (58.98bp,59.314bp) .. (86.047bp,52.87bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,70.0bp) node {$$1$$};
  28. % Edge: 2 -> 4
  29. \draw [->] (22.172bp,29.583bp) .. controls (33.596bp,28.885bp) and (52.558bp,28.73bp) .. (68.0bp,33.5bp) .. controls (71.81bp,34.677bp) and (75.634bp,36.485bp) .. (87.704bp,43.958bp);
  30. \draw (54.0bp,41.0bp) node {$$1$$};
  31. % Edge: 4 -> 5
  32. \draw [->] (107.97bp,52.873bp) .. controls (121.23bp,56.03bp) and (144.98bp,61.686bp) .. (172.05bp,68.13bp);
  33. \draw (140.0bp,70.0bp) node {$$4$$};
  34. % Edge: 4 -> 6
  35. \draw [->] (107.07bp,45.696bp) .. controls (112.42bp,43.094bp) and (119.42bp,40.094bp) .. (126.0bp,38.5bp) .. controls (152.72bp,32.025bp) and (184.6bp,30.902bp) .. (215.0bp,31.119bp);
  36. \draw (140.0bp,46.0bp) node {$$5$$};
  37. % Edge: 5 -> 7
  38. \draw [->] (194.3bp,70.5bp) .. controls (207.47bp,70.5bp) and (230.58bp,70.5bp) .. (257.88bp,70.5bp);
  39. \draw (226.0bp,78.0bp) node {$$6$$};
  40. % Edge: 6 -> 3
  41. \draw [->] (236.95bp,32.694bp) .. controls (253.12bp,34.634bp) and (285.4bp,38.508bp) .. (316.79bp,42.275bp);
  42. % Edge: 7 -> 3
  43. \draw [->] (279.16bp,66.162bp) .. controls (287.01bp,62.445bp) and (298.56bp,56.972bp) .. (317.68bp,47.917bp);
  44. % Node: 1
  45. \begin{scope}
  46. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  47. \pgfsetstrokecolor{strokecol}
  48. \draw (11.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  49. \draw (11.0bp,70.5bp) node {$\lnot b$};
  50. \end{scope}
  51. % Node: 4
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (97.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  56. \draw (97.0bp,50.5bp) node {$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 (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  63. \draw (11.0bp,30.5bp) node {$\lnot a$};
  64. \end{scope}
  65. % Node: 3
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (328.0bp,43.5bp) ellipse (11.0bp and 11.0bp);
  70. \draw (328.0bp,43.5bp) node {$\bot$};
  71. \end{scope}
  72. % Node: 5
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (183.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  77. \draw (183.0bp,70.5bp) node {$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 (226.0bp,31.5bp) ellipse (11.0bp and 11.0bp);
  84. \draw (226.0bp,31.5bp) node {$e$};
  85. \end{scope}
  86. % Node: 7
  87. \begin{scope}
  88. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  89. \pgfsetstrokecolor{strokecol}
  90. \draw (269.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  91. \draw (269.0bp,70.5bp) node {$\lnot e$};
  92. \end{scope}
  93. %
  94. \end{tikzpicture}
  95. }
  96. \hspace{-0.09cm}\scalebox{0.85}{
  97. \begin{dplltabular}{4}
  98. \dpllStep{7|8|9|10}
  99. \dpllDecL{0|0|0|0}
  100. \dpllAssi{ - |$\lnot c$|$\lnot c, \lnot b$|$\lnot c, \lnot b, \lnot a$}
  101. \dpllClause{1}{$a, b, c$}{$a, b, c$|$a, b$|$a$|\conflict}
  102. \dpllClause{2}{$\lnot a, b$}{$\lnot a, b$|$\lnot a, b$|$\lnot a$|\done}
  103. \dpllClause{3}{$\lnot b, c$}{$\lnot b, c$|$\lnot b$|\done|\done}
  104. \dpllClause{4}{$\lnot c, d$}{$\lnot c, d$|\done|\done|\done}
  105. \dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|\done|\done|\done}
  106. \dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$}
  107. \dpllClause{7}{$\lnot c$}{$\lnot c$|\done|\done|\done}
  108. \dpllBCP{$\lnot c$|$\lnot b$|$\lnot a$| - }
  109. \dpllPL{ - | - | - | - }
  110. \dpllDeci{ - | - | - |UNSAT}
  111. \end{dplltabular}
  112. }
  113. Conflict in step 10\\
  114. \scalebox{0.75}{
  115. \begin{tikzpicture}[>=latex,line join=bevel,]
  116. \pgfsetlinewidth{1bp}
  117. %%
  118. \pgfsetcolor{black}
  119. % Edge: 0 -> 5
  120. \draw [->] (1.0536bp,56.0bp) .. controls (2.5071bp,56.0bp) and (33.188bp,56.0bp) .. (64.696bp,56.0bp);
  121. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  122. \pgfsetstrokecolor{strokecol}
  123. \draw (33.0bp,63.5bp) node {$$7$$};
  124. % Edge: 2 -> 1
  125. \draw [->] (264.67bp,47.438bp) .. controls (272.41bp,44.585bp) and (283.51bp,40.495bp) .. (302.47bp,33.51bp);
  126. % Edge: 3 -> 1
  127. \draw [->] (264.67bp,14.223bp) .. controls (272.24bp,16.746bp) and (283.02bp,20.339bp) .. (302.09bp,26.697bp);
  128. % Edge: 4 -> 2
  129. \draw [->] (175.98bp,34.18bp) .. controls (189.88bp,37.215bp) and (215.36bp,42.779bp) .. (243.14bp,48.846bp);
  130. \draw (211.0bp,51.5bp) node {$$1$$};
  131. % Edge: 4 -> 3
  132. \draw [->] (175.33bp,27.798bp) .. controls (181.39bp,25.214bp) and (189.54bp,22.021bp) .. (197.0bp,20.0bp) .. controls (208.71bp,16.83bp) and (222.12bp,14.627bp) .. (242.95bp,11.971bp);
  133. \draw (211.0bp,27.5bp) node {$$2$$};
  134. % Edge: 5 -> 2
  135. \draw [->] (86.411bp,59.835bp) .. controls (91.762bp,61.808bp) and (98.644bp,64.004bp) .. (105.0bp,65.0bp) .. controls (128.93bp,68.751bp) and (181.64bp,72.391bp) .. (225.0bp,63.0bp) .. controls (228.2bp,62.306bp) and (231.5bp,61.244bp) .. (243.96bp,55.925bp);
  136. \draw (165.0bp,75.5bp) node {$$1$$};
  137. % Edge: 5 -> 4
  138. \draw [->] (86.98bp,53.247bp) .. controls (100.94bp,49.395bp) and (126.6bp,42.318bp) .. (154.14bp,34.721bp);
  139. \draw (119.0bp,55.5bp) node {$$3$$};
  140. % Node: 5
  141. \begin{scope}
  142. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  143. \pgfsetstrokecolor{strokecol}
  144. \draw (76.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  145. \draw (76.0bp,56.0bp) node {$\lnot c$};
  146. \end{scope}
  147. % Node: 1
  148. \begin{scope}
  149. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  150. \pgfsetstrokecolor{strokecol}
  151. \draw (313.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  152. \draw (313.0bp,30.0bp) node {$\bot$};
  153. \end{scope}
  154. % Node: 2
  155. \begin{scope}
  156. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  157. \pgfsetstrokecolor{strokecol}
  158. \draw (254.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  159. \draw (254.0bp,51.0bp) node {$a$};
  160. \end{scope}
  161. % Node: 3
  162. \begin{scope}
  163. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  164. \pgfsetstrokecolor{strokecol}
  165. \draw (254.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  166. \draw (254.0bp,11.0bp) node {$\lnot a$};
  167. \end{scope}
  168. % Node: 4
  169. \begin{scope}
  170. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  171. \pgfsetstrokecolor{strokecol}
  172. \draw (165.0bp,32.0bp) ellipse (11.0bp and 11.0bp);
  173. \draw (165.0bp,32.0bp) node {$\lnot b$};
  174. \end{scope}
  175. %
  176. \end{tikzpicture}
  177. }