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.

119 lines
4.7 KiB

  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{1|2|3|4|5}
  4. \dpllDecL{0|1|2|2|2}
  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, b, c$}{$a, b, c$|$b, c$|$c$|\done|\done}
  7. \dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{$\lnot a, \lnot b, \lnot c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$a, c, \lnot e$}{$a, c, \lnot e$|$c, \lnot e$|$c, \lnot e$|\done|\done}
  9. \dpllClause{4}{$\lnot b, \lnot c, e$}{$\lnot b, \lnot c, e$|$\lnot b, \lnot c, e$|\done|\done|\done}
  10. \dpllClause{5}{$b, e$}{$b, e$|$b, e$|$e$|$e$|$e$}
  11. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|$b, \lnot d$|$\lnot d$|$\lnot d$|\done}
  12. \dpllClause{7}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\conflict}
  13. \dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$}
  14. \dpllBCP{ - | - |$c$|$\lnot d$| - }
  15. \dpllPL{ - | - | - | - | - }
  16. \dpllDeci{$\lnot a$|$\lnot b$| - | - | - }
  17. \end{dplltabular}
  18. }
  19. Conflict in step 5\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 1 -> 4
  26. \draw [->] (19.683bp,81.526bp) .. controls (24.978bp,77.19bp) and (32.406bp,71.982bp) .. (40.0bp,69.5bp) .. controls (51.392bp,65.776bp) and (64.79bp,65.173bp) .. (85.794bp,66.207bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,77.0bp) node {$$1$$};
  30. % Edge: 1 -> 5
  31. \draw [->] (21.965bp,89.912bp) .. controls (42.831bp,92.87bp) and (91.46bp,99.762bp) .. (129.08bp,105.09bp);
  32. \draw (54.0bp,103.0bp) node {$$6$$};
  33. % Edge: 2 -> 4
  34. \draw [->] (21.909bp,32.194bp) .. controls (33.423bp,34.415bp) and (52.786bp,38.945bp) .. (68.0bp,46.5bp) .. controls (72.163bp,48.567bp) and (76.339bp,51.274bp) .. (88.19bp,60.406bp);
  35. \draw (54.0bp,54.0bp) node {$$1$$};
  36. % Edge: 4 -> 6
  37. \draw [->] (108.3bp,67.5bp) .. controls (121.47bp,67.5bp) and (144.58bp,67.5bp) .. (171.88bp,67.5bp);
  38. \draw (140.0bp,75.0bp) node {$$7$$};
  39. % Edge: 5 -> 3
  40. \draw [->] (150.95bp,104.51bp) .. controls (167.28bp,101.24bp) and (200.03bp,94.694bp) .. (231.09bp,88.483bp);
  41. % Edge: 6 -> 3
  42. \draw [->] (193.67bp,70.723bp) .. controls (201.24bp,73.246bp) and (212.02bp,76.839bp) .. (231.09bp,83.197bp);
  43. % Node: 1
  44. \begin{scope}
  45. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  46. \pgfsetstrokecolor{strokecol}
  47. \draw (11.0bp,88.5bp) ellipse (11.0bp and 11.0bp);
  48. \draw (11.0bp,88.5bp) node {$\lnot b$};
  49. \end{scope}
  50. % Node: 4
  51. \begin{scope}
  52. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  53. \pgfsetstrokecolor{strokecol}
  54. \draw (97.0bp,67.5bp) ellipse (11.0bp and 11.0bp);
  55. \draw (97.0bp,67.5bp) node {$c$};
  56. \end{scope}
  57. % Node: 5
  58. \begin{scope}
  59. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  60. \pgfsetstrokecolor{strokecol}
  61. \draw (140.0bp,106.5bp) ellipse (11.0bp and 11.0bp);
  62. \draw (140.0bp,106.5bp) node {$\lnot d$};
  63. \end{scope}
  64. % Node: 2
  65. \begin{scope}
  66. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  67. \pgfsetstrokecolor{strokecol}
  68. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  69. \draw (11.0bp,30.5bp) node {$\lnot a$};
  70. \end{scope}
  71. % Node: 3
  72. \begin{scope}
  73. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  74. \pgfsetstrokecolor{strokecol}
  75. \draw (242.0bp,86.5bp) ellipse (11.0bp and 11.0bp);
  76. \draw (242.0bp,86.5bp) node {$\bot$};
  77. \end{scope}
  78. % Node: 6
  79. \begin{scope}
  80. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  81. \pgfsetstrokecolor{strokecol}
  82. \draw (183.0bp,67.5bp) ellipse (11.0bp and 11.0bp);
  83. \draw (183.0bp,67.5bp) node {$d$};
  84. \end{scope}
  85. %
  86. \end{tikzpicture}
  87. }
  88. \begin{prooftree}
  89. \AxiomC{$7. \; \lnot c \lor d$}
  90. \AxiomC{$1. \; a \lor b \lor c$}
  91. \BinaryInfC{$d \lor a \lor b$}
  92. \AxiomC{$6. \; b \lor \lnot d$}
  93. \BinaryInfC{$a \lor b$}
  94. \end{prooftree}
  95. \hspace{-0.09cm}\scalebox{0.85}{
  96. \begin{dplltabular}{5}
  97. \dpllStep{6|7|8|9|10}
  98. \dpllDecL{1|1|1|2|2}
  99. \dpllAssi{$\lnot a$|$\lnot a, b$|$\lnot a, b, d$|\makecell{$\lnot a, b, d, $ \\ $\lnot c$}|\makecell{$\lnot a, b, d, $ \\ $\lnot c, \lnot e$}}
  100. \dpllClause{1}{$a, b, c$}{$b, c$|\done|\done|\done|\done}
  101. \dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{\done|\done|\done|\done|\done}
  102. \dpllClause{3}{$a, c, \lnot e$}{$c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$|\done}
  103. \dpllClause{4}{$\lnot b, \lnot c, e$}{$\lnot b, \lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
  104. \dpllClause{5}{$b, e$}{$b, e$|\done|\done|\done|\done}
  105. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|\done|\done|\done|\done}
  106. \dpllClause{7}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|\done|\done|\done}
  107. \dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
  108. \dpllClause{9}{$a, b$}{$b$|\done|\done|\done|\done}
  109. \dpllBCP{$b$| - | - |$\lnot e$| - }
  110. \dpllPL{ - |$d$| - | - | - }
  111. \dpllDeci{ - | - |$\lnot c$| - |SAT}
  112. \end{dplltabular}
  113. }