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.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, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$a, b$}{$a, b$|$b$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|$\lnot d$|$\lnot d$|$\lnot d$|\done}
  9. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done}
  10. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\conflict}
  11. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$}
  12. \dpllClause{7}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$\lnot e$}
  13. \dpllBCP{ - |$b$|$c$|$\lnot d$| - }
  14. \dpllPL{ - | - | - | - | - }
  15. \dpllDeci{$\lnot a$| - | - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 5\\
  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.966bp,32.873bp) .. controls (35.227bp,36.03bp) and (58.98bp,41.686bp) .. (86.047bp,48.13bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,50.0bp) node {$$1$$};
  29. % Edge: 1 -> 4
  30. \draw [->] (21.066bp,25.696bp) .. controls (26.421bp,23.094bp) and (33.421bp,20.094bp) .. (40.0bp,18.5bp) .. controls (66.721bp,12.025bp) and (98.595bp,10.902bp) .. (129.0bp,11.119bp);
  31. \draw (54.0bp,26.0bp) node {$$3$$};
  32. % Edge: 3 -> 5
  33. \draw [->] (108.3bp,50.5bp) .. controls (121.47bp,50.5bp) and (144.58bp,50.5bp) .. (171.88bp,50.5bp);
  34. \draw (140.0bp,58.0bp) node {$$4$$};
  35. % Edge: 4 -> 2
  36. \draw [->] (151.0bp,12.145bp) .. controls (180.46bp,14.046bp) and (267.31bp,19.649bp) .. (316.95bp,22.852bp);
  37. % Edge: 5 -> 6
  38. \draw [->] (194.3bp,50.5bp) .. controls (207.47bp,50.5bp) and (230.58bp,50.5bp) .. (257.88bp,50.5bp);
  39. \draw (226.0bp,58.0bp) node {$$5$$};
  40. % Edge: 6 -> 2
  41. \draw [->] (279.16bp,46.162bp) .. controls (287.01bp,42.445bp) and (298.56bp,36.972bp) .. (317.68bp,27.917bp);
  42. % Node: 1
  43. \begin{scope}
  44. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  45. \pgfsetstrokecolor{strokecol}
  46. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  47. \draw (11.0bp,30.5bp) node {$\lnot a$};
  48. \end{scope}
  49. % Node: 3
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (97.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  54. \draw (97.0bp,50.5bp) node {$b$};
  55. \end{scope}
  56. % Node: 4
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (140.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
  61. \draw (140.0bp,11.5bp) node {$\lnot d$};
  62. \end{scope}
  63. % Node: 2
  64. \begin{scope}
  65. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  66. \pgfsetstrokecolor{strokecol}
  67. \draw (328.0bp,23.5bp) ellipse (11.0bp and 11.0bp);
  68. \draw (328.0bp,23.5bp) node {$\bot$};
  69. \end{scope}
  70. % Node: 5
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (183.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  75. \draw (183.0bp,50.5bp) node {$c$};
  76. \end{scope}
  77. % Node: 6
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  82. \draw (269.0bp,50.5bp) node {$d$};
  83. \end{scope}
  84. %
  85. \end{tikzpicture}
  86. }
  87. \begin{prooftree}
  88. \AxiomC{$5. \; \lnot c \lor d$}
  89. \AxiomC{$4. \; \lnot b \lor c$}
  90. \BinaryInfC{$d \lor \lnot b$}
  91. \AxiomC{$1. \; a \lor b$}
  92. \BinaryInfC{$d \lor a$}
  93. \AxiomC{$3. \; a \lor \lnot d$}
  94. \BinaryInfC{$a$}
  95. \end{prooftree}
  96. \hspace{-0.09cm}\scalebox{0.85}{
  97. \begin{dplltabular}{5}
  98. \dpllStep{6|7|8|9|10}
  99. \dpllDecL{0|0|0|0|0}
  100. \dpllAssi{ - |$a$|$a, c$|$a, c, d$|\makecell{$a, c, d, $ \\ $e$}}
  101. \dpllClause{1}{$a, b$}{$a, b$|\done|\done|\done|\done}
  102. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done}
  103. \dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|\done|\done|\done|\done}
  104. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done}
  105. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  106. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$e$|$e$|\done}
  107. \dpllClause{7}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|\done|\done}
  108. \dpllClause{8}{$a$}{$a$|\done|\done|\done|\done}
  109. \dpllBCP{$a$|$c$|$d$|$e$| - }
  110. \dpllPL{ - | - | - | - | - }
  111. \dpllDeci{ - | - | - | - |SAT}
  112. \end{dplltabular}
  113. }