I want only one Horizontal line below the caption in latex algorithm but in my case it gives line below and above the caption as shown. How can I get the desired output ?
\documentclass[12pt,a4paper, oneside]{Thesis}
\usepackage[ruled, vlined, linesnumbered]{algorithm2e}
\begin{document}
\begin{algorithm}[H]
\label{algo:datapacket}
\caption{Algorithm for selecting the forwarder among PFNs.}
% do something
\end{algorithm}
\end{document}
\documentclass{...}
and ending with\end{document}
.\documentclass[12pt,a4paper, oneside]{Thesis} \usepackage[ruled, vlined, linesnumbered]{algorithm2e} \begin{document} \begin{algorithm}[H] \label{algo:datapacket} \caption{Algorithm for selecting the forwarder among PFNs.} % do something \end{algorithm} \end{document}