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.

107 lines
4.1 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|0|0|1|1|1}
  5. \dpllAssi{ - |$a$|$a, b$|$a, b, \lnot c$|\makecell{$a, b, \lnot c, $ \\ $\lnot d$}|\makecell{$a, b, \lnot c, $ \\ $\lnot d, \lnot e$}}
  6. \dpllClause{1}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$|\done|\done|\done}
  7. \dpllClause{2}{$c, e$}{$c, e$|$c, e$|$c, e$|$e$|$e$|\conflict}
  8. \dpllClause{3}{$\lnot d, c$}{$\lnot d, c$|$\lnot d, c$|$\lnot d, c$|$\lnot d$|\done|\done}
  9. \dpllClause{4}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$\lnot e$|\done}
  10. \dpllClause{5}{$b, \lnot d$}{$b, \lnot d$|$b, \lnot d$|\done|\done|\done|\done}
  11. \dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|\done|\done}
  12. \dpllClause{7}{$a, c$}{$a, c$|\done|\done|\done|\done|\done}
  13. \dpllBCP{ - | - | - |$\lnot d$|$\lnot e$| - }
  14. \dpllPL{$a$|$b$| - | - | - | - }
  15. \dpllDeci{ - | - |$\lnot c$| - | - | - }
  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 -> 3
  25. \draw [->] (21.965bp,32.491bp) .. controls (42.831bp,35.613bp) and (91.46bp,42.888bp) .. (129.08bp,48.516bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,46.5bp) node {$$2$$};
  29. % Edge: 1 -> 4
  30. \draw [->] (20.22bp,24.026bp) .. controls (25.504bp,19.994bp) and (32.72bp,15.28bp) .. (40.0bp,13.0bp) .. controls (51.438bp,9.4177bp) and (64.837bp,8.8202bp) .. (85.817bp,9.7781bp);
  31. \draw (54.0bp,20.5bp) node {$$3$$};
  32. % Edge: 3 -> 2
  33. \draw [->] (150.95bp,48.009bp) .. controls (167.28bp,44.745bp) and (200.03bp,38.194bp) .. (231.09bp,31.983bp);
  34. % Edge: 4 -> 5
  35. \draw [->] (108.3bp,11.0bp) .. controls (121.47bp,11.0bp) and (144.58bp,11.0bp) .. (171.88bp,11.0bp);
  36. \draw (140.0bp,18.5bp) node {$$4$$};
  37. % Edge: 5 -> 2
  38. \draw [->] (193.67bp,14.223bp) .. controls (201.24bp,16.746bp) and (212.02bp,20.339bp) .. (231.09bp,26.697bp);
  39. % Node: 1
  40. \begin{scope}
  41. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  42. \pgfsetstrokecolor{strokecol}
  43. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  44. \draw (11.0bp,31.0bp) node {$\lnot c$};
  45. \end{scope}
  46. % Node: 3
  47. \begin{scope}
  48. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  49. \pgfsetstrokecolor{strokecol}
  50. \draw (140.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  51. \draw (140.0bp,50.0bp) node {$e$};
  52. \end{scope}
  53. % Node: 4
  54. \begin{scope}
  55. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  56. \pgfsetstrokecolor{strokecol}
  57. \draw (97.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  58. \draw (97.0bp,11.0bp) node {$\lnot d$};
  59. \end{scope}
  60. % Node: 2
  61. \begin{scope}
  62. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  63. \pgfsetstrokecolor{strokecol}
  64. \draw (242.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  65. \draw (242.0bp,30.0bp) node {$\bot$};
  66. \end{scope}
  67. % Node: 5
  68. \begin{scope}
  69. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  70. \pgfsetstrokecolor{strokecol}
  71. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  72. \draw (183.0bp,11.0bp) node {$\lnot e$};
  73. \end{scope}
  74. %
  75. \end{tikzpicture}
  76. }
  77. \begin{prooftree}
  78. \AxiomC{$4. \; d \lor \lnot e$}
  79. \AxiomC{$2. \; c \lor e$}
  80. \BinaryInfC{$d \lor c$}
  81. \AxiomC{$3. \; \lnot d \lor c$}
  82. \BinaryInfC{$c$}
  83. \end{prooftree}
  84. \hspace{-0.09cm}\scalebox{0.85}{
  85. \begin{dplltabular}{4}
  86. \dpllStep{7|8|9|10}
  87. \dpllDecL{0|0|0|0}
  88. \dpllAssi{$a, b$|$a, b, c$|\makecell{$a, b, c, $ \\ $\lnot d$}|\makecell{$a, b, c, $ \\ $\lnot d, \lnot e$}}
  89. \dpllClause{1}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot d$|\done|\done}
  90. \dpllClause{2}{$c, e$}{$c, e$|\done|\done|\done}
  91. \dpllClause{3}{$\lnot d, c$}{$\lnot d, c$|\done|\done|\done}
  92. \dpllClause{4}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$\lnot e$|\done}
  93. \dpllClause{5}{$b, \lnot d$}{\done|\done|\done|\done}
  94. \dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|\done|\done}
  95. \dpllClause{7}{$a, c$}{\done|\done|\done|\done}
  96. \dpllClause{8}{$c$}{$c$|\done|\done|\done}
  97. \dpllBCP{$c$|$\lnot d$|$\lnot e$| - }
  98. \dpllPL{ - | - | - | - }
  99. \dpllDeci{ - | - | - |SAT}
  100. \end{dplltabular}
  101. }