More work on two step figure.
parent
afd3f2bff7
commit
f0b7d5d968
|
@ -51,7 +51,7 @@
|
|||
|
||||
\begin{figure}[h!]
|
||||
\centering
|
||||
\resizebox{\textwidth}{!}{%
|
||||
\resizebox{\textwidth}{4.5cm}{%
|
||||
\begin{tikzpicture}
|
||||
%pdb cylinder
|
||||
\node[cylinder, text width=0.28\textwidth, align=center, draw=black, text=blue, cylinder uses custom fill, cylinder body fill=blue!10, aspect=0.12, minimum height=5cm, minimum width=2.5cm, cylinder end fill=blue!50, shape border rotate=90] (cylinder) at (0, 0) {
|
||||
|
@ -73,32 +73,65 @@
|
|||
%& $\cdots$ & $\cdots$ & $\cdots$ & $\cdots$ \\
|
||||
& Chicago & Bremen & $R_c$ & 1.0 \\
|
||||
\end{tabular}};
|
||||
%label below cylinder
|
||||
\node[below=0.2 cm of cylinder]{$\pdb$};
|
||||
%First arrow
|
||||
\node[single arrow, right=0.25 of cylinder, draw=black, fill=black!65, text=white, minimum height=0.75cm, minimum width=0.25cm](arrow1) {\textbf{Step 1}};
|
||||
\node[above=of arrow1](arrow1Label) {$\query(\pdb)$};
|
||||
\node[above=of arrow1](arrow1Label) {$\query$};
|
||||
\usetikzlibrary{arrows.meta}%for the following arrow configurations
|
||||
\draw[line width=0.5mm, dashed, arrows = -{Latex[length=3mm, open]}] (arrow1Label)->(arrow1);
|
||||
%Query output (output of step 1)
|
||||
\node[rectangle, right=0.175 of arrow1, draw=black, text=purple, fill=purple!15, minimum height=4.5cm, minimum width=2cm](rect) {
|
||||
\tabcolsep=0.075cm
|
||||
\begin{tabular}{ >{\footnotesize}c | >{\footnotesize}c >{\footnotesize}c }
|
||||
$\query_1$ & City & $\Phi$\\% & $\expct_{\idb \sim \probDist}[\query(\db)(t)]$ \\ \hline
|
||||
\hline
|
||||
& Buffalo & $L_a R_a$\\% & $0.9$ \\
|
||||
& Chicago & $L_b R_b + L_b R_c$\\% & $0.5 \cdot 1.0 + 0.5 \cdot 1.0 = 1.0$ \\
|
||||
\begin{tabular}{ >{\small}c | >{\small}c >{\small}c >{\centering\arraybackslash\small}m{1.95cm}}
|
||||
$\query$ & City & $\Phi$ & Circuit\\% & $\expct_{\idb \sim \probDist}[\query(\db)(t)]$ \\ \hline
|
||||
\hline \\\\[-3.5\medskipamount]
|
||||
& Buffalo & $L_a R_a$ &\resizebox{!}{10mm}{
|
||||
\begin{tikzpicture}[thick]
|
||||
\node[gen_tree_node](sink) at (0.5, 0.8){$\boldsymbol{\circmult}$};
|
||||
\node[gen_tree_node](source1) at (0, 0){$L_a$};
|
||||
\node[gen_tree_node](source2) at (1, 0){$R_a$};
|
||||
\draw[->](source1)--(sink);
|
||||
\draw[->] (source2)--(sink);
|
||||
\end{tikzpicture}% & $0.5 \cdot 1.0 + 0.5 \cdot 1.0 = 1.0$
|
||||
}\\% & $0.9$ \\
|
||||
& Chicago & $L_b R_b + L_b R_c$&\resizebox{!}{16mm} {
|
||||
\begin{tikzpicture}[thick]
|
||||
\node[gen_tree_node] (a2) at (0, 0){$R_b$};
|
||||
\node[gen_tree_node] (b2) at (1, 0){$L_b$};
|
||||
\node[gen_tree_node] (c2) at (2, 0){$R_c$};
|
||||
%level 1
|
||||
\node[gen_tree_node] (a1) at (0.5, 0.8){$\boldsymbol{\circmult}$};
|
||||
\node[gen_tree_node] (b1) at (1.5, 0.8){$\boldsymbol{\circmult}$};
|
||||
%level 0
|
||||
\node[gen_tree_node] (a0) at (1.0, 1.6){$\boldsymbol{\circplus}$};
|
||||
%edges
|
||||
\draw[->] (a2) -- (a1);
|
||||
\draw[->] (b2) -- (a1);
|
||||
\draw[->] (b2) -- (b1);
|
||||
\draw[->] (c2) -- (b1);
|
||||
\draw[->] (a1) -- (a0);
|
||||
\draw[->] (b1) -- (a0);
|
||||
\end{tikzpicture}
|
||||
}\\
|
||||
\end{tabular}
|
||||
};
|
||||
%label below rectangle
|
||||
\node[below=0.2cm of rect]{$\query(\pdb)$};
|
||||
%Second arrow
|
||||
\node[single arrow, right=0.25 of rect, draw=black, fill=black!65, text=white, minimum height=0.75cm, minimum width=0.25cm](arrow2) {\textbf{Step 2}};
|
||||
%Expectation computation; (output of step 2)
|
||||
\node[rectangle, right=0.25 of arrow2, rounded corners, draw=black, fill=red!20, text=red, minimum height=4.5cm, minimum width=2cm](rrect) {
|
||||
\begin{tabular}{>{\footnotesize}c}
|
||||
$\mathbb{E}[\poly(\vct{X})]$\\
|
||||
\node[rectangle, right=0.25 of arrow2, rounded corners, draw=black, fill=red!15, text=red, minimum height=4.5cm, minimum width=2cm](rrect) {
|
||||
\tabcolsep=0.09cm
|
||||
\begin{tabular}{>{\footnotesize}c | >{\footnotesize}c >{\footnotesize}m{1.95cm}}
|
||||
$\query$ & City & $\mathbb{E}[\poly(\vct{X})]$\\
|
||||
\hline
|
||||
$1.0 \cdot 0.9 = 0.9$\\
|
||||
$0.5 \cdot 1.0 + 0.5 \cdot 1.0 = 1.0$\\
|
||||
& Buffalo & $1.0 \cdot 0.9 = 0.9$\\
|
||||
& Chicago & $(0.5 \cdot 1.0) + $\newline $\hspace{0.2cm}(0.5 \cdot 1.0)$\newline $= 1.0$\\
|
||||
\end{tabular}
|
||||
};
|
||||
%label of rounded rectangle
|
||||
\node[below=0.2cm of rrect]{$\expct\pbox{\poly(\vct{X})}$};
|
||||
\end{tikzpicture}
|
||||
}
|
||||
\caption{Two step model of computation}
|
||||
|
|
|
@ -408,6 +408,7 @@
|
|||
default_node/.style={align=center, inner sep=0pt},
|
||||
pattern_node/.style={fill=gray!50, draw=black, semithick, inner sep=0pt, minimum size = 2pt, circle},
|
||||
tree_node/.style={default_node, draw=black, black, circle, text width=0.5cm, font=\bfseries, minimum size=0.65cm},
|
||||
gen_tree_node/.style={default_node, draw, circle, text width=0.5cm, font=\bfseries, minimum size=0.65cm},
|
||||
highlight_color/.style={black}, wght_color/.style={black},
|
||||
highlight_treenode/.style={tree_node, draw=black, black},
|
||||
edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}
|
||||
|
|
5
main.tex
5
main.tex
|
@ -1,5 +1,10 @@
|
|||
\documentclass[a4paper]{lipics-v2021}
|
||||
|
||||
%cell spacing for figure with circuit representation in table; currently did not work
|
||||
%\usepackage{cellspace}
|
||||
%\setlength\cellspacetoplimit{50pt}
|
||||
%\setlength\cellspacebottomlimit{50pt}
|
||||
|
||||
\usepackage{algpseudocode}
|
||||
\usepackage{algorithm}
|
||||
\usepackage{tikz}
|
||||
|
|
Loading…
Reference in New Issue