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.
 
 

185 lines
7.1 KiB

\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{6}
\dpllStep{1|2|3|4|5|6}
\dpllDecL{0|1|2|2|2|2}
\dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, c$|\makecell{$\lnot a, \lnot b, c, $ \\ $d$}|\makecell{$\lnot a, \lnot b, c, $ \\ $d, \lnot e$}}
\dpllClause{1}{$a, b, c$}{$a, b, c$|$b, c$|$c$|\done|\done|\done}
\dpllClause{2}{$\lnot a, b$}{$\lnot a, b$|\done|\done|\done|\done|\done}
\dpllClause{3}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done|\done}
\dpllClause{4}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
\dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
\dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
\dpllBCP{ - | - |$c$|$d$|$\lnot e$| - }
\dpllPL{ - | - | - | - | - | - }
\dpllDeci{$\lnot a$|$\lnot b$| - | - | - | - }
\end{dplltabular}
}
Conflict in step 6\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 1 -> 4
\draw [->] (21.966bp,68.127bp) .. controls (35.227bp,64.97bp) and (58.98bp,59.314bp) .. (86.047bp,52.87bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (54.0bp,70.0bp) node {$$1$$};
% Edge: 2 -> 4
\draw [->] (22.172bp,29.583bp) .. controls (33.596bp,28.885bp) and (52.558bp,28.73bp) .. (68.0bp,33.5bp) .. controls (71.81bp,34.677bp) and (75.634bp,36.485bp) .. (87.704bp,43.958bp);
\draw (54.0bp,41.0bp) node {$$1$$};
% Edge: 4 -> 5
\draw [->] (107.97bp,52.873bp) .. controls (121.23bp,56.03bp) and (144.98bp,61.686bp) .. (172.05bp,68.13bp);
\draw (140.0bp,70.0bp) node {$$4$$};
% Edge: 4 -> 6
\draw [->] (107.07bp,45.696bp) .. controls (112.42bp,43.094bp) and (119.42bp,40.094bp) .. (126.0bp,38.5bp) .. controls (152.72bp,32.025bp) and (184.6bp,30.902bp) .. (215.0bp,31.119bp);
\draw (140.0bp,46.0bp) node {$$5$$};
% Edge: 5 -> 7
\draw [->] (194.3bp,70.5bp) .. controls (207.47bp,70.5bp) and (230.58bp,70.5bp) .. (257.88bp,70.5bp);
\draw (226.0bp,78.0bp) node {$$6$$};
% Edge: 6 -> 3
\draw [->] (236.95bp,32.694bp) .. controls (253.12bp,34.634bp) and (285.4bp,38.508bp) .. (316.79bp,42.275bp);
% Edge: 7 -> 3
\draw [->] (279.16bp,66.162bp) .. controls (287.01bp,62.445bp) and (298.56bp,56.972bp) .. (317.68bp,47.917bp);
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (11.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
\draw (11.0bp,70.5bp) node {$\lnot b$};
\end{scope}
% Node: 4
\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 {$c$};
\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 (328.0bp,43.5bp) ellipse (11.0bp and 11.0bp);
\draw (328.0bp,43.5bp) node {$\bot$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (183.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
\draw (183.0bp,70.5bp) node {$d$};
\end{scope}
% Node: 6
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (226.0bp,31.5bp) ellipse (11.0bp and 11.0bp);
\draw (226.0bp,31.5bp) node {$e$};
\end{scope}
% Node: 7
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (269.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
\draw (269.0bp,70.5bp) node {$\lnot e$};
\end{scope}
%
\end{tikzpicture}
}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{4}
\dpllStep{7|8|9|10}
\dpllDecL{0|0|0|0}
\dpllAssi{ - |$\lnot c$|$\lnot c, \lnot b$|$\lnot c, \lnot b, \lnot a$}
\dpllClause{1}{$a, b, c$}{$a, b, c$|$a, b$|$a$|\conflict}
\dpllClause{2}{$\lnot a, b$}{$\lnot a, b$|$\lnot a, b$|$\lnot a$|\done}
\dpllClause{3}{$\lnot b, c$}{$\lnot b, c$|$\lnot b$|\done|\done}
\dpllClause{4}{$\lnot c, d$}{$\lnot c, d$|\done|\done|\done}
\dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|\done|\done|\done}
\dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$}
\dpllClause{7}{$\lnot c$}{$\lnot c$|\done|\done|\done}
\dpllBCP{$\lnot c$|$\lnot b$|$\lnot a$| - }
\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,56.0bp) .. controls (2.5071bp,56.0bp) and (33.188bp,56.0bp) .. (64.696bp,56.0bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (33.0bp,63.5bp) node {$$7$$};
% Edge: 2 -> 1
\draw [->] (264.67bp,47.438bp) .. controls (272.41bp,44.585bp) and (283.51bp,40.495bp) .. (302.47bp,33.51bp);
% Edge: 3 -> 1
\draw [->] (264.67bp,14.223bp) .. controls (272.24bp,16.746bp) and (283.02bp,20.339bp) .. (302.09bp,26.697bp);
% Edge: 4 -> 2
\draw [->] (175.98bp,34.18bp) .. controls (189.88bp,37.215bp) and (215.36bp,42.779bp) .. (243.14bp,48.846bp);
\draw (211.0bp,51.5bp) node {$$1$$};
% Edge: 4 -> 3
\draw [->] (175.33bp,27.798bp) .. controls (181.39bp,25.214bp) and (189.54bp,22.021bp) .. (197.0bp,20.0bp) .. controls (208.71bp,16.83bp) and (222.12bp,14.627bp) .. (242.95bp,11.971bp);
\draw (211.0bp,27.5bp) node {$$2$$};
% Edge: 5 -> 2
\draw [->] (86.411bp,59.835bp) .. controls (91.762bp,61.808bp) and (98.644bp,64.004bp) .. (105.0bp,65.0bp) .. controls (128.93bp,68.751bp) and (181.64bp,72.391bp) .. (225.0bp,63.0bp) .. controls (228.2bp,62.306bp) and (231.5bp,61.244bp) .. (243.96bp,55.925bp);
\draw (165.0bp,75.5bp) node {$$1$$};
% Edge: 5 -> 4
\draw [->] (86.98bp,53.247bp) .. controls (100.94bp,49.395bp) and (126.6bp,42.318bp) .. (154.14bp,34.721bp);
\draw (119.0bp,55.5bp) node {$$3$$};
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (76.0bp,56.0bp) ellipse (11.0bp and 11.0bp);
\draw (76.0bp,56.0bp) node {$\lnot c$};
\end{scope}
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (313.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
\draw (313.0bp,30.0bp) node {$\bot$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (254.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
\draw (254.0bp,51.0bp) node {$a$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (254.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
\draw (254.0bp,11.0bp) node {$\lnot a$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (165.0bp,32.0bp) ellipse (11.0bp and 11.0bp);
\draw (165.0bp,32.0bp) node {$\lnot b$};
\end{scope}
%
\end{tikzpicture}
}