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.
 
 

226 lines
9.0 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, e$|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c$}|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c, \lnot d$}}
\dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c$|\done|\done}
\dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|\done|\done|\done|\done|\done}
\dpllClause{3}{$b, e$}{$b, e$|$b, e$|$e$|\done|\done|\done}
\dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|\done|\done|\done|\done}
\dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|\done|\done|\done|\done}
\dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$\lnot d$|\done}
\dpllClause{7}{$c, d$}{$c, d$|$c, d$|$c, d$|$c, d$|$d$|\conflict}
\dpllBCP{ - | - |$e$|$\lnot c$|$\lnot d$| - }
\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 -> 5
\draw [->] (22.3bp,52.0bp) .. controls (35.47bp,52.0bp) and (58.583bp,52.0bp) .. (85.878bp,52.0bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (54.0bp,59.5bp) node {$$3$$};
% Edge: 2 -> 4
\draw [->] (108.16bp,10.852bp) .. controls (119.58bp,9.9047bp) and (138.53bp,9.3716bp) .. (154.0bp,14.0bp) .. controls (157.82bp,15.143bp) and (161.65bp,16.935bp) .. (173.72bp,24.413bp);
\draw (140.0bp,21.5bp) node {$$1$$};
% Edge: 4 -> 6
\draw [->] (193.97bp,33.373bp) .. controls (207.23bp,36.53bp) and (230.98bp,42.186bp) .. (258.05bp,48.63bp);
\draw (226.0bp,50.5bp) node {$$6$$};
% Edge: 4 -> 7
\draw [->] (193.11bp,26.371bp) .. controls (198.48bp,23.828bp) and (205.48bp,20.828bp) .. (212.0bp,19.0bp) .. controls (223.65bp,15.733bp) and (237.06bp,13.758bp) .. (257.92bp,11.639bp);
\draw (226.0bp,26.5bp) node {$$7$$};
% Edge: 5 -> 4
\draw [->] (107.97bp,49.509bp) .. controls (121.23bp,46.193bp) and (144.98bp,40.255bp) .. (172.05bp,33.488bp);
\draw (140.0bp,51.5bp) node {$$1$$};
% Edge: 6 -> 3
\draw [->] (279.67bp,47.438bp) .. controls (287.41bp,44.585bp) and (298.51bp,40.495bp) .. (317.47bp,33.51bp);
% Edge: 7 -> 3
\draw [->] (279.67bp,14.223bp) .. controls (287.24bp,16.746bp) and (298.02bp,20.339bp) .. (317.09bp,26.697bp);
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (11.0bp,52.0bp) ellipse (11.0bp and 11.0bp);
\draw (11.0bp,52.0bp) node {$\lnot b$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (97.0bp,52.0bp) ellipse (11.0bp and 11.0bp);
\draw (97.0bp,52.0bp) node {$e$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (97.0bp,12.0bp) ellipse (11.0bp and 11.0bp);
\draw (97.0bp,12.0bp) node {$\lnot a$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (183.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
\draw (183.0bp,31.0bp) node {$\lnot c$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (328.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
\draw (328.0bp,30.0bp) node {$\bot$};
\end{scope}
% Node: 6
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (269.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
\draw (269.0bp,51.0bp) node {$\lnot d$};
\end{scope}
% Node: 7
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (269.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
\draw (269.0bp,11.0bp) node {$d$};
\end{scope}
%
\end{tikzpicture}
}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{6}
\dpllStep{7|8|9|10|11|12}
\dpllDecL{0|0|1|1|1|1}
\dpllAssi{ - |$c$|$c, \lnot a$|$c, \lnot a, \lnot e$|\makecell{$c, \lnot a, \lnot e, $ \\ $b$}|\makecell{$c, \lnot a, \lnot e, $ \\ $b, \lnot d$}}
\dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|$a, \lnot e$|$\lnot e$|\done|\done|\done}
\dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot a, \lnot e$|\done|\done|\done|\done}
\dpllClause{3}{$b, e$}{$b, e$|$b, e$|$b, e$|$b$|\done|\done}
\dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d$|$d$|\conflict}
\dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot d$|\done}
\dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|\done|\done|\done|\done|\done}
\dpllClause{7}{$c, d$}{$c, d$|\done|\done|\done|\done|\done}
\dpllClause{8}{$c$}{$c$|\done|\done|\done|\done|\done}
\dpllBCP{$c$| - |$\lnot e$|$b$|$\lnot d$| - }
\dpllPL{ - | - | - | - | - | - }
\dpllDeci{ - |$\lnot a$| - | - | - | - }
\end{dplltabular}
}
Conflict in step 12\\
\scalebox{0.75}{
\begin{tikzpicture}[>=latex,line join=bevel,]
\pgfsetlinewidth{1bp}
%%
\pgfsetcolor{black}
% Edge: 0 -> 7
\draw [->] (1.0536bp,51.0bp) .. controls (2.5071bp,51.0bp) and (33.188bp,51.0bp) .. (64.696bp,51.0bp);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (33.0bp,58.5bp) node {$$8$$};
% Edge: 1 -> 3
\draw [->] (87.161bp,9.8516bp) .. controls (98.575bp,8.9047bp) and (117.53bp,8.3716bp) .. (133.0bp,13.0bp) .. controls (136.82bp,14.143bp) and (140.65bp,15.935bp) .. (152.72bp,23.413bp);
\draw (119.0bp,20.5bp) node {$$1$$};
% Edge: 3 -> 4
\draw [->] (172.64bp,33.103bp) .. controls (186.56bp,37.582bp) and (212.57bp,45.952bp) .. (240.31bp,54.883bp);
\draw (205.0bp,55.5bp) node {$$3$$};
% Edge: 3 -> 5
\draw [->] (172.9bp,27.931bp) .. controls (191.18bp,24.418bp) and (231.45bp,18.119bp) .. (265.0bp,23.0bp) .. controls (284.21bp,25.795bp) and (305.37bp,32.47bp) .. (329.62bp,41.253bp);
\draw (251.0bp,30.5bp) node {$$4$$};
% Edge: 4 -> 5
\draw [->] (261.61bp,54.189bp) .. controls (267.65bp,51.973bp) and (275.66bp,49.357bp) .. (283.0bp,48.0bp) .. controls (294.8bp,45.82bp) and (308.21bp,45.043bp) .. (329.0bp,44.762bp);
\draw (297.0bp,55.5bp) node {$$4$$};
% Edge: 4 -> 6
\draw [->] (261.64bp,60.993bp) .. controls (275.56bp,65.311bp) and (301.57bp,73.383bp) .. (329.31bp,81.994bp);
\draw (297.0bp,83.5bp) node {$$5$$};
% Edge: 5 -> 2
\draw [->] (350.67bp,48.223bp) .. controls (358.24bp,50.746bp) and (369.02bp,54.339bp) .. (388.09bp,60.697bp);
% Edge: 6 -> 2
\draw [->] (350.67bp,81.438bp) .. controls (358.41bp,78.585bp) and (369.51bp,74.495bp) .. (388.47bp,67.51bp);
% Edge: 7 -> 3
\draw [->] (86.966bp,48.509bp) .. controls (100.23bp,45.193bp) and (123.98bp,39.255bp) .. (151.05bp,32.488bp);
\draw (119.0bp,51.5bp) node {$$1$$};
% Node: 7
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (76.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
\draw (76.0bp,51.0bp) node {$c$};
\end{scope}
% Node: 1
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (76.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
\draw (76.0bp,11.0bp) node {$\lnot a$};
\end{scope}
% Node: 3
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (162.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
\draw (162.0bp,30.0bp) node {$\lnot e$};
\end{scope}
% Node: 2
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (399.0bp,64.0bp) ellipse (11.0bp and 11.0bp);
\draw (399.0bp,64.0bp) node {$\bot$};
\end{scope}
% Node: 4
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (251.0bp,58.0bp) ellipse (11.0bp and 11.0bp);
\draw (251.0bp,58.0bp) node {$b$};
\end{scope}
% Node: 5
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (340.0bp,45.0bp) ellipse (11.0bp and 11.0bp);
\draw (340.0bp,45.0bp) node {$d$};
\end{scope}
% Node: 6
\begin{scope}
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (340.0bp,85.0bp) ellipse (11.0bp and 11.0bp);
\draw (340.0bp,85.0bp) node {$\lnot d$};
\end{scope}
%
\end{tikzpicture}
}
\hspace{-0.09cm}\scalebox{0.85}{
\begin{dplltabular}{3}
\dpllStep{13|14|15}
\dpllDecL{0|0|0}
\dpllAssi{$c$|$c, e$|$c, e, \lnot a$}
\dpllClause{1}{$a, \lnot c, \lnot e$}{$a, \lnot e$|$a$|\conflict}
\dpllClause{2}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|$\lnot a$|\done}
\dpllClause{3}{$b, e$}{$b, e$|\done|\done}
\dpllClause{4}{$\lnot b, d, e$}{$\lnot b, d, e$|\done|\done}
\dpllClause{5}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|$\lnot b, \lnot d$}
\dpllClause{6}{$c, \lnot d$}{\done|\done|\done}
\dpllClause{7}{$c, d$}{\done|\done|\done}
\dpllClause{8}{$c$}{\done|\done|\done}
\dpllClause{9}{$e$}{$e$|\done|\done}
\dpllBCP{$e$|$\lnot a$| - }
\dpllPL{ - | - | - }
\dpllDeci{ - | - |UNSAT}
\end{dplltabular}
}