I'm trying to write an algorithm in a IEEEtran
LaTeX template and it doesn't work in any way.
\usepackage{algorithm}
\usepackage{algorithmc}
%\begin{algorithm}[H]
\begin{algorithm*}
\caption{ASGP Merge and Pruning Step}
\label{alg:stuff}
\begin{algorithmic}[1]
\REQUIRE {$stuff$}
\STATE $stuff$
\RETURN $stuff$
\end{algorithmic}
%\end{algorithm}
\end{algorithm*}
but this is what I get:
! LaTeX Error: \begin{ALC@g} on input line 31 ended by \end{algorithmic}.
See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...
l.47 \end{algorithmic}
I already tried use \begin{figure*}
instead of \begin{algorithm*}
but that
also doesn't work.
I saw a post about using \begin{algpseudocode}
, but that isn't working either,
If I also \include{algorithmic}
:
! LaTeX Error: Command \algorithmicindent already defined. Or name \end... illegal, see p.192 of the manual.
If not, I get:
\REQUIRE undefined control sequence.
Can anybody help me with that?
\usepackage{algorithmic}
rather than\usepackage{algorithmc}
?