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.
119 lines
4.7 KiB
119 lines
4.7 KiB
\hspace{-0.09cm}\scalebox{0.85}{
|
|
\begin{dplltabular}{5}
|
|
\dpllStep{1|2|3|4|5}
|
|
\dpllDecL{0|1|2|2|2}
|
|
\dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, c$|\makecell{$\lnot a, \lnot b, c, $ \\ $\lnot d$}}
|
|
\dpllClause{1}{$a, b, c$}{$a, b, c$|$b, c$|$c$|\done|\done}
|
|
\dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{$\lnot a, \lnot b, \lnot c$|\done|\done|\done|\done}
|
|
\dpllClause{3}{$a, c, \lnot e$}{$a, c, \lnot e$|$c, \lnot e$|$c, \lnot e$|\done|\done}
|
|
\dpllClause{4}{$\lnot b, \lnot c, e$}{$\lnot b, \lnot c, e$|$\lnot b, \lnot c, e$|\done|\done|\done}
|
|
\dpllClause{5}{$b, e$}{$b, e$|$b, e$|$e$|$e$|$e$}
|
|
\dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|$b, \lnot d$|$\lnot d$|$\lnot d$|\done}
|
|
\dpllClause{7}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\conflict}
|
|
\dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$}
|
|
\dpllBCP{ - | - |$c$|$\lnot d$| - }
|
|
\dpllPL{ - | - | - | - | - }
|
|
\dpllDeci{$\lnot a$|$\lnot b$| - | - | - }
|
|
\end{dplltabular}
|
|
}
|
|
|
|
Conflict in step 5\\
|
|
\scalebox{0.75}{
|
|
|
|
\begin{tikzpicture}[>=latex,line join=bevel,]
|
|
\pgfsetlinewidth{1bp}
|
|
%%
|
|
\pgfsetcolor{black}
|
|
% Edge: 1 -> 4
|
|
\draw [->] (19.683bp,81.526bp) .. controls (24.978bp,77.19bp) and (32.406bp,71.982bp) .. (40.0bp,69.5bp) .. controls (51.392bp,65.776bp) and (64.79bp,65.173bp) .. (85.794bp,66.207bp);
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (54.0bp,77.0bp) node {$$1$$};
|
|
% Edge: 1 -> 5
|
|
\draw [->] (21.965bp,89.912bp) .. controls (42.831bp,92.87bp) and (91.46bp,99.762bp) .. (129.08bp,105.09bp);
|
|
\draw (54.0bp,103.0bp) node {$$6$$};
|
|
% Edge: 2 -> 4
|
|
\draw [->] (21.909bp,32.194bp) .. controls (33.423bp,34.415bp) and (52.786bp,38.945bp) .. (68.0bp,46.5bp) .. controls (72.163bp,48.567bp) and (76.339bp,51.274bp) .. (88.19bp,60.406bp);
|
|
\draw (54.0bp,54.0bp) node {$$1$$};
|
|
% Edge: 4 -> 6
|
|
\draw [->] (108.3bp,67.5bp) .. controls (121.47bp,67.5bp) and (144.58bp,67.5bp) .. (171.88bp,67.5bp);
|
|
\draw (140.0bp,75.0bp) node {$$7$$};
|
|
% Edge: 5 -> 3
|
|
\draw [->] (150.95bp,104.51bp) .. controls (167.28bp,101.24bp) and (200.03bp,94.694bp) .. (231.09bp,88.483bp);
|
|
% Edge: 6 -> 3
|
|
\draw [->] (193.67bp,70.723bp) .. controls (201.24bp,73.246bp) and (212.02bp,76.839bp) .. (231.09bp,83.197bp);
|
|
% Node: 1
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (11.0bp,88.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (11.0bp,88.5bp) node {$\lnot b$};
|
|
\end{scope}
|
|
% Node: 4
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (97.0bp,67.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (97.0bp,67.5bp) node {$c$};
|
|
\end{scope}
|
|
% Node: 5
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (140.0bp,106.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (140.0bp,106.5bp) node {$\lnot d$};
|
|
\end{scope}
|
|
% Node: 2
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (11.0bp,30.5bp) node {$\lnot a$};
|
|
\end{scope}
|
|
% Node: 3
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (242.0bp,86.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (242.0bp,86.5bp) node {$\bot$};
|
|
\end{scope}
|
|
% Node: 6
|
|
\begin{scope}
|
|
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
|
|
\pgfsetstrokecolor{strokecol}
|
|
\draw (183.0bp,67.5bp) ellipse (11.0bp and 11.0bp);
|
|
\draw (183.0bp,67.5bp) node {$d$};
|
|
\end{scope}
|
|
%
|
|
\end{tikzpicture}
|
|
|
|
|
|
}
|
|
\begin{prooftree}
|
|
\AxiomC{$7. \; \lnot c \lor d$}
|
|
\AxiomC{$1. \; a \lor b \lor c$}
|
|
\BinaryInfC{$d \lor a \lor b$}
|
|
\AxiomC{$6. \; b \lor \lnot d$}
|
|
\BinaryInfC{$a \lor b$}
|
|
\end{prooftree}
|
|
|
|
\hspace{-0.09cm}\scalebox{0.85}{
|
|
\begin{dplltabular}{5}
|
|
\dpllStep{6|7|8|9|10}
|
|
\dpllDecL{1|1|1|2|2}
|
|
\dpllAssi{$\lnot a$|$\lnot a, b$|$\lnot a, b, d$|\makecell{$\lnot a, b, d, $ \\ $\lnot c$}|\makecell{$\lnot a, b, d, $ \\ $\lnot c, \lnot e$}}
|
|
\dpllClause{1}{$a, b, c$}{$b, c$|\done|\done|\done|\done}
|
|
\dpllClause{2}{$\lnot a, \lnot b, \lnot c$}{\done|\done|\done|\done|\done}
|
|
\dpllClause{3}{$a, c, \lnot e$}{$c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$|\done}
|
|
\dpllClause{4}{$\lnot b, \lnot c, e$}{$\lnot b, \lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
|
|
\dpllClause{5}{$b, e$}{$b, e$|\done|\done|\done|\done}
|
|
\dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|\done|\done|\done|\done}
|
|
\dpllClause{7}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|\done|\done|\done}
|
|
\dpllClause{8}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done}
|
|
\dpllClause{9}{$a, b$}{$b$|\done|\done|\done|\done}
|
|
\dpllBCP{$b$| - | - |$\lnot e$| - }
|
|
\dpllPL{ - |$d$| - | - | - }
|
|
\dpllDeci{ - | - |$\lnot c$| - |SAT}
|
|
\end{dplltabular}
|
|
}
|
|
|