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.
 
 

108 lines
4.0 KiB

\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{4}
\dpllStep{1|2|3|4}
\dpllDecL{0|1|1|1}
\dpllAssi{ - |$\lnot w$|$\lnot w, \lnot x$|$\lnot w, \lnot x, \lnot y$}
\dpllClause{1}{$x, y, w$}{$x, y, w$|$x, y$|$y$|\conflict}
\dpllClause{2}{$\lnot x, z, \lnot w$}{$\lnot x, z, \lnot w$|\done|\done|\done}
\dpllClause{3}{$\lnot y, w$}{$\lnot y, w$|$\lnot y$|$\lnot y$|\done}
\dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|\done|\done|\done}
\dpllClause{5}{$\lnot y, z$}{$\lnot y, z$|$\lnot y, z$|$\lnot y, z$|\done}
\dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|$\lnot x$|\done|\done}
\dpllBCP{ - |$\lnot x$|$\lnot y$| - }
\dpllPL{ - | - | - | - }
\dpllDeci{$\lnot w$| - | - | - }
\end{dplltabular}
}
Conflict in step 4\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 1 -> 3
\draw [->] (22.223bp,55.0bp) .. controls (50.414bp,55.0bp) and (129.66bp,55.0bp) .. (177.75bp,55.0bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (100.0bp,62.5bp) node {$$1$$};
% Edge: 1 -> 4
\draw [->] (18.027bp,46.114bp) .. controls (23.074bp,39.428bp) and (30.901bp,30.65bp) .. (40.0bp,26.0bp) .. controls (66.949bp,12.229bp) and (102.57bp,9.9572bp) .. (134.8bp,10.34bp);
\draw (54.0bp,33.5bp) node {$$3$$};
% Edge: 1 -> 5
\draw [->] (21.311bp,59.709bp) .. controls (35.439bp,66.854bp) and (62.567bp,80.574bp) .. (89.756bp,94.325bp);
\draw (54.0bp,90.5bp) node {$$6$$};
% Edge: 3 -> 2
\draw [->] (199.16bp,50.341bp) .. controls (207.09bp,46.306bp) and (218.8bp,40.346bp) .. (237.68bp,30.744bp);
% Edge: 4 -> 2
\draw [->] (156.95bp,12.493bp) .. controls (173.2bp,14.93bp) and (205.73bp,19.81bp) .. (237.09bp,24.513bp);
% Edge: 5 -> 3
\draw [->] (110.31bp,94.291bp) .. controls (124.44bp,87.146bp) and (151.57bp,73.426bp) .. (178.76bp,59.675bp);
\draw (146.0bp,90.5bp) node {$$1$$};
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (11.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
\draw (11.0bp,55.0bp) node {$\lnot w$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (189.0bp,55.0bp) ellipse (11.0bp and 11.0bp);
\draw (189.0bp,55.0bp) node {$y$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (146.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
\draw (146.0bp,11.0bp) node {$\lnot y$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (100.0bp,99.0bp) ellipse (11.0bp and 11.0bp);
\draw (100.0bp,99.0bp) node {$\lnot x$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (248.0bp,26.0bp) ellipse (11.0bp and 11.0bp);
\draw (248.0bp,26.0bp) node {$\bot$};
\end{scope}
%
\end{tikzpicture}
}
\begin{prooftree}
\AxiomC{$1. \; x \lor y \lor w$}
\AxiomC{$3. \; \lnot y \lor w$}
\BinaryInfC{$x \lor w$}
\AxiomC{$6. \; \lnot x \lor w$}
\BinaryInfC{$w$}
\end{prooftree}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{5}
\dpllStep{5|6|7|8|9}
\dpllDecL{0|0|0|0|0}
\dpllAssi{ - |$w$|$w, \lnot z$|$w, \lnot z, \lnot x$|\makecell{$w, \lnot z, \lnot x, $ \\ $\lnot y$}}
\dpllClause{1}{$x, y, w$}{$x, y, w$|\done|\done|\done|\done}
\dpllClause{2}{$\lnot x, z, \lnot w$}{$\lnot x, z, \lnot w$|$\lnot x, z$|$\lnot x$|\done|\done}
\dpllClause{3}{$\lnot y, w$}{$\lnot y, w$|\done|\done|\done|\done}
\dpllClause{4}{$\lnot z, \lnot w$}{$\lnot z, \lnot w$|$\lnot z$|\done|\done|\done}
\dpllClause{5}{$\lnot y, z$}{$\lnot y, z$|$\lnot y, z$|$\lnot y$|$\lnot y$|\done}
\dpllClause{6}{$\lnot x, w$}{$\lnot x, w$|\done|\done|\done|\done}
\dpllClause{7}{$w$}{$w$|\done|\done|\done|\done}
\dpllBCP{$w$|$\lnot z$|$\lnot x$|$\lnot y$| - }
\dpllPL{ - | - | - | - | - }
\dpllDeci{ - | - | - | - |SAT}
\end{dplltabular}
}