I am using the algorithm2e package to include a few algorithms in my document. A few of the algorithms are presented side-by-side, and I am not satisfied with how this looks with the bottom horizontal line. Preferably I would like to completely remove this line somehow, but I cannot seem to find any such option in the algorithm2e manual.
Any help would be greatly appreciated!
Here is an example of what it looks like:
And a minimal working example to produce the picture:
\documentclass[12pt, a4paper]{article}
\usepackage[ruled,vlined]{algorithm2e}
\begin{document}
\begin{figure}[htp]
\begin{minipage}[t]{8cm}
\vspace{0pt}
\begin{algorithm}[H]
\DontPrintSemicolon
\KwData{$S, C$}
\KwResult{$X$}
\Begin{
$X \leftarrow \emptyset$\;
\While{$C \neq \emptyset$}{
$A \leftarrow$ arbitrary element in $C$\;
$a \leftarrow$ arbitrary element in $a$\;
$X \leftarrow X \cup \{a\}$\;
$C \leftarrow C \setminus \{A \in C\ |\ A \cap X \neq \emptyset\}$\;
}
\Return{$X$}\;
}
\caption{Alg-1}
\end{algorithm}
\end{minipage}
\begin{minipage}[t]{8cm}
\vspace{0pt}
\begin{algorithm}[H]
\DontPrintSemicolon
\KwData{$S, C$}
\KwResult{$X$}
\Begin{
$X \leftarrow \emptyset$\;
\While{$C \neq \emptyset$}{
$A \leftarrow$ arbitrary element in $C$\;
$X \leftarrow X \cup A$ \;
$C \leftarrow C \setminus \{A \in C\ |\ A \cap X \neq \emptyset\}$\;
}
\Return{$X$}\;
}
\caption{Alg-2}
\end{algorithm}
\end{minipage}
\end{figure}
\end{document}

