\begin{cofactors} $f$ \= $= (((q \land \lnot s) \lor (s \land (\lnot r \lor p))) \lor ((p \land q) \land r))$\\ \>$f_{p}$ \= $= (((q \land \lnot s) \lor s) \lor (q \land r))$\\ \>\>$f_{pq}$ \= $= \true$\\ \>\>$f_{p\lnot q}$ \= $= s$\\ \>\>\>$f_{p\lnot qs}$ \= $= \true$\\ \>\>\>$f_{p\lnot q\lnot s}$ \= $= \false$\\ \>$f_{\lnot p}$ \= $= ((q \land \lnot s) \lor (s \land \lnot r))$\\ \>\>$f_{\lnot pq}$ \= $= (\lnot s \lor (s \land \lnot r))$\\ \>\>\>$f_{\lnot pqr}$ \= $= \lnot f_{p\lnot q}$\\ \>\>\>$f_{\lnot pq\lnot r}$ \= $= \true$\\ \>\>$f_{\lnot p\lnot q}$ \= $= (s \land \lnot r)$\\ \>\>\>$f_{\lnot p\lnot qr}$ \= $= \false$\\ \>\>\>$f_{\lnot p\lnot q\lnot r}$ \= $= f_{p\lnot q}$\\ \end{cofactors} The final ROBDD: \begin{center} \scalebox{0.75}{ \begin{tikzpicture}[>=latex,line join=bevel,] \pgfsetlinewidth{1bp} %% \pgfsetcolor{black} % Edge: f_E -> p0 \draw [] (123.5bp,268.99bp) .. controls (123.5bp,258.92bp) and (123.5bp,243.47bp) .. (123.5bp,233.3bp); % Edge: f_p -> q1 \draw [] (174.5bp,210.99bp) .. controls (174.5bp,200.92bp) and (174.5bp,185.47bp) .. (174.5bp,175.3bp); % Edge: f_p!q -> s2 \draw [] (74.288bp,94.988bp) .. controls (76.108bp,84.795bp) and (78.913bp,69.087bp) .. (80.728bp,58.925bp); % Edge: f_!p -> q3 \draw [] (72.5bp,210.99bp) .. controls (72.5bp,200.92bp) and (72.5bp,185.47bp) .. (72.5bp,175.3bp); \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (72.5bp,195.3bp) node {\Large$\bullet$}; % Edge: f_!pq -> r4 \draw [] (123.5bp,152.99bp) .. controls (123.5bp,142.92bp) and (123.5bp,127.47bp) .. (123.5bp,117.3bp); \draw (123.5bp,137.3bp) node {\Large$\bullet$}; % Edge: f_!p!q -> r5 \draw [] (21.5bp,152.99bp) .. controls (21.5bp,142.92bp) and (21.5bp,127.47bp) .. (21.5bp,117.3bp); \draw (21.5bp,137.3bp) node {\Large$\bullet$}; % Edge: p0 -> q3 \draw [] (116.41bp,213.21bp) .. controls (106.66bp,202.51bp) and (89.243bp,183.38bp) .. (79.531bp,172.72bp); \draw (92.998bp,187.51bp) node {\Large$\bullet$}; % Edge: p0 -> q1 \draw [] (130.59bp,213.21bp) .. controls (140.34bp,202.51bp) and (157.76bp,183.38bp) .. (167.47bp,172.72bp); % Edge: q3 -> r5 \draw [] (65.409bp,155.21bp) .. controls (55.665bp,144.51bp) and (38.243bp,125.38bp) .. (28.531bp,114.72bp); \draw (41.998bp,129.51bp) node {\Large$\circ$}; % Edge: q3 -> r4 \draw [] (79.591bp,155.21bp) .. controls (89.335bp,144.51bp) and (106.76bp,125.38bp) .. (116.47bp,114.72bp); % Edge: r5 -> s2 \draw [] (29.226bp,97.908bp) .. controls (40.895bp,87.195bp) and (62.899bp,66.995bp) .. (74.644bp,56.212bp); \draw (59.911bp,69.737bp) node {\Large$\bullet$}; % Edge: r5 -> 4 \draw [] (21.5bp,94.988bp) .. controls (21.5bp,79.384bp) and (21.5bp,50.854bp) .. (21.5bp,49.086bp); % Edge: r4 -> s2 \draw [] (117.45bp,96.737bp) .. controls (109.7bp,86.149bp) and (96.338bp,67.901bp) .. (88.575bp,57.297bp); % Edge: r4 -> 3 \draw [] (123.5bp,94.988bp) .. controls (123.5bp,79.384bp) and (123.5bp,50.854bp) .. (123.5bp,49.086bp); \draw (123.5bp,69.086bp) node {\Large$\bullet$}; % Edge: q1 -> s2 \draw [] (171.65bp,152.93bp) .. controls (167.29bp,138.85bp) and (157.95bp,113.01bp) .. (143.5bp,95.0bp) .. controls (128.72bp,76.585bp) and (105.0bp,61.54bp) .. (91.923bp,54.08bp); \draw (109.2bp,64.149bp) node {\Large$\circ$}; % Edge: q1 -> 0 \draw [] (177.46bp,153.25bp) .. controls (182.18bp,137.7bp) and (190.93bp,108.87bp) .. (191.47bp,107.09bp); % Edge: s2 -> 1 \draw [] (80.281bp,36.791bp) .. controls (77.427bp,23.663bp) and (72.8bp,2.3815bp) .. (72.514bp,1.0642bp); % Edge: s2 -> 2 \draw [] (84.497bp,36.791bp) .. controls (87.066bp,23.663bp) and (91.23bp,2.3815bp) .. (91.487bp,1.0642bp); \draw (87.647bp,20.692bp) node {\Large$\bullet$}; % Node: f_E \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (145.0bp,291.0bp) -- (102.0bp,291.0bp) -- (102.0bp,269.0bp) -- (145.0bp,269.0bp) -- cycle; \draw (123.5bp,280.0bp) node {$f$}; \end{scope} % Node: p0 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (123.5bp,222.0bp) ellipse (11.0bp and 11.0bp); \draw (123.5bp,222.0bp) node {$p$}; \end{scope} % Node: f_p \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (196.0bp,233.0bp) -- (153.0bp,233.0bp) -- (153.0bp,211.0bp) -- (196.0bp,211.0bp) -- cycle; \draw (174.5bp,222.0bp) node {$f_{p}$}; \end{scope} % Node: q1 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (174.5bp,164.0bp) ellipse (11.0bp and 11.0bp); \draw (174.5bp,164.0bp) node {$q$}; \end{scope} % Node: f_p!q \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (94.0bp,117.0bp) -- (51.0bp,117.0bp) -- (51.0bp,95.0bp) -- (94.0bp,95.0bp) -- cycle; \draw (72.5bp,106.0bp) node {$f_{p\lnot q}$}; \end{scope} % Node: s2 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (82.5bp,48.0bp) ellipse (11.0bp and 11.0bp); \draw (82.5bp,48.0bp) node {$s$}; \end{scope} % Node: f_!p \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (94.0bp,233.0bp) -- (51.0bp,233.0bp) -- (51.0bp,211.0bp) -- (94.0bp,211.0bp) -- cycle; \draw (72.5bp,222.0bp) node {$f_{\lnot p}$}; \end{scope} % Node: q3 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (72.5bp,164.0bp) ellipse (11.0bp and 11.0bp); \draw (72.5bp,164.0bp) node {$q$}; \end{scope} % Node: f_!pq \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (145.0bp,175.0bp) -- (102.0bp,175.0bp) -- (102.0bp,153.0bp) -- (145.0bp,153.0bp) -- cycle; \draw (123.5bp,164.0bp) node {$f_{\lnot pq}$}; \end{scope} % Node: r4 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (123.5bp,106.0bp) ellipse (11.0bp and 11.0bp); \draw (123.5bp,106.0bp) node {$r$}; \end{scope} % Node: f_!p!q \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (43.0bp,175.0bp) -- (0.0bp,175.0bp) -- (0.0bp,153.0bp) -- (43.0bp,153.0bp) -- cycle; \draw (21.5bp,164.0bp) node {$f_{\lnot p\lnot q}$}; \end{scope} % Node: r5 \begin{scope} \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (21.5bp,106.0bp) ellipse (11.0bp and 11.0bp); \draw (21.5bp,106.0bp) node {$r$}; \end{scope} % \end{tikzpicture} } \end{center}