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.3 KiB

\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{5}
\dpllStep{1|2|3|4|5}
\dpllDecL{0|1|1|1|1}
\dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $\lnot d$}}
\dpllClause{1}{$a, b$}{$a, b$|$b$|\done|\done|\done}
\dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done}
\dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|$\lnot d$|$\lnot d$|$\lnot d$|\done}
\dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done}
\dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\conflict}
\dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$}
\dpllClause{7}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|$\lnot e$}
\dpllBCP{ - |$b$|$c$|$\lnot d$| - }
\dpllPL{ - | - | - | - | - }
\dpllDeci{$\lnot a$| - | - | - | - }
\end{dplltabular}
}
Conflict in step 5\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 1 -> 3
\draw [->] (21.966bp,32.873bp) .. controls (35.227bp,36.03bp) and (58.98bp,41.686bp) .. (86.047bp,48.13bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (54.0bp,50.0bp) node {$$1$$};
% Edge: 1 -> 4
\draw [->] (21.066bp,25.696bp) .. controls (26.421bp,23.094bp) and (33.421bp,20.094bp) .. (40.0bp,18.5bp) .. controls (66.721bp,12.025bp) and (98.595bp,10.902bp) .. (129.0bp,11.119bp);
\draw (54.0bp,26.0bp) node {$$3$$};
% Edge: 3 -> 5
\draw [->] (108.3bp,50.5bp) .. controls (121.47bp,50.5bp) and (144.58bp,50.5bp) .. (171.88bp,50.5bp);
\draw (140.0bp,58.0bp) node {$$4$$};
% Edge: 4 -> 2
\draw [->] (151.0bp,12.145bp) .. controls (180.46bp,14.046bp) and (267.31bp,19.649bp) .. (316.95bp,22.852bp);
% Edge: 5 -> 6
\draw [->] (194.3bp,50.5bp) .. controls (207.47bp,50.5bp) and (230.58bp,50.5bp) .. (257.88bp,50.5bp);
\draw (226.0bp,58.0bp) node {$$5$$};
% Edge: 6 -> 2
\draw [->] (279.16bp,46.162bp) .. controls (287.01bp,42.445bp) and (298.56bp,36.972bp) .. (317.68bp,27.917bp);
% Node: 1
\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 (97.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
\draw (97.0bp,50.5bp) node {$b$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (140.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
\draw (140.0bp,11.5bp) node {$\lnot d$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (328.0bp,23.5bp) ellipse (11.0bp and 11.0bp);
\draw (328.0bp,23.5bp) node {$\bot$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (183.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
\draw (183.0bp,50.5bp) node {$c$};
\end{scope}
% Node: 6
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
\draw (269.0bp,50.5bp) node {$d$};
\end{scope}
%
\end{tikzpicture}
}
\begin{prooftree}
\AxiomC{$5. \; \lnot c \lor d$}
\AxiomC{$4. \; \lnot b \lor c$}
\BinaryInfC{$d \lor \lnot b$}
\AxiomC{$1. \; a \lor b$}
\BinaryInfC{$d \lor a$}
\AxiomC{$3. \; a \lor \lnot d$}
\BinaryInfC{$a$}
\end{prooftree}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{5}
\dpllStep{6|7|8|9|10}
\dpllDecL{0|0|0|0|0}
\dpllAssi{ - |$a$|$a, c$|$a, c, d$|\makecell{$a, c, d, $ \\ $e$}}
\dpllClause{1}{$a, b$}{$a, b$|\done|\done|\done|\done}
\dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done}
\dpllClause{3}{$a, \lnot d$}{$a, \lnot d$|\done|\done|\done|\done}
\dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done}
\dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
\dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$e$|$e$|\done}
\dpllClause{7}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|$d, \lnot e$|\done|\done}
\dpllClause{8}{$a$}{$a$|\done|\done|\done|\done}
\dpllBCP{$a$|$c$|$d$|$e$| - }
\dpllPL{ - | - | - | - | - }
\dpllDeci{ - | - | - | - |SAT}
\end{dplltabular}
}