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.

104 lines
3.2 KiB

9 months ago
  1. \begin{conflictgraph}
  2. \node[base node] (notA) {$\lnot a$};
  3. \node[base node] (B) [right of=notA] {$b$};
  4. \node[base node] (C) [right of=B] {$c$};
  5. \node[base node] (D) [below right of=C] {$d$};
  6. \node[base node] (E) [right of=C] {$e$};
  7. \node[base node] (notE) [right of=D] {$\lnot e$};
  8. \node[base node] (bot) [above right of=notE] {$\bot$};
  9. \path[]
  10. (notA) edge [] node {$7$} (B)
  11. (B) edge [] node {$3$} (C)
  12. (C) edge [] node {$4$} (D)
  13. (C) edge [] node {$5$} (E)
  14. (D) edge [] node {$6$} (notE)
  15. (notE) edge [] node {} (bot)
  16. (E) edge [] node {} (bot);
  17. \end{conflictgraph}
  18. \begin{prooftree}
  19. \AxiomC{$6. \; \lnot d \lor \lnot e$}
  20. \AxiomC{$4. \; \lnot c \lor d$}
  21. \BinaryInfC{$\lnot e \lor \lnot c$}
  22. \AxiomC{$5. \; \lnot c \lor e$}
  23. \BinaryInfC{$\lnot c$}
  24. \AxiomC{$3. \; \lnot b \lor c$}
  25. \BinaryInfC{$\lnot b$}
  26. \AxiomC{$7. \; a \lor b$}
  27. \BinaryInfC{$a$}
  28. \end{prooftree}
  29. \begin{dplltabular}{9}
  30. \dpllStep{(1)|11|12|13|14|15}
  31. \dpllDecL{0 |0 |0 |0 |0 |0}
  32. \dpllAssi{-|
  33. $a$|
  34. $a, b$|
  35. $a, b, c$|
  36. $a, b, c, d$|
  37. $a, b, c, d, \lnot e$}
  38. \dpllClause{1}{$a,b,c$}
  39. {$a,b,c$|\done|\done|\done|\done|\done}
  40. \dpllClause{2}{$\lnot a,b$}
  41. {$\lnot a, b$|$b$|\done|\done|\done|\done}
  42. \dpllClause{3}{$\lnot b, c$}
  43. {$\lnot b, c$|$\lnot b,c$|$c$|\done|\done|\done}
  44. \dpllClause{4}{$\lnot c,d$}
  45. {$\lnot c,d$|$\lnot c,d$|$\lnot c,d$|$d$|\done|\done}
  46. \dpllClause{5}{$\lnot c,e$}
  47. {$\lnot c,e$|$\lnot c,e$|$\lnot c,e$|$e$|$e$|\conflict}
  48. \dpllClause{6}{$\lnot d, \lnot e$}
  49. {$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|$\lnot e$|\done}
  50. \dpllClause{7}{$a, b$}
  51. {$a,b$|\done|\done|\done|\done|\done}
  52. \dpllClause{8}{$a$}
  53. {$a$|\done|\done|\done|\done|\done}
  54. \dpllBCP {$a$|$b$|$c$|$d$|$\lnot e$|-}
  55. \dpllPL {-|-|-|-|-|-}
  56. \dpllDeci{-|-|-|-|-|UNSAT}
  57. \end{dplltabular}
  58. \begin{conflictgraph}
  59. \node (0){};
  60. \node[base node] (A) [right of=0] {$a$};
  61. \node[base node] (B) [right of=A] {$b$};
  62. \node[base node] (C) [right of=B] {$c$};
  63. \node[base node] (D) [below right of=C] {$d$};
  64. \node[base node] (E) [right of=C] {$e$};
  65. \node[base node] (notE) [right of=D] {$\lnot e$};
  66. \node[base node] (bot) [above right of=notE] {$\bot$};
  67. \path[]
  68. (0) edge [] node {8} (A)
  69. (A) edge [] node {2} (B)
  70. (B) edge [] node {3} (C)
  71. (C) edge [] node {4} (D)
  72. (C) edge [] node {5} (E)
  73. (D) edge [] node {6} (notE)
  74. (notE) edge [] node {} (bot)
  75. (E) edge [] node {} (bot);
  76. \end{conflictgraph}
  77. \begin{prooftree}
  78. \AxiomC{$6. \; \lnot d \lor \lnot e$}
  79. \AxiomC{$4. \; \lnot c \lor d$}
  80. \BinaryInfC{$\lnot e \lor \lnot c$}
  81. \AxiomC{$5. \; \lnot c \lor e$}
  82. \BinaryInfC{$\lnot c$}
  83. \AxiomC{$3. \; \lnot b \lor c$}
  84. \BinaryInfC{$\lnot b$}
  85. \AxiomC{$2. \; \lnot a \lor b$}
  86. \BinaryInfC{$\lnot a$}
  87. \AxiomC{$8. \; a$}
  88. \BinaryInfC{$\bot$}
  89. \end{prooftree}