this has been driving me nuts on how come its not working:
Code: Select all
\usepackage{algorithm}
\usepackage{algpseudocode}
...
\begin{algorithm}{}
\caption{$QT\_Clust(S,d)$}
\label{alg:qt}
\begin{algorithmic}[1]
\IF{$N$ is even}
\STATE $X \Leftarrow X \times X$
\STATE $N \Leftarrow N / 2$
\ELSE{$N$ is odd}
\STATE $y \Leftarrow y \times X$
\STATE $N \Leftarrow N - 1$
\ENDIF
\State return ...
\end{algorithmic}
\end{algorithm}
Thanks.