Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PARTIES
publications
Minimal Scheduling
Commits
5629a7ce
Commit
5629a7ce
authored
Jul 21, 2020
by
Jaime Arias
Browse files
add last ADTree model
parent
8db59009
Changes
1
Hide whitespace changes
Inline
Side-by-side
results/last/model/last.tex
0 → 100644
View file @
5629a7ce
\documentclass
[preview]
{
standalone
}
\input
{
../../base.tex
}
\begin{document}
\begin{figure}
\begin{minipage}
[c]
{
0.4
\textwidth
}
%
% ADT
\centering
\scalebox
{
.75
}{
\begin{tikzpicture}
[every node/.style=
{
ultra thick,draw=red,minimum size=6mm
}
]
% Depth 0
\node
[and gate US,point up,logic gate inputs=nn]
(A)
{
\rotatebox
{
-90
}{
\gate
{
A
}}}
;
% Depth 1
\node
[and gate US,point up,logic gate inputs=nn,below = 10mm of A.west, yshift=18mm]
(B)
{
\rotatebox
{
-90
}{
\gate
{
B
}}}
;
\draw
(B.east) -- ([yshift=0.28cm]B.east) -| (A.input 1);
\node
[and gate US,point up,logic gate inputs=ni,below = 10mm of A.west, yshift=-9mm]
(E)
{
\rotatebox
{
-90
}{
\gate
{
E
}}}
;
\draw
(E.east) -- ([yshift=0.28cm]E.east) -| (A.input 2);
% Depth 2
\node
[state, below = 4mm of B.west, xshift=-5mm]
(c)
{
\leaf
{
c
}}
;
\draw
(c.north) -- ([yshift=0.15cm]c.north) -| (B.input 1);
\node
[state, below = 4mm of B.west, xshift=5mm]
(d)
{
\leaf
{
d
}}
;
\draw
(d.north) -- ([yshift=0.15cm]d.north) -| (B.input 2);
\node
[and gate US,point up,logic gate inputs=nn,below = 10mm of E.west, yshift=14mm]
(F)
{
\rotatebox
{
-90
}{
\gate
{
F
}}}
;
\draw
(F.east) -- ([yshift=0.28cm]F.east) -| (E.input 1);
\node
[rectangle, draw=Green, minimum size=8mm, below = 5mm of E.west, xshift=7mm]
(g)
{
\leaf
{
g
}}
;
\draw
(g.north) -- ([yshift=0.28cm]g.north) -| (E.input 2);
% Depth 3
\node
[and gate US,point up,logic gate inputs=ni,below = 10mm of F.west, yshift=14mm]
(H)
{
\rotatebox
{
-90
}{
\gate
{
H
}}}
;
\draw
(H.east) -- ([yshift=0.28cm]H.east) -| (F.input 1);
\node
[and gate US,point up,logic gate inputs=ni,below = 10mm of F.west, yshift=-7mm]
(I)
{
\rotatebox
{
-90
}{
\gate
{
I
}}}
;
\draw
(I.east) -- ([yshift=0.28cm]I.east) -| (F.input 2);
% Depth 4
\node
[state, below = 4mm of H.west, xshift=-5mm]
(j)
{
\leaf
{
j
}}
;
\draw
(j.north) -- ([yshift=0.15cm]j.north) -| (H.input 1);
\node
[rectangle, draw=Green, minimum size=8mm, below = 5mm of H.west, xshift=5mm]
(k)
{
\leaf
{
k
}}
;
\draw
(k.north) -- ([yshift=0.28cm]k.north) -| (H.input 2);
\node
[state, below = 4mm of I.west, xshift=-5mm]
(l)
{
\leaf
{
l
}}
;
\draw
(l.north) -- ([yshift=0.15cm]l.north) -| (I.input 1);
\node
[rectangle, draw=Green, minimum size=8mm, below = 5mm of I.west, xshift=5mm]
(m)
{
\leaf
{
m
}}
;
\draw
(m.north) -- ([yshift=0.28cm]m.north) -| (I.input 2);
\end{tikzpicture}
}
\end{minipage}
\begin{minipage}
[c]
{
0.6
\textwidth
}
%
\centering
% information
\scalebox
{
.75
}{
\parbox
{
\linewidth
}{
%
\begin{tabular}
{
l@
{
~
}
l@
{
~
}
l@
{
~
}}
\bf
Name
&
{
\bf
Cost
}
&
{
\bf
Time
}
\\
\hline
\gate
{
A
}
&
\EUR
{
0
}
&
0 d
\\
\gate
{
B
}
&
\EUR
{
0
}
&
1 d
\\
\gate
{
E
}
&
\EUR
{
0
}
&
0 d
\\
\leaf
{
c
}
&
\EUR
{
0
}
&
1 d
\\
\leaf
{
d
}
&
\EUR
{
0
}
&
3 d
\\
\gate
{
F
}
&
\EUR
{
0
}
&
0 d
\\
\leaf
{
g
}
&
\EUR
{
0
}
&
0 d
\\
\gate
{
H
}
&
\EUR
{
0
}
&
0 d
\\
\gate
{
I
}
&
\EUR
{
0
}
&
0 d
\\
\leaf
{
j
}
&
\EUR
{
0
}
&
1 d
\\
\leaf
{
k
}
&
\EUR
{
0
}
&
0 d
\\
\leaf
{
l
}
&
\EUR
{
0
}
&
1 d
\\
\leaf
{
m
}
&
\EUR
{
0
}
&
0 d
\\
\end{tabular}
}}
\end{minipage}
\end{figure}
\end{document}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment