[DMDB] Join, set up next sections

This commit is contained in:
2026-07-21 17:26:30 +02:00
parent 4c2405a497
commit 084167cef7
16 changed files with 168 additions and 7 deletions
@@ -3,12 +3,14 @@
\caption{SimpleJoin Algorithm}
\begin{algorithmic}[1]
\Procedure{SimpleJoin}{$R$, $S$}
\For{each tuple $t_R \in R$}
\For{each tuple $t_S \in S$}
\If{$\texttt{pred}(t_R, t_S)$}
\State $\texttt{add}\{ t_R, t_S \}$ to the join output
\EndFor
\EndFor
\For{each tuple $t_R \in R$}
\For{each tuple $t_S \in S$}
\If{$\texttt{pred}(t_R, t_S)$}
\State $\texttt{add}\{ t_R, t_S \}$ to the join output
\EndIf
\EndFor
\EndFor
\EndProcedure
\end{algorithmic}
\end{algorithm}
Here, the max output size is $T_R \cdot T_S$, where $T_X$ is the number of tuples for realtion $X$.