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.

52 lines
2.0 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{3}
  3. \dpllStep{1|2|3}
  4. \dpllDecL{0|1|2}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$}
  6. \dpllClause{1}{$a, b$}{$a, b$|$b$|\conflict}
  7. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done}
  8. \dpllClause{3}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot b, \lnot c$|\done}
  9. \dpllClause{4}{$c, d$}{$c, d$|$c, d$|$c, d$}
  10. \dpllClause{5}{$\lnot d, \lnot a$}{$\lnot d, \lnot a$|\done|\done}
  11. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|$b, \lnot d$|$\lnot d$}
  12. \dpllClause{7}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$}
  13. \dpllBCP{ - | - | - }
  14. \dpllPL{ - | - | - }
  15. \dpllDeci{$\lnot a$|$\lnot b$| - }
  16. \end{dplltabular}
  17. }
  18. \hspace{-0.09cm}\scalebox{0.85}{
  19. \begin{dplltabular}{4}
  20. \dpllStep{4|5|6|7}
  21. \dpllDecL{1|2|3|4}
  22. \dpllAssi{$\lnot a$|$\lnot a, b$|$\lnot a, b, \lnot c$|\makecell{$\lnot a, b, \lnot c, $ \\ $\lnot d$}}
  23. \dpllClause{1}{$a, b$}{$b$|\done|\done|\done}
  24. \dpllClause{2}{$\lnot a, c$}{\done|\done|\done|\done}
  25. \dpllClause{3}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot c$|\done|\done}
  26. \dpllClause{4}{$c, d$}{$c, d$|$c, d$|$d$|\conflict}
  27. \dpllClause{5}{$\lnot d, \lnot a$}{\done|\done|\done|\done}
  28. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|\done|\done|\done}
  29. \dpllClause{7}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|\done|\done}
  30. \dpllBCP{ - | - | - | - }
  31. \dpllPL{ - | - | - | - }
  32. \dpllDeci{$b$|$\lnot c$|$\lnot d$| - }
  33. \end{dplltabular}
  34. }
  35. \hspace{-0.09cm}\scalebox{0.85}{
  36. \begin{dplltabular}{2}
  37. \dpllStep{8|9}
  38. \dpllDecL{3|4}
  39. \dpllAssi{$\lnot a, b, \lnot c$|\makecell{$\lnot a, b, \lnot c, $ \\ $d$}}
  40. \dpllClause{1}{$a, b$}{\done|\done}
  41. \dpllClause{2}{$\lnot a, c$}{\done|\done}
  42. \dpllClause{3}{$\lnot b, \lnot c$}{\done|\done}
  43. \dpllClause{4}{$c, d$}{$d$|\done}
  44. \dpllClause{5}{$\lnot d, \lnot a$}{\done|\done}
  45. \dpllClause{6}{$b, \lnot d$}{\done|\done}
  46. \dpllClause{7}{$\lnot c, \lnot d$}{\done|\done}
  47. \dpllBCP{ - | - }
  48. \dpllPL{ - | - }
  49. \dpllDeci{$d$|SAT}
  50. \end{dplltabular}
  51. }