How do I add a blank line in the algorithmic environment?
If you want the empty line to be numbered, just insert
\STATE
on this line.
If you want an unnumbered empty line, insert
\item[]
instead.
just add
\texttt{\\}
it always works for me!!
It’s a kludge, but you might be able to use
\renewcommand{\algorithmiccomment}[1]{}
\begin{algorithmic}
\STATE $x \leftarrow 1$
\COMMENT{}
\STATE $x \leftarrow 2$
\end{algorithmic}