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.

133 lines
5.2 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|1|1|1|1}
  5. \dpllAssi{ - |$\lnot u$|$\lnot u, \lnot v$|$\lnot u, \lnot v, \lnot x$|\makecell{$\lnot u, \lnot v, \lnot x, $ \\ $\lnot y$}|\makecell{$\lnot u, \lnot v, \lnot x, $ \\ $\lnot y, \lnot z$}}
  6. \dpllClause{1}{$u, \lnot v$}{$u, \lnot v$|$\lnot v$|\done|\done|\done|\done}
  7. \dpllClause{2}{$\lnot u, w$}{$\lnot u, w$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$v, \lnot x$}{$v, \lnot x$|$v, \lnot x$|$\lnot x$|\done|\done|\done}
  9. \dpllClause{4}{$w, \lnot y$}{$w, \lnot y$|$w, \lnot y$|$w, \lnot y$|$w, \lnot y$|\done|\done}
  10. \dpllClause{5}{$v, \lnot y$}{$v, \lnot y$|$v, \lnot y$|$\lnot y$|$\lnot y$|\done|\done}
  11. \dpllClause{6}{$\lnot w, z$}{$\lnot w, z$|$\lnot w, z$|$\lnot w, z$|$\lnot w, z$|$\lnot w, z$|$\lnot w$}
  12. \dpllClause{7}{$z, x$}{$z, x$|$z, x$|$z, x$|$z$|$z$|\conflict}
  13. \dpllClause{8}{$y, \lnot z$}{$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$\lnot z$|\done}
  14. \dpllBCP{ - |$\lnot v$|$\lnot x$|$\lnot y$|$\lnot z$| - }
  15. \dpllPL{ - | - | - | - | - | - }
  16. \dpllDeci{$\lnot u$| - | - | - | - | - }
  17. \end{dplltabular}
  18. }
  19. Conflict in step 6\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 1 -> 3
  26. \draw [->] (22.3bp,31.0bp) .. controls (35.47bp,31.0bp) and (58.583bp,31.0bp) .. (85.878bp,31.0bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,38.5bp) node {$$1$$};
  30. % Edge: 3 -> 4
  31. \draw [->] (107.97bp,33.373bp) .. controls (121.23bp,36.53bp) and (144.98bp,42.186bp) .. (172.05bp,48.63bp);
  32. \draw (140.0bp,50.5bp) node {$$3$$};
  33. % Edge: 3 -> 5
  34. \draw [->] (107.11bp,26.371bp) .. controls (112.48bp,23.828bp) and (119.48bp,20.828bp) .. (126.0bp,19.0bp) .. controls (137.65bp,15.733bp) and (151.06bp,13.758bp) .. (171.92bp,11.639bp);
  35. \draw (140.0bp,26.5bp) node {$$5$$};
  36. % Edge: 4 -> 6
  37. \draw [->] (194.3bp,51.0bp) .. controls (207.47bp,51.0bp) and (230.58bp,51.0bp) .. (257.88bp,51.0bp);
  38. \draw (226.0bp,58.5bp) node {$$7$$};
  39. % Edge: 5 -> 7
  40. \draw [->] (194.3bp,11.0bp) .. controls (207.47bp,11.0bp) and (230.58bp,11.0bp) .. (257.88bp,11.0bp);
  41. \draw (226.0bp,18.5bp) node {$$8$$};
  42. % Edge: 6 -> 2
  43. \draw [->] (279.67bp,47.438bp) .. controls (287.41bp,44.585bp) and (298.51bp,40.495bp) .. (317.47bp,33.51bp);
  44. % Edge: 7 -> 2
  45. \draw [->] (279.67bp,14.223bp) .. controls (287.24bp,16.746bp) and (298.02bp,20.339bp) .. (317.09bp,26.697bp);
  46. % Node: 1
  47. \begin{scope}
  48. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  49. \pgfsetstrokecolor{strokecol}
  50. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  51. \draw (11.0bp,31.0bp) node {$\lnot u$};
  52. \end{scope}
  53. % Node: 3
  54. \begin{scope}
  55. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  56. \pgfsetstrokecolor{strokecol}
  57. \draw (97.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  58. \draw (97.0bp,31.0bp) node {$\lnot v$};
  59. \end{scope}
  60. % Node: 2
  61. \begin{scope}
  62. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  63. \pgfsetstrokecolor{strokecol}
  64. \draw (328.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  65. \draw (328.0bp,30.0bp) node {$\bot$};
  66. \end{scope}
  67. % Node: 4
  68. \begin{scope}
  69. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  70. \pgfsetstrokecolor{strokecol}
  71. \draw (183.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  72. \draw (183.0bp,51.0bp) node {$\lnot x$};
  73. \end{scope}
  74. % Node: 5
  75. \begin{scope}
  76. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  77. \pgfsetstrokecolor{strokecol}
  78. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  79. \draw (183.0bp,11.0bp) node {$\lnot y$};
  80. \end{scope}
  81. % Node: 6
  82. \begin{scope}
  83. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  84. \pgfsetstrokecolor{strokecol}
  85. \draw (269.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  86. \draw (269.0bp,51.0bp) node {$z$};
  87. \end{scope}
  88. % Node: 7
  89. \begin{scope}
  90. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  91. \pgfsetstrokecolor{strokecol}
  92. \draw (269.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  93. \draw (269.0bp,11.0bp) node {$\lnot z$};
  94. \end{scope}
  95. %
  96. \end{tikzpicture}
  97. }
  98. \begin{prooftree}
  99. \AxiomC{$8. \; y \lor \lnot z$}
  100. \AxiomC{$7. \; z \lor x$}
  101. \BinaryInfC{$y \lor x$}
  102. \AxiomC{$3. \; v \lor \lnot x$}
  103. \BinaryInfC{$y \lor v$}
  104. \AxiomC{$5. \; v \lor \lnot y$}
  105. \BinaryInfC{$v$}
  106. \AxiomC{$1. \; u \lor \lnot v$}
  107. \BinaryInfC{$u$}
  108. \end{prooftree}
  109. \hspace{-0.09cm}\scalebox{0.85}{
  110. \begin{dplltabular}{6}
  111. \dpllStep{7|8|9|10|11|12}
  112. \dpllDecL{0|0|0|0|0|0}
  113. \dpllAssi{ - |$u$|$u, w$|$u, w, z$|\makecell{$u, w, z, $ \\ $y$}|\makecell{$u, w, z, $ \\ $y, v$}}
  114. \dpllClause{1}{$u, \lnot v$}{$u, \lnot v$|\done|\done|\done|\done|\done}
  115. \dpllClause{2}{$\lnot u, w$}{$\lnot u, w$|$w$|\done|\done|\done|\done}
  116. \dpllClause{3}{$v, \lnot x$}{$v, \lnot x$|$v, \lnot x$|$v, \lnot x$|$v, \lnot x$|$v, \lnot x$|\done}
  117. \dpllClause{4}{$w, \lnot y$}{$w, \lnot y$|$w, \lnot y$|\done|\done|\done|\done}
  118. \dpllClause{5}{$v, \lnot y$}{$v, \lnot y$|$v, \lnot y$|$v, \lnot y$|$v, \lnot y$|$v$|\done}
  119. \dpllClause{6}{$\lnot w, z$}{$\lnot w, z$|$\lnot w, z$|$z$|\done|\done|\done}
  120. \dpllClause{7}{$z, x$}{$z, x$|$z, x$|$z, x$|\done|\done|\done}
  121. \dpllClause{8}{$y, \lnot z$}{$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$y$|\done|\done}
  122. \dpllClause{9}{$u$}{$u$|\done|\done|\done|\done|\done}
  123. \dpllBCP{$u$|$w$|$z$|$y$|$v$| - }
  124. \dpllPL{ - | - | - | - | - | - }
  125. \dpllDeci{ - | - | - | - | - |SAT}
  126. \end{dplltabular}
  127. }