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.
 
 

211 lines
7.9 KiB

\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{6}
\dpllStep{1|2|3|4|5|6}
\dpllDecL{0|1|1|1|1|1}
\dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $\lnot d$}|\makecell{$\lnot a, b, c, $ \\ $\lnot d, \lnot e$}}
\dpllClause{1}{$b, d$}{$b, d$|$b, d$|\done|\done|\done|\done}
\dpllClause{2}{$b, c$}{$b, c$|$b, c$|\done|\done|\done|\done}
\dpllClause{3}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot e$|$\lnot e$|$\lnot e$|\done}
\dpllClause{4}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|\done|\done|\done|\done|\done}
\dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot d$|\done|\done}
\dpllClause{6}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done|\done}
\dpllClause{7}{$a, b$}{$a, b$|$b$|\done|\done|\done|\done}
\dpllClause{8}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$d, e$|$d, e$|$e$|\conflict}
\dpllBCP{ - |$b$|$c$|$\lnot d$|$\lnot e$| - }
\dpllPL{ - | - | - | - | - | - }
\dpllDeci{$\lnot a$| - | - | - | - | - }
\end{dplltabular}
}
Conflict in step 6\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 1 -> 6
\draw [->] (22.3bp,30.5bp) .. controls (35.47bp,30.5bp) and (58.583bp,30.5bp) .. (85.878bp,30.5bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (54.0bp,38.0bp) node {$$7$$};
% Edge: 3 -> 2
\draw [->] (237.0bp,68.631bp) .. controls (261.99bp,66.427bp) and (329.17bp,60.312bp) .. (385.0bp,53.5bp) .. controls (387.51bp,53.194bp) and (390.14bp,52.849bp) .. (402.9bp,51.044bp);
% Edge: 4 -> 7
\draw [->] (280.3bp,30.5bp) .. controls (293.47bp,30.5bp) and (316.58bp,30.5bp) .. (343.88bp,30.5bp);
\draw (312.0bp,38.0bp) node {$$8$$};
% Edge: 5 -> 4
\draw [->] (194.3bp,30.5bp) .. controls (207.47bp,30.5bp) and (230.58bp,30.5bp) .. (257.88bp,30.5bp);
\draw (226.0bp,38.0bp) node {$$5$$};
% Edge: 6 -> 3
\draw [->] (106.44bp,36.631bp) .. controls (111.81bp,40.268bp) and (119.03bp,44.701bp) .. (126.0bp,47.5bp) .. controls (152.19bp,58.026bp) and (184.4bp,63.996bp) .. (214.84bp,68.355bp);
\draw (140.0bp,63.0bp) node {$$3$$};
% Edge: 6 -> 5
\draw [->] (108.3bp,30.5bp) .. controls (121.47bp,30.5bp) and (144.58bp,30.5bp) .. (171.88bp,30.5bp);
\draw (140.0bp,38.0bp) node {$$6$$};
% Edge: 6 -> 7
\draw [->] (107.88bp,26.93bp) .. controls (121.91bp,22.069bp) and (148.52bp,13.617bp) .. (172.0bp,10.5bp) .. controls (219.58bp,4.1832bp) and (232.42bp,4.1832bp) .. (280.0bp,10.5bp) .. controls (298.9bp,13.009bp) and (319.81bp,18.971bp) .. (344.12bp,26.93bp);
\draw (226.0bp,14.0bp) node {$$8$$};
% Edge: 7 -> 2
\draw [->] (365.67bp,33.723bp) .. controls (373.24bp,36.246bp) and (384.02bp,39.839bp) .. (403.09bp,46.197bp);
% 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: 6
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (97.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
\draw (97.0bp,30.5bp) node {$b$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (414.0bp,49.5bp) ellipse (11.0bp and 11.0bp);
\draw (414.0bp,49.5bp) node {$\bot$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (226.0bp,69.5bp) ellipse (11.0bp and 11.0bp);
\draw (226.0bp,69.5bp) node {$\lnot e$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (269.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
\draw (269.0bp,30.5bp) node {$\lnot d$};
\end{scope}
% Node: 7
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (355.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
\draw (355.0bp,30.5bp) node {$e$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (183.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
\draw (183.0bp,30.5bp) node {$c$};
\end{scope}
%
\end{tikzpicture}
}
\begin{prooftree}
\AxiomC{$8. \; \lnot b \lor d \lor e$}
\AxiomC{$5. \; \lnot c \lor \lnot d$}
\BinaryInfC{$\lnot b \lor e \lor \lnot c$}
\AxiomC{$3. \; \lnot b \lor \lnot e$}
\BinaryInfC{$\lnot b \lor \lnot c$}
\AxiomC{$6. \; \lnot b \lor c$}
\BinaryInfC{$\lnot b$}
\AxiomC{$7. \; a \lor b$}
\BinaryInfC{$a$}
\end{prooftree}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{4}
\dpllStep{7|8|9|10}
\dpllDecL{0|0|0|0}
\dpllAssi{ - |$a$|$a, \lnot c$|$a, \lnot c, \lnot b$}
\dpllClause{1}{$b, d$}{$b, d$|$b, d$|$b, d$|$d$}
\dpllClause{2}{$b, c$}{$b, c$|$b, c$|$b$|\conflict}
\dpllClause{3}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot b, \lnot e$|\done}
\dpllClause{4}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|$\lnot c$|\done|\done}
\dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|\done|\done}
\dpllClause{6}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$\lnot b$|\done}
\dpllClause{7}{$a, b$}{$a, b$|\done|\done|\done}
\dpllClause{8}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d, e$|\done}
\dpllClause{9}{$a$}{$a$|\done|\done|\done}
\dpllBCP{$a$|$\lnot c$|$\lnot b$| - }
\dpllPL{ - | - | - | - }
\dpllDeci{ - | - | - |UNSAT}
\end{dplltabular}
}
Conflict in step 10\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 0 -> 5
\draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (33.0bp,38.5bp) node {$$9$$};
% Edge: 2 -> 1
\draw [->] (258.67bp,47.438bp) .. controls (266.41bp,44.585bp) and (277.51bp,40.495bp) .. (296.47bp,33.51bp);
% Edge: 3 -> 2
\draw [->] (172.97bp,33.373bp) .. controls (186.23bp,36.53bp) and (209.98bp,42.186bp) .. (237.05bp,48.63bp);
\draw (205.0bp,50.5bp) node {$$2$$};
% Edge: 3 -> 4
\draw [->] (172.11bp,26.371bp) .. controls (177.48bp,23.828bp) and (184.48bp,20.828bp) .. (191.0bp,19.0bp) .. controls (202.65bp,15.733bp) and (216.06bp,13.758bp) .. (236.92bp,11.639bp);
\draw (205.0bp,26.5bp) node {$$6$$};
% Edge: 4 -> 1
\draw [->] (258.67bp,14.223bp) .. controls (266.24bp,16.746bp) and (277.02bp,20.339bp) .. (296.09bp,26.697bp);
% Edge: 5 -> 3
\draw [->] (87.3bp,31.0bp) .. controls (100.47bp,31.0bp) and (123.58bp,31.0bp) .. (150.88bp,31.0bp);
\draw (119.0bp,38.5bp) node {$$4$$};
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
\draw (76.0bp,31.0bp) node {$a$};
\end{scope}
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (307.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
\draw (307.0bp,30.0bp) node {$\bot$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (248.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
\draw (248.0bp,51.0bp) node {$b$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (162.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
\draw (162.0bp,31.0bp) node {$\lnot c$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (248.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
\draw (248.0bp,11.0bp) node {$\lnot b$};
\end{scope}
%
\end{tikzpicture}
}
\begin{prooftree}
\AxiomC{$2. \; b \lor c$}
\AxiomC{$6. \; \lnot b \lor c$}
\BinaryInfC{$c$}
\AxiomC{$4. \; \lnot a \lor \lnot c$}
\BinaryInfC{$\lnot a$}
\AxiomC{$9. \; a$}
\BinaryInfC{$\bot$}
\end{prooftree}