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.

112 lines
4.3 KiB

9 months ago
  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, \lnot c$|\makecell{$\lnot a, \lnot b, \lnot c, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$b, \lnot d, a$}{$b, \lnot d, a$|$b, \lnot d$|$\lnot d$|$\lnot d$|\done}
  7. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot a, b, c$}{$\lnot a, b, c$|\done|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|\done|\done|\done}
  10. \dpllClause{5}{$a, d$}{$a, d$|$d$|$d$|$d$|\conflict}
  11. \dpllClause{6}{$a, \lnot c$}{$a, \lnot c$|$\lnot c$|$\lnot c$|\done|\done}
  12. \dpllClause{7}{$\lnot a, \lnot e, \lnot d$}{$\lnot a, \lnot e, \lnot d$|\done|\done|\done|\done}
  13. \dpllClause{8}{$a, \lnot b$}{$a, \lnot b$|$\lnot b$|\done|\done|\done}
  14. \dpllBCP{ - |$\lnot b$|$\lnot c$|$\lnot d$| - }
  15. \dpllPL{ - | - | - | - | - }
  16. \dpllDeci{$\lnot a$| - | - | - | - }
  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 -> 3
  26. \draw [->] (22.223bp,55.0bp) .. controls (50.414bp,55.0bp) and (129.66bp,55.0bp) .. (177.75bp,55.0bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (100.0bp,62.5bp) node {$$1$$};
  30. % Edge: 1 -> 4
  31. \draw [->] (18.027bp,46.114bp) .. controls (23.074bp,39.428bp) and (30.901bp,30.65bp) .. (40.0bp,26.0bp) .. controls (66.949bp,12.229bp) and (102.57bp,9.9572bp) .. (134.8bp,10.34bp);
  32. \draw (54.0bp,33.5bp) node {$$5$$};
  33. % Edge: 1 -> 5
  34. \draw [->] (21.311bp,59.709bp) .. controls (35.439bp,66.854bp) and (62.567bp,80.574bp) .. (89.756bp,94.325bp);
  35. \draw (54.0bp,90.5bp) node {$$8$$};
  36. % Edge: 3 -> 2
  37. \draw [->] (199.16bp,50.341bp) .. controls (207.09bp,46.306bp) and (218.8bp,40.346bp) .. (237.68bp,30.744bp);
  38. % Edge: 4 -> 2
  39. \draw [->] (156.95bp,12.493bp) .. controls (173.2bp,14.93bp) and (205.73bp,19.81bp) .. (237.09bp,24.513bp);
  40. % Edge: 5 -> 3
  41. \draw [->] (110.31bp,94.291bp) .. controls (124.44bp,87.146bp) and (151.57bp,73.426bp) .. (178.76bp,59.675bp);
  42. \draw (146.0bp,90.5bp) node {$$1$$};
  43. % Node: 1
  44. \begin{scope}
  45. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  46. \pgfsetstrokecolor{strokecol}
  47. \draw (11.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
  48. \draw (11.0bp,55.0bp) node {$\lnot a$};
  49. \end{scope}
  50. % Node: 3
  51. \begin{scope}
  52. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  53. \pgfsetstrokecolor{strokecol}
  54. \draw (189.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
  55. \draw (189.0bp,55.0bp) node {$\lnot d$};
  56. \end{scope}
  57. % Node: 4
  58. \begin{scope}
  59. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  60. \pgfsetstrokecolor{strokecol}
  61. \draw (146.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  62. \draw (146.0bp,11.0bp) node {$d$};
  63. \end{scope}
  64. % Node: 5
  65. \begin{scope}
  66. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  67. \pgfsetstrokecolor{strokecol}
  68. \draw (100.0bp,99.0bp) ellipse (11.0bp and 11.0bp);
  69. \draw (100.0bp,99.0bp) node {$\lnot b$};
  70. \end{scope}
  71. % Node: 2
  72. \begin{scope}
  73. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  74. \pgfsetstrokecolor{strokecol}
  75. \draw (248.0bp,26.0bp) ellipse (11.0bp and 11.0bp);
  76. \draw (248.0bp,26.0bp) node {$\bot$};
  77. \end{scope}
  78. %
  79. \end{tikzpicture}
  80. }
  81. \begin{prooftree}
  82. \AxiomC{$1. \; b \lor \lnot d \lor a$}
  83. \AxiomC{$5. \; a \lor d$}
  84. \BinaryInfC{$b \lor a$}
  85. \AxiomC{$8. \; a \lor \lnot b$}
  86. \BinaryInfC{$a$}
  87. \end{prooftree}
  88. \hspace{-0.09cm}\scalebox{0.85}{
  89. \begin{dplltabular}{5}
  90. \dpllStep{6|7|8|9|10}
  91. \dpllDecL{0|0|0|0|0}
  92. \dpllAssi{ - |$a$|$a, c$|$a, c, \lnot b$|\makecell{$a, c, \lnot b, $ \\ $\lnot d$}}
  93. \dpllClause{1}{$b, \lnot d, a$}{$b, \lnot d, a$|\done|\done|\done|\done}
  94. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done}
  95. \dpllClause{3}{$\lnot a, b, c$}{$\lnot a, b, c$|$b, c$|\done|\done|\done}
  96. \dpllClause{4}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|$\lnot b, e$|\done|\done}
  97. \dpllClause{5}{$a, d$}{$a, d$|\done|\done|\done|\done}
  98. \dpllClause{6}{$a, \lnot c$}{$a, \lnot c$|\done|\done|\done|\done}
  99. \dpllClause{7}{$\lnot a, \lnot e, \lnot d$}{$\lnot a, \lnot e, \lnot d$|$\lnot e, \lnot d$|$\lnot e, \lnot d$|$\lnot e, \lnot d$|\done}
  100. \dpllClause{8}{$a, \lnot b$}{$a, \lnot b$|\done|\done|\done|\done}
  101. \dpllClause{9}{$a$}{$a$|\done|\done|\done|\done}
  102. \dpllBCP{$a$|$c$| - | - | - }
  103. \dpllPL{ - | - |$\lnot b$|$\lnot d$| - }
  104. \dpllDeci{ - | - | - | - |SAT}
  105. \end{dplltabular}
  106. }