[Tex/LaTex] Increase Spacing in an algorithm

algorithmsspacing

Please, how can i increase spacing in an algorithm, between instruction 1 et instruction 2 ?

 \usepackage{algorithm}
 \usepackage{algorithmic}
 \begin{document}
 \begin{algorithm}[H]
 \caption{My algo}
 \begin{algorithmic}[1]
 \STATE instruction 1
 \STATE instruction 2
 \end{algorithmic}
 \end{algorithm}
 \end{document}

i'd like also to increase spacing between line and first instruction (see figure)
enter image description here

please just another question: is it possible to add the option [vlined] with

\usepackage{algorithm} 
\usepackage{algorithmic} ?

Best Answer

set \setstretch{1.4} to any value you like

\documentclass{article}
 \usepackage{algorithm}
 \usepackage{algorithmic}
 \usepackage{setspace}
\let\Algorithm\algorithm
\renewcommand\algorithm[1][]{\Algorithm[#1]\setstretch{1.4}}

\begin{document}
 \begin{algorithm}[H]
 \caption{My algo}
 \begin{algorithmic}[1]
 \STATE instruction 1
 \STATE instruction 2
 \end{algorithmic}
 \end{algorithm}
\end{document}
Related Question