latex positioning adjustments
This commit is contained in:
committed by
=Michael Hohn
parent
bd74ed646f
commit
511c544f6e
Binary file not shown.
@@ -1,13 +1,15 @@
|
|||||||
\documentclass[11pt]{article}
|
\documentclass[11pt]{article}
|
||||||
|
|
||||||
% Load the geometry package to set margins
|
% Load the geometry package to set margins
|
||||||
\usepackage[margin=1cm]{geometry}
|
\usepackage[lmargin=2cm,rmargin=2cm,tmargin=1.8cm,bmargin=1.8cm]{geometry}
|
||||||
|
|
||||||
% Load CM Bright for math
|
% Load CM Bright for math
|
||||||
\usepackage{amsmath} % Standard math package
|
\usepackage{amsmath} % Standard math package
|
||||||
\usepackage{amssymb} % Additional math symbols
|
\usepackage{amssymb} % Additional math symbols
|
||||||
\usepackage{cmbright} % Sans-serif math font that complements Fira Sans
|
\usepackage{cmbright} % Sans-serif math font that complements Fira Sans
|
||||||
|
|
||||||
|
\usepackage{fourier}
|
||||||
|
|
||||||
% Font configuration
|
% Font configuration
|
||||||
% \usepackage{bera}
|
% \usepackage{bera}
|
||||||
% or
|
% or
|
||||||
@@ -349,7 +351,7 @@ An individual result from the \(i\)-th repository, \(j\)-th query, and \(k\)-th
|
|||||||
Each result can be further indexed to track multiple repositories and result sets.
|
Each result can be further indexed to track multiple repositories and result sets.
|
||||||
|
|
||||||
\section{Execution Loop in Pseudo-Code}
|
\section{Execution Loop in Pseudo-Code}
|
||||||
\begin{listing}[h] % h = here, t = top, b = bottom, p = page of floats
|
\begin{listing}[H] % h = here, t = top, b = bottom, p = page of floats
|
||||||
\caption{Distributed Query Execution Algorithm}
|
\caption{Distributed Query Execution Algorithm}
|
||||||
|
|
||||||
\begin{lstlisting}[language=Python]
|
\begin{lstlisting}[language=Python]
|
||||||
@@ -399,7 +401,7 @@ while $Q \neq \emptyset$:
|
|||||||
\FloatBarrier
|
\FloatBarrier
|
||||||
|
|
||||||
\section{Execution Loop in Pseudo-Code, declarative}
|
\section{Execution Loop in Pseudo-Code, declarative}
|
||||||
\begin{listing}[h] % h = here, t = top, b = bottom, p = page of floats
|
\begin{listing}[H] % h = here, t = top, b = bottom, p = page of floats
|
||||||
\caption{Distributed Query Execution Algorithm}
|
\caption{Distributed Query Execution Algorithm}
|
||||||
|
|
||||||
\begin{lstlisting}[language=Python]
|
\begin{lstlisting}[language=Python]
|
||||||
@@ -447,12 +449,10 @@ def execute_queries(agents, job_queue, repository_results):
|
|||||||
# Execute the distributed query process
|
# Execute the distributed query process
|
||||||
$\mathcal{R}_{\text{results}}$ = execute_queries(A, Q, $\mathcal{R}_{\text{results}}$)
|
$\mathcal{R}_{\text{results}}$ = execute_queries(A, Q, $\mathcal{R}_{\text{results}}$)
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\end{listing}
|
\end{listing}
|
||||||
\FloatBarrier
|
\FloatBarrier
|
||||||
|
|
||||||
|
\newpage{}
|
||||||
\section{Execution Loop in Pseudo-Code, algorithmic}
|
\section{Execution Loop in Pseudo-Code, algorithmic}
|
||||||
\begin{algorithm}
|
\begin{algorithm}
|
||||||
\caption{Distribute a set of queries $\mathcal{Q}$ across repositories
|
\caption{Distribute a set of queries $\mathcal{Q}$ across repositories
|
||||||
@@ -479,7 +479,8 @@ $\mathcal{R}_{\text{results}}$ = execute_queries(A, Q, $\mathcal{R}_{\text{resul
|
|||||||
\State $\alpha \xleftarrow{\text{poll}(Q)}$ \Comment{Agent autonomously retrieves a job}
|
\State $\alpha \xleftarrow{\text{poll}(Q)}$ \Comment{Agent autonomously retrieves a job}
|
||||||
|
|
||||||
% --- Begin Agent Execution Block ---
|
% --- Begin Agent Execution Block ---
|
||||||
\State \textbf{(Agent Execution Begins)}
|
\State \textbf{\rule{25em}{0.7pt}} \Comment{Agent Execution Begins}
|
||||||
|
|
||||||
|
|
||||||
\State $\mathcal{R}_i^{\mathcal{Q}} \gets \left\{ \, \right\}$ \Comment{Initialize result set for this repository}
|
\State $\mathcal{R}_i^{\mathcal{Q}} \gets \left\{ \, \right\}$ \Comment{Initialize result set for this repository}
|
||||||
|
|
||||||
@@ -495,7 +496,7 @@ $\mathcal{R}_{\text{results}}$ = execute_queries(A, Q, $\mathcal{R}_{\text{resul
|
|||||||
\State $\alpha \xrightarrow{(\mathcal{Q}, \mathcal{R}_i, \mathcal{R}_i^{\mathcal{Q}})} S$
|
\State $\alpha \xrightarrow{(\mathcal{Q}, \mathcal{R}_i, \mathcal{R}_i^{\mathcal{Q}})} S$
|
||||||
\Comment{Agent sends all accumulated results back to server}
|
\Comment{Agent sends all accumulated results back to server}
|
||||||
|
|
||||||
\State \textbf{(Agent Execution Ends)}
|
\State \textbf{\rule{25em}{0.7pt}} \Comment{Agent Execution Ends}
|
||||||
% --- End Agent Execution Block ---
|
% --- End Agent Execution Block ---
|
||||||
|
|
||||||
\State $S \xrightarrow{(\mathcal{Q}, \mathcal{R}_i, \mathcal{R}_i^{\mathcal{Q}})} C$
|
\State $S \xrightarrow{(\mathcal{Q}, \mathcal{R}_i, \mathcal{R}_i^{\mathcal{Q}})} C$
|
||||||
|
|||||||
Reference in New Issue
Block a user