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.

108 lines
4.0 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{4}
  3. \dpllStep{1|2|3|4}
  4. \dpllDecL{0|1|1|1}
  5. \dpllAssi{ - |$\lnot w$|$\lnot w, \lnot x$|$\lnot w, \lnot x, \lnot y$}
  6. \dpllClause{1}{$x, y, w$}{$x, y, w$|$x, y$|$y$|\conflict}
  7. \dpllClause{2}{$\lnot x, z, \lnot w$}{$\lnot x, z, \lnot w$|\done|\done|\done}
  8. \dpllClause{3}{$\lnot y, w$}{$\lnot y, w$|$\lnot y$|$\lnot y$|\done}
  9. \dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|\done|\done|\done}
  10. \dpllClause{5}{$\lnot y, z$}{$\lnot y, z$|$\lnot y, z$|$\lnot y, z$|\done}
  11. \dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|$\lnot x$|\done|\done}
  12. \dpllBCP{ - |$\lnot x$|$\lnot y$| - }
  13. \dpllPL{ - | - | - | - }
  14. \dpllDeci{$\lnot w$| - | - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 4\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 3
  24. \draw [->] (22.223bp,55.0bp) .. controls (50.414bp,55.0bp) and (129.66bp,55.0bp) .. (177.75bp,55.0bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (100.0bp,62.5bp) node {$$1$$};
  28. % Edge: 1 -> 4
  29. \draw [->] (18.027bp,46.114bp) .. controls (23.074bp,39.428bp) and (30.901bp,30.65bp) .. (40.0bp,26.0bp) .. controls (66.949bp,12.229bp) and (102.57bp,9.9572bp) .. (134.8bp,10.34bp);
  30. \draw (54.0bp,33.5bp) node {$$3$$};
  31. % Edge: 1 -> 5
  32. \draw [->] (21.311bp,59.709bp) .. controls (35.439bp,66.854bp) and (62.567bp,80.574bp) .. (89.756bp,94.325bp);
  33. \draw (54.0bp,90.5bp) node {$$6$$};
  34. % Edge: 3 -> 2
  35. \draw [->] (199.16bp,50.341bp) .. controls (207.09bp,46.306bp) and (218.8bp,40.346bp) .. (237.68bp,30.744bp);
  36. % Edge: 4 -> 2
  37. \draw [->] (156.95bp,12.493bp) .. controls (173.2bp,14.93bp) and (205.73bp,19.81bp) .. (237.09bp,24.513bp);
  38. % Edge: 5 -> 3
  39. \draw [->] (110.31bp,94.291bp) .. controls (124.44bp,87.146bp) and (151.57bp,73.426bp) .. (178.76bp,59.675bp);
  40. \draw (146.0bp,90.5bp) node {$$1$$};
  41. % Node: 1
  42. \begin{scope}
  43. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  44. \pgfsetstrokecolor{strokecol}
  45. \draw (11.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
  46. \draw (11.0bp,55.0bp) node {$\lnot w$};
  47. \end{scope}
  48. % Node: 3
  49. \begin{scope}
  50. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  51. \pgfsetstrokecolor{strokecol}
  52. \draw (189.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
  53. \draw (189.0bp,55.0bp) node {$y$};
  54. \end{scope}
  55. % Node: 4
  56. \begin{scope}
  57. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  58. \pgfsetstrokecolor{strokecol}
  59. \draw (146.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  60. \draw (146.0bp,11.0bp) node {$\lnot y$};
  61. \end{scope}
  62. % Node: 5
  63. \begin{scope}
  64. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  65. \pgfsetstrokecolor{strokecol}
  66. \draw (100.0bp,99.0bp) ellipse (11.0bp and 11.0bp);
  67. \draw (100.0bp,99.0bp) node {$\lnot x$};
  68. \end{scope}
  69. % Node: 2
  70. \begin{scope}
  71. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  72. \pgfsetstrokecolor{strokecol}
  73. \draw (248.0bp,26.0bp) ellipse (11.0bp and 11.0bp);
  74. \draw (248.0bp,26.0bp) node {$\bot$};
  75. \end{scope}
  76. %
  77. \end{tikzpicture}
  78. }
  79. \begin{prooftree}
  80. \AxiomC{$1. \; x \lor y \lor w$}
  81. \AxiomC{$3. \; \lnot y \lor w$}
  82. \BinaryInfC{$x \lor w$}
  83. \AxiomC{$6. \; \lnot x \lor w$}
  84. \BinaryInfC{$w$}
  85. \end{prooftree}
  86. \hspace{-0.09cm}\scalebox{0.85}{
  87. \begin{dplltabular}{5}
  88. \dpllStep{5|6|7|8|9}
  89. \dpllDecL{0|0|0|0|0}
  90. \dpllAssi{ - |$w$|$w, \lnot z$|$w, \lnot z, \lnot x$|\makecell{$w, \lnot z, \lnot x, $ \\ $\lnot y$}}
  91. \dpllClause{1}{$x, y, w$}{$x, y, w$|\done|\done|\done|\done}
  92. \dpllClause{2}{$\lnot x, z, \lnot w$}{$\lnot x, z, \lnot w$|$\lnot x, z$|$\lnot x$|\done|\done}
  93. \dpllClause{3}{$\lnot y, w$}{$\lnot y, w$|\done|\done|\done|\done}
  94. \dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|$\lnot z$|\done|\done|\done}
  95. \dpllClause{5}{$\lnot y, z$}{$\lnot y, z$|$\lnot y, z$|$\lnot y$|$\lnot y$|\done}
  96. \dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|\done|\done|\done|\done}
  97. \dpllClause{7}{$w$}{$w$|\done|\done|\done|\done}
  98. \dpllBCP{$w$|$\lnot z$|$\lnot x$|$\lnot y$| - }
  99. \dpllPL{ - | - | - | - | - }
  100. \dpllDeci{ - | - | - | - |SAT}
  101. \end{dplltabular}
  102. }