I'm trying to do something similar to what is shown in the picture, but do not even know where to start. I can get something similar with three tables and minipage environment. But I have no idea how to connect tables rows with arrows. Maybe I should use tikz for that, but I can't found similar examples with tables.
\documentclass{beamer}
\usepackage{tabu}
\usepackage{color}
\usepackage{xcolor, colortbl}
\begin{document}
\begin{table}[!htb]
Interleaving example \\
\begin{minipage}{.3\linewidth}
\centering
\begin{tabu}{|c|c|}
\hline
\rowcolor{green!25} 1 & $Document_a$ \\
\hline
\rowcolor{green!25} 2 & $Document_b$ \\
\hline
\rowcolor{green!25} 3 & $Document_c$ \\
\hline
\end{tabu}
Ranking A
\end{minipage}
\begin{minipage}{.3\linewidth}
\centering
\begin{tabu}{|c|c|}
\hline
\rowcolor{green!25} 1 & $Document_a$ \\
\hline
\rowcolor{red!25} 2 & $Document_e$ \\
\hline
\rowcolor{green!25} 3 & $Document_b$ \\
\hline
\end{tabu}
Shown to user
\end{minipage}
\begin{minipage}{.3\linewidth}
\centering
\begin{tabu}{|c|c|}
\hline
\rowcolor{red!25} 1 & $Document_e$ \\
\hline
\rowcolor{red!25} 2 & $Document_d$ \\
\hline
\rowcolor{red!25} 3 & $Document_f$ \\
\hline
\end{tabu}
Ranking B
\end{minipage}
\end{table}
\end{document}
\documentclass{...}
and ending with\end{document}
.hypperref
links as can be seen from your picture