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
3.8 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{4}
  3. \dpllStep{1|2|3|4}
  4. \dpllDecL{0|0|1|1}
  5. \dpllAssi{ - |$\lnot y$|$\lnot y, \lnot w$|$\lnot y, \lnot w, \lnot x$}
  6. \dpllClause{1}{$x, y, w$}{$x, y, w$|$x, w$|$x$|\conflict}
  7. \dpllClause{2}{$\lnot x, z$}{$\lnot x, z$|$\lnot x, z$|$\lnot x, z$|\done}
  8. \dpllClause{3}{$\lnot y, w$}{$\lnot y, w$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|$\lnot z, \lnot w$|\done|\done}
  10. \dpllClause{5}{$\lnot y$}{$\lnot y$|\done|\done|\done}
  11. \dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|$\lnot x, w$|$\lnot x$|\done}
  12. \dpllBCP{$\lnot y$| - |$\lnot x$| - }
  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: 0 -> 4
  24. \draw [->] (1.0536bp,87.0bp) .. controls (2.5071bp,87.0bp) and (33.188bp,87.0bp) .. (64.696bp,87.0bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (33.0bp,94.5bp) node {$$5$$};
  28. % Edge: 1 -> 3
  29. \draw [->] (86.966bp,31.61bp) .. controls (100.23bp,35.083bp) and (123.98bp,41.304bp) .. (151.05bp,48.393bp);
  30. \draw (119.0bp,51.5bp) node {$$1$$};
  31. % Edge: 1 -> 5
  32. \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);
  33. \draw (119.0bp,19.5bp) node {$$6$$};
  34. % Edge: 3 -> 2
  35. \draw [->] (172.67bp,47.438bp) .. controls (180.41bp,44.585bp) and (191.51bp,40.495bp) .. (210.47bp,33.51bp);
  36. % Edge: 4 -> 3
  37. \draw [->] (86.31bp,83.01bp) .. controls (99.682bp,77.279bp) and (124.62bp,66.591bp) .. (151.65bp,55.008bp);
  38. \draw (119.0bp,81.5bp) node {$$1$$};
  39. % Edge: 5 -> 2
  40. \draw [->] (172.67bp,14.223bp) .. controls (180.24bp,16.746bp) and (191.02bp,20.339bp) .. (210.09bp,26.697bp);
  41. % Node: 4
  42. \begin{scope}
  43. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  44. \pgfsetstrokecolor{strokecol}
  45. \draw (76.0bp,87.0bp) ellipse (11.0bp and 11.0bp);
  46. \draw (76.0bp,87.0bp) node {$\lnot y$};
  47. \end{scope}
  48. % Node: 1
  49. \begin{scope}
  50. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  51. \pgfsetstrokecolor{strokecol}
  52. \draw (76.0bp,29.0bp) ellipse (11.0bp and 11.0bp);
  53. \draw (76.0bp,29.0bp) node {$\lnot w$};
  54. \end{scope}
  55. % Node: 3
  56. \begin{scope}
  57. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  58. \pgfsetstrokecolor{strokecol}
  59. \draw (162.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  60. \draw (162.0bp,51.0bp) node {$x$};
  61. \end{scope}
  62. % Node: 5
  63. \begin{scope}
  64. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  65. \pgfsetstrokecolor{strokecol}
  66. \draw (162.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  67. \draw (162.0bp,11.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 (221.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  74. \draw (221.0bp,30.0bp) node {$\bot$};
  75. \end{scope}
  76. %
  77. \end{tikzpicture}
  78. }
  79. \begin{prooftree}
  80. \AxiomC{$1. \; x \lor y \lor w$}
  81. \AxiomC{$5. \; \lnot y$}
  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}{4}
  88. \dpllStep{5|6|7|8}
  89. \dpllDecL{0|0|0|0}
  90. \dpllAssi{$\lnot y$|$\lnot y, w$|$\lnot y, w, \lnot z$|\makecell{$\lnot y, w, \lnot z, $ \\ $\lnot x$}}
  91. \dpllClause{1}{$x, y, w$}{$x, w$|\done|\done|\done}
  92. \dpllClause{2}{$\lnot x, z$}{$\lnot x, z$|$\lnot x, z$|$\lnot x$|\done}
  93. \dpllClause{3}{$\lnot y, w$}{\done|\done|\done|\done}
  94. \dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|$\lnot z$|\done|\done}
  95. \dpllClause{5}{$\lnot y$}{\done|\done|\done|\done}
  96. \dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|\done|\done|\done}
  97. \dpllClause{7}{$w$}{$w$|\done|\done|\done}
  98. \dpllBCP{$w$|$\lnot z$|$\lnot x$| - }
  99. \dpllPL{ - | - | - | - }
  100. \dpllDeci{ - | - | - |SAT}
  101. \end{dplltabular}
  102. }