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.

110 lines
4.2 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{12|13|14|15|16}
  4. \dpllDecL{0|0|0|0|0}
  5. \dpllAssi{ - |$a$|$a, \lnot e$|$a, \lnot e, b$|\makecell{$a, \lnot e, b, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d$|$d$|\conflict}
  7. \dpllClause{2}{$b, e$}{$b, e$|$b, e$|$b$|\done|\done}
  8. \dpllClause{3}{$c, d$}{$c, d$|$c, d$|$c, d$|$c, d$|$c$}
  9. \dpllClause{4}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot e$|\done|\done|\done}
  10. \dpllClause{5}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|\done|\done|\done|\done}
  11. \dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|\done}
  12. \dpllClause{7}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot d$|\done}
  13. \dpllClause{8}{$a, b$}{$a, b$|\done|\done|\done|\done}
  14. \dpllClause{9}{$a$}{$a$|\done|\done|\done|\done}
  15. \dpllBCP{$a$|$\lnot e$|$b$|$\lnot d$| - }
  16. \dpllPL{ - | - | - | - | - }
  17. \dpllDeci{ - | - | - | - |UNSAT}
  18. \end{dplltabular}
  19. }
  20. Conflict in step 16\\
  21. \scalebox{0.75}{
  22. \begin{tikzpicture}[>=latex,line join=bevel,]
  23. \pgfsetlinewidth{1bp}
  24. %%
  25. \pgfsetcolor{black}
  26. % Edge: 0 -> 6
  27. \draw [->] (1.0536bp,56.0bp) .. controls (2.5071bp,56.0bp) and (33.188bp,56.0bp) .. (64.696bp,56.0bp);
  28. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  29. \pgfsetstrokecolor{strokecol}
  30. \draw (33.0bp,63.5bp) node {$$9$$};
  31. % Edge: 2 -> 1
  32. \draw [->] (350.67bp,47.438bp) .. controls (358.41bp,44.585bp) and (369.51bp,40.495bp) .. (388.47bp,33.51bp);
  33. % Edge: 3 -> 2
  34. \draw [->] (261.98bp,34.18bp) .. controls (275.88bp,37.215bp) and (301.36bp,42.779bp) .. (329.14bp,48.846bp);
  35. \draw (297.0bp,51.5bp) node {$$1$$};
  36. % Edge: 3 -> 5
  37. \draw [->] (261.33bp,27.798bp) .. controls (267.39bp,25.214bp) and (275.54bp,22.021bp) .. (283.0bp,20.0bp) .. controls (294.71bp,16.83bp) and (308.12bp,14.627bp) .. (328.95bp,11.971bp);
  38. \draw (297.0bp,27.5bp) node {$$7$$};
  39. % Edge: 4 -> 2
  40. \draw [->] (172.41bp,59.835bp) .. controls (177.76bp,61.808bp) and (184.64bp,64.004bp) .. (191.0bp,65.0bp) .. controls (214.93bp,68.751bp) and (267.64bp,72.391bp) .. (311.0bp,63.0bp) .. controls (314.2bp,62.306bp) and (317.5bp,61.244bp) .. (329.96bp,55.925bp);
  41. \draw (251.0bp,75.5bp) node {$$1$$};
  42. % Edge: 4 -> 3
  43. \draw [->] (172.98bp,53.247bp) .. controls (186.94bp,49.395bp) and (212.6bp,42.318bp) .. (240.14bp,34.721bp);
  44. \draw (205.0bp,55.5bp) node {$$2$$};
  45. % Edge: 5 -> 1
  46. \draw [->] (350.67bp,14.223bp) .. controls (358.24bp,16.746bp) and (369.02bp,20.339bp) .. (388.09bp,26.697bp);
  47. % Edge: 6 -> 4
  48. \draw [->] (87.3bp,56.0bp) .. controls (100.47bp,56.0bp) and (123.58bp,56.0bp) .. (150.88bp,56.0bp);
  49. \draw (119.0bp,63.5bp) node {$$4$$};
  50. % Node: 6
  51. \begin{scope}
  52. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  53. \pgfsetstrokecolor{strokecol}
  54. \draw (76.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  55. \draw (76.0bp,56.0bp) node {$a$};
  56. \end{scope}
  57. % Node: 1
  58. \begin{scope}
  59. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  60. \pgfsetstrokecolor{strokecol}
  61. \draw (399.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  62. \draw (399.0bp,30.0bp) node {$\bot$};
  63. \end{scope}
  64. % Node: 2
  65. \begin{scope}
  66. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  67. \pgfsetstrokecolor{strokecol}
  68. \draw (340.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  69. \draw (340.0bp,51.0bp) node {$d$};
  70. \end{scope}
  71. % Node: 3
  72. \begin{scope}
  73. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  74. \pgfsetstrokecolor{strokecol}
  75. \draw (251.0bp,32.0bp) ellipse (11.0bp and 11.0bp);
  76. \draw (251.0bp,32.0bp) node {$b$};
  77. \end{scope}
  78. % Node: 5
  79. \begin{scope}
  80. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  81. \pgfsetstrokecolor{strokecol}
  82. \draw (340.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  83. \draw (340.0bp,11.0bp) node {$\lnot d$};
  84. \end{scope}
  85. % Node: 4
  86. \begin{scope}
  87. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  88. \pgfsetstrokecolor{strokecol}
  89. \draw (162.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
  90. \draw (162.0bp,56.0bp) node {$\lnot e$};
  91. \end{scope}
  92. %
  93. \end{tikzpicture}
  94. }
  95. \begin{prooftree}
  96. \AxiomC{$1. \; \lnot b \lor d \lor e$}
  97. \AxiomC{$7. \; \lnot b \lor \lnot d$}
  98. \BinaryInfC{$\lnot b \lor e$}
  99. \AxiomC{$2. \; b \lor e$}
  100. \BinaryInfC{$e$}
  101. \AxiomC{$4. \; \lnot a \lor \lnot e$}
  102. \BinaryInfC{$\lnot a$}
  103. \AxiomC{$9. \; a$}
  104. \BinaryInfC{$\bot$}
  105. \end{prooftree}