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.

93 lines
3.2 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{4}
  3. \dpllStep{1|2|3|4}
  4. \dpllDecL{0|0|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, e$}
  6. \dpllClause{1}{$\lnot a, d$}{$\lnot a, d$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot d, c, \lnot a$}{$\lnot d, c, \lnot a$|\done|\done|\done}
  8. \dpllClause{3}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|$e$|\done}
  9. \dpllClause{4}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot e$|\conflict}
  10. \dpllClause{5}{$\lnot b, f$}{$\lnot b, f$|$\lnot b, f$|$f$|$f$}
  11. \dpllClause{6}{$b, \lnot f$}{$b, \lnot f$|$b, \lnot f$|\done|\done}
  12. \dpllBCP{ - | - |$e$| - }
  13. \dpllPL{$\lnot a$| - | - | - }
  14. \dpllDeci{ - |$b$| - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 4\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 3
  24. \draw [->] (21.966bp,33.373bp) .. controls (35.227bp,36.53bp) and (58.98bp,42.186bp) .. (86.047bp,48.63bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,50.5bp) node {$$3$$};
  28. % Edge: 1 -> 4
  29. \draw [->] (21.111bp,26.371bp) .. controls (26.482bp,23.828bp) and (33.482bp,20.828bp) .. (40.0bp,19.0bp) .. controls (51.65bp,15.733bp) and (65.057bp,13.758bp) .. (85.923bp,11.639bp);
  30. \draw (54.0bp,26.5bp) node {$$4$$};
  31. % Edge: 3 -> 2
  32. \draw [->] (107.67bp,47.438bp) .. controls (115.41bp,44.585bp) and (126.51bp,40.495bp) .. (145.47bp,33.51bp);
  33. % Edge: 4 -> 2
  34. \draw [->] (107.67bp,14.223bp) .. controls (115.24bp,16.746bp) and (126.02bp,20.339bp) .. (145.09bp,26.697bp);
  35. % Node: 1
  36. \begin{scope}
  37. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  38. \pgfsetstrokecolor{strokecol}
  39. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  40. \draw (11.0bp,31.0bp) node {$b$};
  41. \end{scope}
  42. % Node: 3
  43. \begin{scope}
  44. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  45. \pgfsetstrokecolor{strokecol}
  46. \draw (97.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  47. \draw (97.0bp,51.0bp) node {$e$};
  48. \end{scope}
  49. % Node: 4
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (97.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  54. \draw (97.0bp,11.0bp) node {$\lnot e$};
  55. \end{scope}
  56. % Node: 2
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (156.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  61. \draw (156.0bp,30.0bp) node {$\bot$};
  62. \end{scope}
  63. %
  64. \end{tikzpicture}
  65. }
  66. \begin{prooftree}
  67. \AxiomC{$3. \; \lnot b \lor e$}
  68. \AxiomC{$4. \; \lnot b \lor \lnot e$}
  69. \BinaryInfC{$\lnot b$}
  70. \end{prooftree}
  71. \hspace{-0.09cm}\scalebox{0.85}{
  72. \begin{dplltabular}{3}
  73. \dpllStep{5|6|7}
  74. \dpllDecL{0|0|0}
  75. \dpllAssi{$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, \lnot f$}
  76. \dpllClause{1}{$\lnot a, d$}{\done|\done|\done}
  77. \dpllClause{2}{$\lnot d, c, \lnot a$}{\done|\done|\done}
  78. \dpllClause{3}{$\lnot b, e$}{$\lnot b, e$|\done|\done}
  79. \dpllClause{4}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|\done|\done}
  80. \dpllClause{5}{$\lnot b, f$}{$\lnot b, f$|\done|\done}
  81. \dpllClause{6}{$b, \lnot f$}{$b, \lnot f$|$\lnot f$|\done}
  82. \dpllClause{7}{$\lnot b$}{$\lnot b$|\done|\done}
  83. \dpllBCP{$\lnot b$|$\lnot f$| - }
  84. \dpllPL{ - | - | - }
  85. \dpllDeci{ - | - |SAT}
  86. \end{dplltabular}
  87. }