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.

120 lines
4.6 KiB

  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{1|2|3|4|5}
  4. \dpllDecL{0|1|1|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, c$|\makecell{$\lnot a, \lnot b, c, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$a, \lnot b, c$}{$a, \lnot b, c$|$\lnot b, c$|\done|\done|\done}
  7. \dpllClause{2}{$b, \lnot c, d$}{$b, \lnot c, d$|$b, \lnot c, d$|$\lnot c, d$|$d$|\conflict}
  8. \dpllClause{3}{$a, \lnot b$}{$a, \lnot b$|$\lnot b$|\done|\done|\done}
  9. \dpllClause{4}{$a, c$}{$a, c$|$c$|$c$|\done|\done}
  10. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot d$|\done}
  11. \dpllClause{6}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done}
  12. \dpllBCP{ - |$\lnot b$|$c$|$\lnot d$| - }
  13. \dpllPL{ - | - | - | - | - }
  14. \dpllDeci{$\lnot a$| - | - | - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 5\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 4
  24. \draw [->] (21.966bp,69.373bp) .. controls (35.227bp,72.53bp) and (58.98bp,78.186bp) .. (86.047bp,84.63bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,87.5bp) node {$$3$$};
  28. % Edge: 1 -> 5
  29. \draw [->] (21.417bp,62.714bp) .. controls (26.77bp,60.427bp) and (33.652bp,57.735bp) .. (40.0bp,56.0bp) .. controls (51.702bp,52.801bp) and (65.111bp,50.597bp) .. (85.949bp,47.957bp);
  30. \draw (54.0bp,63.5bp) node {$$4$$};
  31. % Edge: 3 -> 2
  32. \draw [->] (193.67bp,47.438bp) .. controls (201.41bp,44.585bp) and (212.51bp,40.495bp) .. (231.47bp,33.51bp);
  33. % Edge: 4 -> 3
  34. \draw [->] (107.62bp,83.519bp) .. controls (118.86bp,79.383bp) and (137.97bp,72.139bp) .. (154.0bp,65.0bp) .. controls (157.18bp,63.585bp) and (160.52bp,62.002bp) .. (172.77bp,55.877bp);
  35. \draw (140.0bp,84.5bp) node {$$2$$};
  36. % Edge: 5 -> 3
  37. \draw [->] (108.3bp,47.49bp) .. controls (121.47bp,48.118bp) and (144.58bp,49.218bp) .. (171.88bp,50.518bp);
  38. \draw (140.0bp,57.5bp) node {$$2$$};
  39. % Edge: 5 -> 6
  40. \draw [->] (106.56bp,41.131bp) .. controls (111.96bp,37.593bp) and (119.2bp,33.173bp) .. (126.0bp,30.0bp) .. controls (137.72bp,24.533bp) and (151.47bp,19.844bp) .. (172.24bp,13.608bp);
  41. \draw (140.0bp,37.5bp) node {$$5$$};
  42. % Edge: 6 -> 2
  43. \draw [->] (193.67bp,14.223bp) .. controls (201.24bp,16.746bp) and (212.02bp,20.339bp) .. (231.09bp,26.697bp);
  44. % Node: 1
  45. \begin{scope}
  46. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  47. \pgfsetstrokecolor{strokecol}
  48. \draw (11.0bp,67.0bp) ellipse (11.0bp and 11.0bp);
  49. \draw (11.0bp,67.0bp) node {$\lnot a$};
  50. \end{scope}
  51. % Node: 4
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (97.0bp,87.0bp) ellipse (11.0bp and 11.0bp);
  56. \draw (97.0bp,87.0bp) node {$\lnot b$};
  57. \end{scope}
  58. % Node: 5
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (97.0bp,47.0bp) ellipse (11.0bp and 11.0bp);
  63. \draw (97.0bp,47.0bp) node {$c$};
  64. \end{scope}
  65. % Node: 2
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (242.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  70. \draw (242.0bp,30.0bp) node {$\bot$};
  71. \end{scope}
  72. % Node: 3
  73. \begin{scope}
  74. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  75. \pgfsetstrokecolor{strokecol}
  76. \draw (183.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  77. \draw (183.0bp,51.0bp) node {$d$};
  78. \end{scope}
  79. % Node: 6
  80. \begin{scope}
  81. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  82. \pgfsetstrokecolor{strokecol}
  83. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  84. \draw (183.0bp,11.0bp) node {$\lnot d$};
  85. \end{scope}
  86. %
  87. \end{tikzpicture}
  88. }
  89. \begin{prooftree}
  90. \AxiomC{$2. \; b \lor \lnot c \lor d$}
  91. \AxiomC{$5. \; \lnot c \lor \lnot d$}
  92. \BinaryInfC{$b \lor \lnot c$}
  93. \AxiomC{$3. \; a \lor \lnot b$}
  94. \BinaryInfC{$\lnot c \lor a$}
  95. \AxiomC{$4. \; a \lor c$}
  96. \BinaryInfC{$a$}
  97. \end{prooftree}
  98. \hspace{-0.09cm}\scalebox{0.85}{
  99. \begin{dplltabular}{5}
  100. \dpllStep{6|7|8|9|10}
  101. \dpllDecL{0|0|0|0|0}
  102. \dpllAssi{ - |$a$|$a, c$|$a, c, \lnot d$|\makecell{$a, c, \lnot d, $ \\ $b$}}
  103. \dpllClause{1}{$a, \lnot b, c$}{$a, \lnot b, c$|\done|\done|\done|\done}
  104. \dpllClause{2}{$b, \lnot c, d$}{$b, \lnot c, d$|$b, \lnot c, d$|$b, d$|$b$|\done}
  105. \dpllClause{3}{$a, \lnot b$}{$a, \lnot b$|\done|\done|\done|\done}
  106. \dpllClause{4}{$a, c$}{$a, c$|\done|\done|\done|\done}
  107. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot d$|\done|\done}
  108. \dpllClause{6}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done}
  109. \dpllClause{7}{$a$}{$a$|\done|\done|\done|\done}
  110. \dpllBCP{$a$|$c$|$\lnot d$|$b$| - }
  111. \dpllPL{ - | - | - | - | - }
  112. \dpllDeci{ - | - | - | - |SAT}
  113. \end{dplltabular}
  114. }