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.

35 lines
3.0 KiB

9 months ago
  1. DPLL algorithm:
  2. \scalebox{0.97}{
  3. \setlength\tabcolsep{3pt}
  4. \begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|}
  5. \hline
  6. Step & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\ \hline \hline
  7. Decision Level & 0 & 1 & 2 & 3 & 4 & 5 & 5 & 4 & 3 & 2 \\ \hline
  8. Assignment & - & $a$ & $a,b$ & $a,b,c$ & $a,b,c,d$ & $a,b,c,d,e$ & $a,b,c,d, \lnot e$ & $a,b,c,\lnot d$ & $a,b,\lnot c$ & $a,\lnot b$ \\ \hline
  9. Cl. 1: $\lnot a, b$ & 1 & $b$ & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & $\{\}$ \xmark \\ \hline
  10. Cl. 2: $\lnot b, c$ & 2 & 2 & $c$ & \cmark & \cmark & \cmark & \cmark & \cmark & $\{\}$ \xmark & \cmark \\ \hline
  11. Cl. 3: $\lnot c, d$ & 3 & 3 & 3 & $d$ & \cmark & \cmark & \cmark & $\{\}$ \xmark & \cmark & 3 \\ \hline
  12. Cl. 4: $\lnot d, e$ & 4 & 4 & 4 & 4 & $e$ & \cmark & $\{\}$ \xmark & \cmark & 4 & 4 \\ \hline
  13. Cl. 5: $\lnot e, \lnot a$ & 5 &$\lnot e$&$\lnot e$ & $\lnot e$ & $\lnot e$ & $\{\}$ \xmark & \cmark & $\lnot e$ & $\lnot e$ & $\lnot e$ \\ \hline \hline
  14. Decision &$a$&$b$ & $c$ & $d$ & $e$ & $\lnot e$ & $\lnot d$ & $\lnot c$ & $\lnot b$ & $\lnot a$ \\ \hline
  15. \end{tabular}}
  16. \scalebox{0.97}{
  17. \setlength\tabcolsep{3pt}
  18. \begin{tabular}{|l|c|c|c|c|c|}
  19. \hline
  20. Step & 11 & 12 & 13 & 14 & 15 \\ \hline \hline
  21. Decision Level & 1 & 2 & 3 & 4 & 5 \\ \hline
  22. Assignment & $\lnot a$ & $\lnot a, b$ & $\lnot a, b, c$ & $\lnot a, b, c, d$ & $\lnot a, b, c, d, e$ \\ \hline
  23. Cl. 1: $\lnot a, b$ & \cmark & \cmark & \cmark & \cmark & \cmark \\ \hline
  24. Cl. 2: $\lnot b, c$ & 2 & $c$ & \cmark & \cmark & \cmark \\ \hline
  25. Cl. 3: $\lnot c, d$ & 3 & 3 & $d$ & \cmark & \cmark \\ \hline
  26. Cl. 4: $\lnot d, e$ & 4 & 4 & 4 & $e$ & \cmark \\ \hline
  27. Cl. 5: $\lnot e, \lnot a$ & \cmark & \cmark & \cmark & \cmark & \cmark \\ \hline \hline
  28. Decision & $b$ & $c$ & $d$ & $e$ & SAT \\ \hline
  29. \end{tabular}}
  30. Model:
  31. $a$ = F, $b$ = T, $c$ = T, $d$ = T, $e$ = T