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.

76 lines
2.4 KiB

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