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.

114 lines
4.4 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|2|2|3|3}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, \lnot d$|\makecell{$\lnot a, \lnot b, \lnot d, $ \\ $\lnot c$}|\makecell{$\lnot a, \lnot b, \lnot d, $ \\ $\lnot c, \lnot e$}}
  6. \dpllClause{1}{$a, \lnot b, c$}{$a, \lnot b, c$|$\lnot b, c$|\done|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{$\lnot a, \lnot b, \lnot c$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$a, c, \lnot e$}{$a, c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$|\done}
  9. \dpllClause{4}{$b, \lnot c, e$}{$b, \lnot c, e$|$b, \lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
  10. \dpllClause{5}{$c, e$}{$c, e$|$c, e$|$c, e$|$c, e$|$e$|\conflict}
  11. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|$b, \lnot d$|$\lnot d$|\done|\done|\done}
  12. \dpllClause{7}{$\lnot b, d$}{$\lnot b, d$|$\lnot b, d$|\done|\done|\done|\done}
  13. \dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
  14. \dpllBCP{ - | - |$\lnot d$| - |$\lnot e$| - }
  15. \dpllPL{ - | - | - | - | - | - }
  16. \dpllDeci{$\lnot a$|$\lnot b$| - |$\lnot c$| - | - }
  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 -> 5
  26. \draw [->] (21.08bp,83.506bp) .. controls (26.44bp,80.758bp) and (33.44bp,77.508bp) .. (40.0bp,75.5bp) .. controls (51.601bp,71.949bp) and (65.006bp,69.732bp) .. (85.898bp,67.281bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,83.0bp) node {$$3$$};
  30. % Edge: 1 -> 6
  31. \draw [->] (21.966bp,90.636bp) .. controls (35.227bp,93.477bp) and (58.98bp,98.567bp) .. (86.047bp,104.37bp);
  32. \draw (54.0bp,107.0bp) node {$$5$$};
  33. % Edge: 3 -> 5
  34. \draw [->] (21.717bp,33.396bp) .. controls (33.05bp,36.904bp) and (52.243bp,43.253bp) .. (68.0bp,50.5bp) .. controls (71.462bp,52.092bp) and (75.062bp,53.969bp) .. (87.382bp,61.048bp);
  35. \draw (54.0bp,58.0bp) node {$$3$$};
  36. % Edge: 5 -> 4
  37. \draw [->] (107.67bp,69.723bp) .. controls (115.24bp,72.246bp) and (126.02bp,75.839bp) .. (145.09bp,82.197bp);
  38. % Edge: 6 -> 4
  39. \draw [->] (107.67bp,102.94bp) .. controls (115.41bp,100.08bp) and (126.51bp,95.995bp) .. (145.47bp,89.01bp);
  40. % Node: 1
  41. \begin{scope}
  42. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  43. \pgfsetstrokecolor{strokecol}
  44. \draw (11.0bp,88.5bp) ellipse (11.0bp and 11.0bp);
  45. \draw (11.0bp,88.5bp) node {$\lnot c$};
  46. \end{scope}
  47. % Node: 5
  48. \begin{scope}
  49. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  50. \pgfsetstrokecolor{strokecol}
  51. \draw (97.0bp,66.5bp) ellipse (11.0bp and 11.0bp);
  52. \draw (97.0bp,66.5bp) node {$\lnot e$};
  53. \end{scope}
  54. % Node: 6
  55. \begin{scope}
  56. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  57. \pgfsetstrokecolor{strokecol}
  58. \draw (97.0bp,106.5bp) ellipse (11.0bp and 11.0bp);
  59. \draw (97.0bp,106.5bp) node {$e$};
  60. \end{scope}
  61. % Node: 2
  62. \begin{scope}
  63. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  64. \pgfsetstrokecolor{strokecol}
  65. \draw (11.0bp,128.5bp) ellipse (11.0bp and 11.0bp);
  66. \draw (11.0bp,128.5bp) node {$\lnot b$};
  67. \end{scope}
  68. % Node: 3
  69. \begin{scope}
  70. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  71. \pgfsetstrokecolor{strokecol}
  72. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  73. \draw (11.0bp,30.5bp) node {$\lnot a$};
  74. \end{scope}
  75. % Node: 4
  76. \begin{scope}
  77. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  78. \pgfsetstrokecolor{strokecol}
  79. \draw (156.0bp,85.5bp) ellipse (11.0bp and 11.0bp);
  80. \draw (156.0bp,85.5bp) node {$\bot$};
  81. \end{scope}
  82. %
  83. \end{tikzpicture}
  84. }
  85. \begin{prooftree}
  86. \AxiomC{$3. \; a \lor c \lor \lnot e$}
  87. \AxiomC{$5. \; c \lor e$}
  88. \BinaryInfC{$a \lor c$}
  89. \end{prooftree}
  90. \hspace{-0.09cm}\scalebox{0.85}{
  91. \begin{dplltabular}{3}
  92. \dpllStep{7|8|9}
  93. \dpllDecL{2|2|2}
  94. \dpllAssi{$\lnot a, \lnot b, \lnot d$|\makecell{$\lnot a, \lnot b, \lnot d, $ \\ $c$}|\makecell{$\lnot a, \lnot b, \lnot d, $ \\ $c, e$}}
  95. \dpllClause{1}{$a, \lnot b, c$}{\done|\done|\done}
  96. \dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{\done|\done|\done}
  97. \dpllClause{3}{$a, c, \lnot e$}{$c, \lnot e$|\done|\done}
  98. \dpllClause{4}{$b, \lnot c, e$}{$\lnot c, e$|$e$|\done}
  99. \dpllClause{5}{$c, e$}{$c, e$|\done|\done}
  100. \dpllClause{6}{$b, \lnot d$}{\done|\done|\done}
  101. \dpllClause{7}{$\lnot b, d$}{\done|\done|\done}
  102. \dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$e$|\done}
  103. \dpllClause{9}{$a, c$}{$c$|\done|\done}
  104. \dpllBCP{$c$|$e$| - }
  105. \dpllPL{ - | - | - }
  106. \dpllDeci{ - | - |SAT}
  107. \end{dplltabular}
  108. }